Class UkrExhMessageAdapter
- Namespace
- StockSharp.UkrExh
- Assembly
- StockSharp.UkrExh.dll
The message adapter for StockSharp.UkrExh.
[MessageAdapterCategory(MessageAdapterCategories.Russia|MessageAdapterCategories.History|MessageAdapterCategories.Free|MessageAdapterCategories.Ticks|MessageAdapterCategories.Candles)]
[MediaIcon("UkrExh_logo.png")]
public class UkrExhMessageAdapter : MessageAdapter, IMessageAdapter, IMessageChannel, ICloneable<IMessageChannel>, ICloneable, IPersistable, ILogReceiver, ILogSource, IDisposable, INotifyPropertyChanged
- Inheritance
-
UkrExhMessageAdapter
- Implements
-
ICloneable<IMessageChannel>IPersistable
- Inherited Members
- Extension Methods
Constructors
UkrExhMessageAdapter(IdGenerator)
Initializes a new instance of the UkrExhMessageAdapter.
public UkrExhMessageAdapter(IdGenerator transactionIdGenerator)
Parameters
transactionIdGenerator
IdGeneratorTransaction id generator.
Properties
AllTimeFrames
Possible time-frames.
public static IEnumerable<TimeSpan> AllTimeFrames { get; }
Property Value
Methods
GetHistoryStepSize(DataType, out TimeSpan)
public override TimeSpan GetHistoryStepSize(DataType dataType, out TimeSpan iterationInterval)
Parameters
Returns
GetTicks(SecurityMessage, DateTime, DateTime)
To download tick trades.
public IEnumerable<ExecutionMessage> GetTicks(SecurityMessage secMsg, DateTime from, DateTime to)
Parameters
secMsg
SecurityMessageThe instrument for which you need to get trades.
from
DateTimeBegin period.
to
DateTimeEnd period.
Returns
- IEnumerable<ExecutionMessage>
Loaded ticks.
GetTimeFrames(SecurityId, DateTimeOffset?, DateTimeOffset?)
Get possible time-frames for the specified instrument.
protected override IEnumerable<TimeSpan> GetTimeFrames(SecurityId securityId, DateTimeOffset? from, DateTimeOffset? to)
Parameters
securityId
SecurityIdSecurity ID.
from
DateTimeOffset?The initial date from which you need to get data.
to
DateTimeOffset?The final date by which you need to get data.
Returns
- IEnumerable<TimeSpan>
Possible time-frames.
IsAllDownloadingSupported(DataType)
Is for the specified dataType
all securities downloading enabled.
public override bool IsAllDownloadingSupported(DataType dataType)
Parameters
dataType
DataTypeData type info.
Returns
- bool
Check result.
OnSendInMessage(Message)
Send message.
protected override bool OnSendInMessage(Message message)
Parameters
message
MessageMessage.