Table of Contents

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 IdGenerator

Transaction id generator.

Fields

DefaultHeartbeatInterval

Default value for HeartbeatInterval.

public static readonly TimeSpan DefaultHeartbeatInterval

Field Value

TimeSpan

Properties

CancelOnDisconnect

Cancel On Disconnect.

[Display(ResourceType = typeof(LocalizedStrings), Name = "CancelOnDisconnect", Description = "CancelOnDisconnectDot", GroupName = "Session", Order = 4)]
public bool CancelOnDisconnect { get; set; }

Property Value

bool

Config

Configuration.

[Display(ResourceType = typeof(LocalizedStrings), Name = "Configuration", Description = "ServerConfigDot", GroupName = "Session", Order = 0)]
public SpbExAddressConfig Config { get; set; }

Property Value

SpbExAddressConfig

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

bool

FeatureName

Feature name.

public override string FeatureName { get; }

Property Value

string

IgnoreLimits

Ignore limits.

[Display(ResourceType = typeof(LocalizedStrings), Name = "Limits", Description = "IgnoreLimits", GroupName = "Session", Order = 5)]
public bool IgnoreLimits { get; set; }

Property Value

bool

IsNativeIdentifiers

Identify security in messages by native identifier Native.

public override bool IsNativeIdentifiers { get; }

Property Value

bool

IsSupportOrderBookIncrements

Adapter translates incremental order books.

public override bool IsSupportOrderBookIncrements { get; }

Property Value

bool

Login

Login.

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

Property Value

string

Password

Password.

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

Property Value

SecureString

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 DataType

Data type info.

Returns

bool

Check result.

IsSecurityRequired(DataType)

Support filtering subscriptions (subscribe/unsubscribe for specified security).

public override bool IsSecurityRequired(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