Interface IHydraTask
Интерфейс, описывающий задачу.
Inherited Members
Namespace: StockSharp.Hydra.Core
Assembly: StockSharp.Hydra.Core.dll
Syntax
public interface IHydraTask : ILogReceiver, ILogSource, IDisposable, ICloneable<IHydraTask>, ICloneable, IPersistable, INotifyPropertyChanged, IScheduledTask
Properties
CandlesBuildFrom
Поддерживаемые источники данных построения свечей.
Declaration
IEnumerable<Level1Fields> CandlesBuildFrom { get; }
Property Value
Type | Description |
---|---|
IEnumerable<Level1Fields> |
CanTestConnect
Можно ли вызвать метод TestConnect(Action<Exception>).
Declaration
bool CanTestConnect { get; }
Property Value
Type | Description |
---|---|
Boolean |
DependFrom
Задача, которая должна быть выполнена перед запуском текущей.
Declaration
IHydraTask DependFrom { get; set; }
Property Value
Type | Description |
---|---|
IHydraTask |
Drive
Директория с данными, куда будут сохраняться конечные файлы в формате StockSharp.
Declaration
IMarketDataDrive Drive { get; }
Property Value
Type | Description |
---|---|
IMarketDataDrive |
Icon
Адрес иконки, для визуального обозначения.
Declaration
Uri Icon { get; }
Property Value
Type | Description |
---|---|
Uri |
IsDefault
Настройки содержат значений, заданные по-умолчанию.
Declaration
bool IsDefault { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
IsEnabled
Включена ли задача.
Declaration
bool IsEnabled { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
Securities
Инструменты, связанные с задачей.
Declaration
IEnumerable<HydraTaskSecurity> Securities { get; set; }
Property Value
Type | Description |
---|---|
IEnumerable<HydraTaskSecurity> |
SecurityLookupSupportType
Тип поиска инструмента.
Declaration
SecurityLookupSupportTypes SecurityLookupSupportType { get; }
Property Value
Type | Description |
---|---|
SecurityLookupSupportTypes |
State
Текущее состояние задачи.
Declaration
TaskStates State { get; }
Property Value
Type | Description |
---|---|
TaskStates |
StorageFormat
Формат данных.
Declaration
StorageFormats StorageFormat { get; }
Property Value
Type | Description |
---|---|
StorageFormats |
SupportedDataTypes
Поддерживаемые типы данных.
Declaration
IEnumerable<DataType> SupportedDataTypes { get; }
Property Value
Type | Description |
---|---|
IEnumerable<DataType> |
SupportedDepths
Supported depths.
Declaration
IEnumerable<int> SupportedDepths { get; }
Property Value
Type | Description |
---|---|
IEnumerable<Int32> |
Title
Заголовок задачи.
Declaration
string Title { get; }
Property Value
Type | Description |
---|---|
String |
Methods
Init(Guid)
Инициализировать задачу.
Declaration
void Init(Guid id)
Parameters
Type | Name | Description |
---|---|---|
Guid | id | Идентификатор задачи. |
IsAllDownloadingSupported(DataType)
Is for the specified dataType
all securities downloading enabled.
Declaration
bool IsAllDownloadingSupported(DataType dataType)
Parameters
Type | Name | Description |
---|---|---|
DataType | dataType | Data type info. |
Returns
Type | Description |
---|---|
Boolean | Check result. |
Refresh(ISecurityStorage, SecurityLookupMessage, Action<Security>, Func<Boolean>)
Download new securities.
Declaration
void Refresh(ISecurityStorage securityStorage, SecurityLookupMessage criteria, Action<Security> newSecurity, Func<bool> isCancelled)
Parameters
Type | Name | Description |
---|---|---|
ISecurityStorage | securityStorage | Securities meta info storage. |
SecurityLookupMessage | criteria | Message security lookup for specified criteria. |
Action<Security> | newSecurity | The handler through which a new instrument will be passed. |
Func<Boolean> | isCancelled | The handler which returns an attribute of search cancel. |
Start()
Запустить.
Declaration
void Start()
Stop()
Остановить.
Declaration
void Stop()
TestConnect(Action<Exception>)
Произвести тестовое подключение.
Declaration
void TestConnect(Action<Exception> connectionChanged)
Parameters
Type | Name | Description |
---|---|---|
Action<Exception> | connectionChanged | Обработчик изменения состояния подключения. |
Events
DataLoaded
Событие о загрузке маркет-данных.
Declaration
event Action<Security, DataType, Nullable<DateTimeOffset>, int, IEnumerable<Message>> DataLoaded
Event Type
Type | Description |
---|---|
Action<Security, DataType, Nullable<DateTimeOffset>, Int32, IEnumerable<Message>> |
Started
Событие запуска.
Declaration
event Action<IHydraTask> Started
Event Type
Type | Description |
---|---|
Action<IHydraTask> |
Stopped
Событие остановки.
Declaration
event Action<IHydraTask> Stopped
Event Type
Type | Description |
---|---|
Action<IHydraTask> |