Table of Contents

Class AlfaDirectMessageAdapter

Namespace
StockSharp.AlfaDirect
Assembly
StockSharp.AlfaDirect.dll

Адаптер сообщений для AlfaDirect.

[MessageAdapterCategory(MessageAdapterCategories.Russia|MessageAdapterCategories.Stock|MessageAdapterCategories.RealTime|MessageAdapterCategories.Free|MessageAdapterCategories.Ticks|MessageAdapterCategories.Candles|MessageAdapterCategories.MarketDepth|MessageAdapterCategories.Level1|MessageAdapterCategories.News|MessageAdapterCategories.Transactions|MessageAdapterCategories.Futures|MessageAdapterCategories.Options)]
[OrderCondition(typeof(AlfaDirectOrderCondition))]
[MediaIcon("AlfaDirect_logo.svg")]
public class AlfaDirectMessageAdapter : MessageAdapter, IMessageAdapter, IMessageChannel, ICloneable<IMessageChannel>, ICloneable, IPersistable, ILogReceiver, ILogSource, IDisposable, INotifyPropertyChanged, ILoginPasswordAdapter
Inheritance
AlfaDirectMessageAdapter
Implements
ICloneable<IMessageChannel>
IPersistable
Inherited Members
Extension Methods

Constructors

AlfaDirectMessageAdapter(IdGenerator)

Создать AlfaDirectMessageAdapter.

public AlfaDirectMessageAdapter(IdGenerator transactionIdGenerator)

Parameters

transactionIdGenerator IdGenerator

Генератор идентификаторов транзакций.

Properties

FeatureName

Feature name.

public override string FeatureName { get; }

Property Value

string

IsNativeIdentifiers

Identify security in messages by native identifier Native.

public override bool IsNativeIdentifiers { get; }

Property Value

bool

Login

Login.

[Display(ResourceType = typeof(LocalizedStrings), Name = "Login", Description = "Str2261", GroupName = "Str174", Order = 1)]
public string Login { get; set; }

Property Value

string

Password

Password.

[Display(ResourceType = typeof(LocalizedStrings), Name = "Password", Description = "Str2262", GroupName = "Str174", Order = 2)]
public SecureString Password { get; set; }

Property Value

SecureString

Version

Версия API. По-умолчанию равна V4.

[Display(ResourceType = typeof(LocalizedStrings), Name = "Version", Description = "Str1860", GroupName = "General", Order = 0)]
public AlfaDirectVersions Version { get; set; }

Property Value

AlfaDirectVersions

Methods

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.

Load(SettingsStorage)

Load settings.

public override void Load(SettingsStorage storage)

Parameters

storage SettingsStorage

Settings storage.

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.

Save(SettingsStorage)

Save settings.

public override void Save(SettingsStorage storage)

Parameters

storage SettingsStorage

Settings storage.

ToString()

public override string ToString()

Returns

string