Table of Contents

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 IdGenerator

Transaction id generator.

Properties

AllTimeFrames

Possible time-frames.

public static IEnumerable<TimeSpan> AllTimeFrames { get; }

Property Value

IEnumerable<TimeSpan>

Methods

GetHistoryStepSize(DataType, out TimeSpan)

public override TimeSpan GetHistoryStepSize(DataType dataType, out TimeSpan iterationInterval)

Parameters

dataType DataType
iterationInterval TimeSpan

Returns

TimeSpan

GetTicks(SecurityMessage, DateTime, DateTime)

To download tick trades.

public IEnumerable<ExecutionMessage> GetTicks(SecurityMessage secMsg, DateTime from, DateTime to)

Parameters

secMsg SecurityMessage

The instrument for which you need to get trades.

from DateTime

Begin period.

to DateTime

End 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 SecurityId

Security 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 DataType

Data type info.

Returns

bool

Check result.

OnSendInMessage(Message)

Send message.

protected override bool OnSendInMessage(Message message)

Parameters

message Message

Message.

Returns

bool

true if the specified message was processed successfully, otherwise, false.