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
IsNativeIdentifiers
Identify security in messages by native identifier Native.
public override bool IsNativeIdentifiers { get; }
Property Value
Login
Login.
[Display(ResourceType = typeof(LocalizedStrings), Name = "Login", Description = "Str2261", GroupName = "Str174", Order = 1)]
public string Login { get; set; }
Property Value
Password
Password.
[Display(ResourceType = typeof(LocalizedStrings), Name = "Password", Description = "Str2262", GroupName = "Str174", Order = 2)]
public SecureString Password { get; set; }
Property Value
Version
Версия API. По-умолчанию равна V4.
[Display(ResourceType = typeof(LocalizedStrings), Name = "Version", Description = "Str1860", GroupName = "General", Order = 0)]
public AlfaDirectVersions Version { get; set; }
Property Value
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
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.
Load(SettingsStorage)
Load settings.
public override void Load(SettingsStorage storage)
Parameters
storage
SettingsStorageSettings storage.
OnSendInMessage(Message)
Send message.
protected override bool OnSendInMessage(Message message)
Parameters
message
MessageMessage.
Returns
Save(SettingsStorage)
Save settings.
public override void Save(SettingsStorage storage)
Parameters
storage
SettingsStorageSettings storage.
ToString()
public override string ToString()