Class SpbExMessageAdapter
- Namespace
- StockSharp.SpbEx
- Assembly
- StockSharp.SpbEx.dll
Spb exchange (binary protocol) message adapter.
[MediaIcon("SpbEx_logo.svg")]
[Display(ResourceType = typeof(LocalizedStrings), Name = "SpbEx", Description = "StockConnector", GroupName = "Russia")]
[MessageAdapterCategory(MessageAdapterCategories.Russia|MessageAdapterCategories.US|MessageAdapterCategories.Stock|MessageAdapterCategories.RealTime|MessageAdapterCategories.Ticks|MessageAdapterCategories.MarketDepth|MessageAdapterCategories.Level1|MessageAdapterCategories.Transactions|MessageAdapterCategories.Futures|MessageAdapterCategories.Options)]
public class SpbExMessageAdapter : MessageAdapter, IMessageAdapter, IMessageChannel, ICloneable<IMessageChannel>, ICloneable, IPersistable, ILogReceiver, ILogSource, IDisposable, INotifyPropertyChanged, ILoginPasswordAdapter
- Inheritance
-
SpbExMessageAdapter
- Implements
-
ICloneable<IMessageChannel>IPersistable
- Inherited Members
- Extension Methods
Constructors
SpbExMessageAdapter(IdGenerator)
Initializes a new instance of the SpbExMessageAdapter.
public SpbExMessageAdapter(IdGenerator transactionIdGenerator)
Parameters
transactionIdGenerator
IdGeneratorTransaction id generator.
Fields
DefaultHeartbeatInterval
Default value for HeartbeatInterval.
public static readonly TimeSpan DefaultHeartbeatInterval
Field Value
Properties
CancelOnDisconnect
Cancel On Disconnect.
[Display(ResourceType = typeof(LocalizedStrings), Name = "CancelOnDisconnect", Description = "CancelOnDisconnectDot", GroupName = "Session", Order = 4)]
public bool CancelOnDisconnect { get; set; }
Property Value
Config
Configuration.
[Display(ResourceType = typeof(LocalizedStrings), Name = "Configuration", Description = "ServerConfigDot", GroupName = "Session", Order = 0)]
public SpbExAddressConfig Config { get; set; }
Property Value
EnableSuspend
Enable suspend mode (enqueue non ordered messages).
[Display(ResourceType = typeof(LocalizedStrings), Name = "Suspend", Description = "SuspendDesc", GroupName = "Session", Order = 3)]
public bool EnableSuspend { get; set; }
Property Value
FeatureName
Feature name.
public override string FeatureName { get; }
Property Value
IgnoreLimits
Ignore limits.
[Display(ResourceType = typeof(LocalizedStrings), Name = "Limits", Description = "IgnoreLimits", GroupName = "Session", Order = 5)]
public bool IgnoreLimits { get; set; }
Property Value
IsNativeIdentifiers
Identify security in messages by native identifier Native.
public override bool IsNativeIdentifiers { get; }
Property Value
IsSupportOrderBookIncrements
Adapter translates incremental order books.
public override bool IsSupportOrderBookIncrements { get; }
Property Value
Login
Login.
[Display(ResourceType = typeof(LocalizedStrings), Name = "Login", Description = "LoginDot", GroupName = "Session", Order = 1)]
public string Login { get; set; }
Property Value
Password
Password.
[Display(ResourceType = typeof(LocalizedStrings), Name = "Password", Description = "PasswordDot", GroupName = "Session", Order = 2)]
public SecureString Password { get; set; }
Property Value
Methods
Dump(IDictionary<EndPoint, string>)
Test dump files.
public void Dump(IDictionary<EndPoint, string> dumpFiles)
Parameters
dumpFiles
IDictionary<EndPoint, string>Dump files.
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.
IsSecurityRequired(DataType)
Support filtering subscriptions (subscribe/unsubscribe for specified security).
public override bool IsSecurityRequired(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()