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
CanTestConnect
Can TestConnect(Action<Exception>) be called.
bool CanTestConnect { get; }
Property Value
CandlesBuildFrom
Supported Level1 fields that can be used as candles build source.
IEnumerable<Level1Fields> CandlesBuildFrom { get; }
Property Value
DependFrom
Task that must be executed before the current one starts.
IHydraTask DependFrom { get; set; }
Property Value
Drive
Market data drive where final files in StockSharp format will be stored.
IMarketDataDrive Drive { get; }
Property Value
Icon
Icon URI for visual representation.
Uri Icon { get; }
Property Value
IsDefault
Does settings contain default values.
bool IsDefault { get; set; }
Property Value
IsEnabled
Is task enabled.
bool IsEnabled { get; set; }
Property Value
RemoteChannel
Remote channel where notifications will be sent.
ITelegramChannel RemoteChannel { get; set; }
Property Value
RemoteControl
Allow remote control for the task.
bool RemoteControl { get; set; }
Property Value
RemoteLogLevel
Remote log levels translated into RemoteChannel.
LogLevels RemoteLogLevel { get; set; }
Property Value
Securities
Securities associated with the task.
HydraTaskSecurity[] Securities { get; set; }
Property Value
SecurityLookupSupportType
Security lookup support type.
SecurityLookupSupportTypes SecurityLookupSupportType { get; }
Property Value
State
Current task state.
TaskStates State { get; }
Property Value
StorageFormat
Storage format.
StorageFormats StorageFormat { get; }
Property Value
SupportedDataTypes
Supported data types.
IEnumerable<DataType> SupportedDataTypes { get; }
Property Value
SupportedDepths
Supported order book depths.
IEnumerable<int> SupportedDepths { get; }
Property Value
Title
Task title.
string Title { get; }
Property Value
Methods
Init(Guid)
Initialize task.
void Init(Guid id)
Parameters
id
GuidTask identifier.
IsAllDownloadingSupported(DataType)
Determines whether downloading for all securities is supported for the specified dataType
.
bool IsAllDownloadingSupported(DataType dataType)
Parameters
dataType
DataTypeData 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
ISecurityStorageSecurities meta info storage.
criteria
SecurityLookupMessageMessage 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
Events
DataLoaded
Raised when market data has been loaded.
event Action<HydraTaskSecurity, DataType, DateTimeOffset?, int, IEnumerable<Message>> DataLoaded
Event Type
SecuritySaved
Raised when a Security is saved.
event Action<Security> SecuritySaved
Event Type
Started
Raised when the task is started.
event Action<IHydraTask> Started
Event Type
Stopped
Raised when the task is stopped.
event Action<IHydraTask> Stopped