Class LmaxMessageAdapter
Адаптер сообщений для LMAX.
Inherited Members
Namespace: StockSharp.LMAX
Assembly: StockSharp.LMAX.dll
Syntax
[OrderCondition]
[MessageAdapterCategory]
[DescriptionLoc("Str1770", "Lmax")]
[CategoryLoc("Forex")]
[DisplayNameLoc("Lmax")]
[MediaIcon("Lmax_logo.png")]
public class LmaxMessageAdapter : MessageAdapter, IMessageAdapter, IMessageChannel, ICloneable<IMessageChannel>, ICloneable, IPersistable, ILogReceiver, ILogSource, IDisposable, INotifyPropertyChanged, ILoginPasswordAdapter, IDemoAdapter
Constructors
LmaxMessageAdapter(IdGenerator)
Создать LmaxMessageAdapter.
Declaration
public LmaxMessageAdapter(IdGenerator transactionIdGenerator)
Parameters
Type | Name | Description |
---|---|---|
Ecng.Common.IdGenerator | transactionIdGenerator | Генератор транзакций. |
Fields
DefaultHeartbeatInterval
Значение по умолчанию для HeartbeatInterval.
Declaration
public static readonly TimeSpan DefaultHeartbeatInterval
Field Value
Type | Description |
---|---|
TimeSpan |
Properties
AllTimeFrames
Возможные тайм-фреймы.
Declaration
public static IEnumerable<TimeSpan> AllTimeFrames { get; }
Property Value
Type | Description |
---|---|
IEnumerable<TimeSpan> |
CandleDownloadInterval
Интервал скачивания свечей.
Declaration
public TimeSpan CandleDownloadInterval { get; set; }
Property Value
Type | Description |
---|---|
TimeSpan |
IsDemo
Connect to demo trading instead of real trading server.
Declaration
public bool IsDemo { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
IsDownloadSecurityFromSite
Should the whole set of securities be loaded from LMAX website. Switched off by default.
Declaration
public bool IsDownloadSecurityFromSite { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
IsNativeIdentifiers
Идентифицировать инструменты в сообщениях по системному идентификатору Native.
Declaration
public override bool IsNativeIdentifiers { get; }
Property Value
Type | Description |
---|---|
Boolean |
Overrides
IsSupportCandlesUpdates
Поддерживается подписка на свечи и обновление в реальном времени.
Declaration
public override bool IsSupportCandlesUpdates { get; }
Property Value
Type | Description |
---|---|
Boolean |
Overrides
Login
Login.
Declaration
public string Login { get; set; }
Property Value
Type | Description |
---|---|
String |
Password
Password.
Declaration
public SecureString Password { get; set; }
Property Value
Type | Description |
---|---|
SecureString |
SecuritiesLocation
LMAX location.
Declaration
public Nullable<LmaxLocations> SecuritiesLocation { get; set; }
Property Value
Type | Description |
---|---|
Nullable<LmaxLocations> |
StorageName
Название хранилища, ассоциированное с адаптером.
Declaration
public override string StorageName { get; }
Property Value
Type | Description |
---|---|
String |
Overrides
Methods
GetTimeFrames(SecurityId, Nullable<DateTimeOffset>, Nullable<DateTimeOffset>)
Получить возможные тайм-фреймы для указанного инструмента.
Declaration
protected override IEnumerable<TimeSpan> GetTimeFrames(SecurityId securityId, Nullable<DateTimeOffset> from, Nullable<DateTimeOffset> to)
Parameters
Type | Name | Description |
---|---|---|
SecurityId | securityId | Security ID. |
Nullable<DateTimeOffset> | from | Начальная дата, с которой необходимо получать данные. |
Nullable<DateTimeOffset> | to | Конечная дата, до которой необходимо получать данные. |
Returns
Type | Description |
---|---|
IEnumerable<TimeSpan> | Возможные тайм-фреймы. |
Overrides
IsAllDownloadingSupported(DataType)
Доступно ли для указанного dataType
загрузка всех инструментов.
Declaration
public override bool IsAllDownloadingSupported(DataType dataType)
Parameters
Type | Name | Description |
---|---|---|
DataType | dataType | Тип данных. |
Returns
Type | Description |
---|---|
Boolean | Результат проверки. |
Overrides
Load(SettingsStorage)
Загрузить настройки.
Declaration
public override void Load(SettingsStorage storage)
Parameters
Type | Name | Description |
---|---|---|
Ecng.Serialization.SettingsStorage | storage | Хранилище настроек. |
Overrides
OnSendInMessage(Message)
Отправить сообщение.
Declaration
protected override bool OnSendInMessage(Message message)
Parameters
Type | Name | Description |
---|---|---|
Message | message | Message. |
Returns
Type | Description |
---|---|
Boolean | true если переданное сообщение было обработано успешно, иначе, false. |
Overrides
Save(SettingsStorage)
Сохранить настройки.
Declaration
public override void Save(SettingsStorage storage)
Parameters
Type | Name | Description |
---|---|---|
Ecng.Serialization.SettingsStorage | storage | Хранилище настроек. |
Overrides
ToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
String |