Class SpbExMessageAdapter
Spb exchange (binary protocol) message adapter.
Inherited Members
Namespace: StockSharp.SpbEx
Assembly: StockSharp.SpbEx.dll
Syntax
[MediaIcon("SpbEx_logo.png")]
[DisplayNameLoc("SpbEx")]
[MessageAdapterCategory]
[DescriptionLoc("Str1770", "SpbEx")]
[CategoryLoc("Russia")]
public class SpbExMessageAdapter : MessageAdapter, IMessageAdapter, IMessageChannel, ICloneable<IMessageChannel>, ICloneable, IPersistable, ILogReceiver, ILogSource, IDisposable, INotifyPropertyChanged, ILoginPasswordAdapter
Constructors
SpbExMessageAdapter(IdGenerator)
Создать SpbExMessageAdapter.
Declaration
public SpbExMessageAdapter(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
CancelOnDisconnect
Cancel On Disconnect.
Declaration
public bool CancelOnDisconnect { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
Config
Configuration.
Declaration
public SpbExAddressConfig Config { get; set; }
Property Value
Type | Description |
---|---|
SpbExAddressConfig |
EnableSuspend
Enable suspend mode (enqueue non ordered messages).
Declaration
public bool EnableSuspend { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
FeatureName
Feature name.
Declaration
public override string FeatureName { get; }
Property Value
Type | Description |
---|---|
String |
Overrides
IgnoreLimits
Ignore limits.
Declaration
public bool IgnoreLimits { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
IsNativeIdentifiers
Идентифицировать инструменты в сообщениях по системному идентификатору Native.
Declaration
public override bool IsNativeIdentifiers { get; }
Property Value
Type | Description |
---|---|
Boolean |
Overrides
IsSupportOrderBookIncrements
Адаптер транслирует инкрементальные стаканы.
Declaration
public override bool IsSupportOrderBookIncrements { 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 |
Methods
Dump(IDictionary<EndPoint, String>)
Протестировать дамп-файлы.
Declaration
public void Dump(IDictionary<EndPoint, string> dumpFiles)
Parameters
Type | Name | Description |
---|---|---|
IDictionary<EndPoint, String> | dumpFiles | Дамп-файлы. |
IsAllDownloadingSupported(DataType)
Доступно ли для указанного dataType
загрузка всех инструментов.
Declaration
public override bool IsAllDownloadingSupported(DataType dataType)
Parameters
Type | Name | Description |
---|---|---|
DataType | dataType | Тип данных. |
Returns
Type | Description |
---|---|
Boolean | Результат проверки. |
Overrides
IsSecurityRequired(DataType)
Поддерживает ли фильтрация подписки (подписка/отписка для указанного инструмента).
Declaration
public override bool IsSecurityRequired(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 |