Table of Contents

Interface IHydraTask

Namespace
StockSharp.Hydra.Core
Assembly
StockSharp.Hydra.Core.dll

Interface that describes a Hydra task.

public interface IHydraTask : ILogReceiver, ILogSource, IDisposable, ICloneable<IHydraTask>, ICloneable, IPersistable, INotifyPropertyChanged, IScheduledTask
Inherited Members
Extension Methods

Properties

AllSecurity

Special "All securities" entry.

HydraTaskSecurity AllSecurity { get; }

Property Value

HydraTaskSecurity

CanTestConnect

bool CanTestConnect { get; }

Property Value

bool

CandlesBuildFrom

Supported Level1 fields that can be used as candles build source.

IEnumerable<Level1Fields> CandlesBuildFrom { get; }

Property Value

IEnumerable<Level1Fields>

DependFrom

Task that must be executed before the current one starts.

IHydraTask DependFrom { get; set; }

Property Value

IHydraTask

Drive

Market data drive where final files in StockSharp format will be stored.

IMarketDataDrive Drive { get; }

Property Value

IMarketDataDrive

Icon

Icon URI for visual representation.

Uri Icon { get; }

Property Value

Uri

IsDefault

Does settings contain default values.

bool IsDefault { get; set; }

Property Value

bool

IsEnabled

Is task enabled.

bool IsEnabled { get; set; }

Property Value

bool

RemoteChannel

Remote channel where notifications will be sent.

ITelegramChannel RemoteChannel { get; set; }

Property Value

ITelegramChannel

RemoteControl

Allow remote control for the task.

bool RemoteControl { get; set; }

Property Value

bool

RemoteLogLevel

Remote log levels translated into RemoteChannel.

LogLevels RemoteLogLevel { get; set; }

Property Value

LogLevels

Securities

Securities associated with the task.

HydraTaskSecurity[] Securities { get; set; }

Property Value

HydraTaskSecurity[]

SecurityLookupSupportType

Security lookup support type.

SecurityLookupSupportTypes SecurityLookupSupportType { get; }

Property Value

SecurityLookupSupportTypes

State

Current task state.

TaskStates State { get; }

Property Value

TaskStates

StorageFormat

Storage format.

StorageFormats StorageFormat { get; }

Property Value

StorageFormats

SupportedDataTypes

Supported data types.

IEnumerable<DataType> SupportedDataTypes { get; }

Property Value

IEnumerable<DataType>

SupportedDepths

Supported order book depths.

IEnumerable<int> SupportedDepths { get; }

Property Value

IEnumerable<int>

Title

Task title.

string Title { get; }

Property Value

string

Methods

Init(Guid)

Initialize task.

void Init(Guid id)

Parameters

id Guid

Task identifier.

IsAllDownloadingSupported(DataType)

Determines whether downloading for all securities is supported for the specified dataType.

bool IsAllDownloadingSupported(DataType dataType)

Parameters

dataType DataType

Data type info.

Returns

bool

Check result.

Refresh(ISecurityStorage, SecurityLookupMessage, Action<Security>, Action<Exception>, Func<bool>)

Download new securities.

void Refresh(ISecurityStorage securityStorage, SecurityLookupMessage criteria, Action<Security> newSecurity, Action<Exception> lookupError, Func<bool> isCancelled)

Parameters

securityStorage ISecurityStorage

Securities meta info storage.

criteria SecurityLookupMessage

Message security lookup for specified criteria.

newSecurity Action<Security>

The handler through which a new instrument will be passed.

lookupError Action<Exception>

Lookup error handler.

isCancelled Func<bool>

The handler returning whether to cancel the search.

Start()

Start.

void Start()

Stop()

Stop.

void Stop()

TestConnect(Action<Exception>)

Verify connection.

void TestConnect(Action<Exception> connectionChanged)

Parameters

connectionChanged Action<Exception>

Connection changed callback.

Events

DataLoaded

Raised when market data has been loaded.

event Action<HydraTaskSecurity, DataType, DateTimeOffset?, int, IEnumerable<Message>> DataLoaded

Event Type

Action<HydraTaskSecurity, DataType, DateTimeOffset?, int, IEnumerable<Message>>

SecuritySaved

Raised when a Security is saved.

event Action<Security> SecuritySaved

Event Type

Action<Security>

Started

Raised when the task is started.

event Action<IHydraTask> Started

Event Type

Action<IHydraTask>

Stopped

Raised when the task is stopped.

event Action<IHydraTask> Stopped

Event Type

Action<IHydraTask>