Table of Contents

Interface IHydraTask

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

Интерфейс, описывающий задачу.

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

Properties

AllSecurity

Инструмент "Все инструменты".

HydraTaskSecurity AllSecurity { get; }

Property Value

HydraTaskSecurity

CanTestConnect

Можно ли вызвать метод TestConnect(Action<Exception>).

bool CanTestConnect { get; }

Property Value

bool

CandlesBuildFrom

Поддерживаемые источники данных построения свечей.

IEnumerable<Level1Fields> CandlesBuildFrom { get; }

Property Value

IEnumerable<Level1Fields>

DependFrom

Задача, которая должна быть выполнена перед запуском текущей.

IHydraTask DependFrom { get; set; }

Property Value

IHydraTask

Drive

Директория с данными, куда будут сохраняться конечные файлы в формате StockSharp.

IMarketDataDrive Drive { get; }

Property Value

IMarketDataDrive

Icon

Адрес иконки, для визуального обозначения.

Uri Icon { get; }

Property Value

Uri

IsDefault

Настройки содержат значений, заданные по-умолчанию.

bool IsDefault { get; set; }

Property Value

bool

IsEnabled

Включена ли задача.

bool IsEnabled { get; set; }

Property Value

bool

IsStub

Determines the source is stub.

bool IsStub { get; }

Property Value

bool

RemoteChannel

Remote channel in where notifications will be output.

ClientSocial RemoteChannel { get; set; }

Property Value

ClientSocial

RemoteControl

Allow remote control for the task.

bool RemoteControl { get; set; }

Property Value

bool

RemoteLogLevel

Remote log levels translates into RemoteChannel.

LogLevels RemoteLogLevel { get; set; }

Property Value

LogLevels

Securities

Инструменты, связанные с задачей.

HydraTaskSecurity[] Securities { get; set; }

Property Value

HydraTaskSecurity[]

SecurityLookupSupportType

Тип поиска инструмента.

SecurityLookupSupportTypes SecurityLookupSupportType { get; }

Property Value

SecurityLookupSupportTypes

State

Текущее состояние задачи.

TaskStates State { get; }

Property Value

TaskStates

StorageFormat

Формат данных.

StorageFormats StorageFormat { get; }

Property Value

StorageFormats

SupportedDataTypes

Поддерживаемые типы данных.

IEnumerable<DataType> SupportedDataTypes { get; }

Property Value

IEnumerable<DataType>

SupportedDepths

Supported depths.

IEnumerable<int> SupportedDepths { get; }

Property Value

IEnumerable<int>

Title

Заголовок задачи.

string Title { get; }

Property Value

string

Methods

Init(Guid)

Инициализировать задачу.

void Init(Guid id)

Parameters

id Guid

Идентификатор задачи.

IsAllDownloadingSupported(DataType)

Is for the specified dataType all securities downloading enabled.

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 which returns an attribute of search cancel.

Start()

Запустить.

void Start()

Stop()

Остановить.

void Stop()

TestConnect(Action<Exception>)

Verify connection.

void TestConnect(Action<Exception> connectionChanged)

Parameters

connectionChanged Action<Exception>

Connection changed callback.

Events

DataLoaded

Событие о загрузке маркет-данных.

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

Event Type

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

SecuritySaved

Security saved.

event Action<Security> SecuritySaved

Event Type

Action<Security>

Started

Событие запуска.

event Action<IHydraTask> Started

Event Type

Action<IHydraTask>

Stopped

Событие остановки.

event Action<IHydraTask> Stopped

Event Type

Action<IHydraTask>