SpbExMessageAdapter

StockSharp.SpbEx

Spb 交換(バイナリプロトコル)メッセージアダプタ。

継承元: MessageAdapter

実装: ILoginPasswordAdapter

コンストラクター

SpbExMessageAdapter
public SpbExMessageAdapter(IdGenerator transactionIdGenerator)
spbExMessageAdapter = SpbExMessageAdapter(transactionIdGenerator)

SpbExMessageAdapter の新規インスタンスを初期化します。

transactionIdGenerator
トランザクションIDジェネレータ。

プロパティ

CancelOnDisconnect
public bool CancelOnDisconnect { get; set; }
value = spbExMessageAdapter.CancelOnDisconnect
spbExMessageAdapter.CancelOnDisconnect = value

接続解除

Config
public SpbExAddressConfig Config { get; set; }
value = spbExMessageAdapter.Config
spbExMessageAdapter.Config = value

設定。

EnableSuspend
public bool EnableSuspend { get; set; }
value = spbExMessageAdapter.EnableSuspend
spbExMessageAdapter.EnableSuspend = value

中断モードを有効にします(非注文メッセージが不要)。

FeatureName
public override string FeatureName { get; }
value = spbExMessageAdapter.FeatureName

フィーチャー名。

IgnoreLimits
public bool IgnoreLimits { get; set; }
value = spbExMessageAdapter.IgnoreLimits
spbExMessageAdapter.IgnoreLimits = value

無視制限。

IsAutoReplyOnTransactonalUnsubscription
public override bool IsAutoReplyOnTransactonalUnsubscription { get; }
value = spbExMessageAdapter.IsAutoReplyOnTransactonalUnsubscription

OrderStatusMessageとPortfolioLookupMessageのサブスクリプションのオートレスポンスを送信します。

IsNativeIdentifiers
public override bool IsNativeIdentifiers { get; }
value = spbExMessageAdapter.IsNativeIdentifiers

ネイティブ識別子ネイティブでメッセージ内の金融商品を特定します。

IsSupportOrderBookIncrements
public override bool IsSupportOrderBookIncrements { get; }
value = spbExMessageAdapter.IsSupportOrderBookIncrements

アダプターは、増分注文書を翻訳します。

Login
public string Login { get; set; }
value = spbExMessageAdapter.Login
spbExMessageAdapter.Login = value

ログイン

Password
public SecureString Password { get; set; }
value = spbExMessageAdapter.Password
spbExMessageAdapter.Password = value

パスワード

メソッド

AllocatePacket
internal IMemoryOwner<byte> AllocatePacket(int size)
result = spbExMessageAdapter.AllocatePacket(size)

メモリープールからパケットを割り当てます。

size
パケットのサイズ。

戻り値: 記憶所有者。

CancelOrderAsync
protected override ValueTask CancelOrderAsync(OrderCancelMessage cancelMsg, CancellationToken cancellationToken)
result = spbExMessageAdapter.CancelOrderAsync(cancelMsg, cancellationToken)
CancelOrderGroupAsync
protected override ValueTask CancelOrderGroupAsync(OrderGroupCancelMessage cancelMsg, CancellationToken cancellationToken)
result = spbExMessageAdapter.CancelOrderGroupAsync(cancelMsg, cancellationToken)
ConnectAsync
protected override ValueTask ConnectAsync(ConnectMessage connectMsg, CancellationToken cancellationToken)
result = spbExMessageAdapter.ConnectAsync(connectMsg, cancellationToken)
DisconnectAsync
protected override ValueTask DisconnectAsync(DisconnectMessage disconnectMsg, CancellationToken cancellationToken)
result = spbExMessageAdapter.DisconnectAsync(disconnectMsg, cancellationToken)
Dump
public void Dump(IDictionary<EndPoint, string> dumpFiles)
spbExMessageAdapter.Dump(dumpFiles)

ダンプファイルをテストします。

dumpFiles
ダンプファイル。
IsAllDownloadingSupported
public override bool IsAllDownloadingSupported(DataType dataType)
result = spbExMessageAdapter.IsAllDownloadingSupported(dataType)

対象となる全ての金融商品のダウンロードは有効です。

dataType
データ型情報。

戻り値: 結果をチェックする。

IsSecurityRequired
public override bool IsSecurityRequired(DataType dataType)
result = spbExMessageAdapter.IsSecurityRequired(dataType)

サブスクリプションのフィルタリング(指定された金融商品のサブスクリプション/サブスクリプションの購読/サブスクリプションの購読)をサポート。

dataType
データ型情報。

戻り値: 結果をチェックする。

Load
public override void Load(SettingsStorage storage)
spbExMessageAdapter.Load(storage)

設定をロードします。

storage
設定ストレージ。
OnLevel1SubscriptionAsync
protected override ValueTask OnLevel1SubscriptionAsync(MarketDataMessage mdMsg, CancellationToken cancellationToken)
result = spbExMessageAdapter.OnLevel1SubscriptionAsync(mdMsg, cancellationToken)

サブスクリプションリクエストをLevel1データに処理します。Level1サブスクリプション処理の実装をオーバーライドします。デフォルトでは、NotSupportedをスローします。

mdMsg
市場データサブスクリプションメッセージ。
cancellationToken
キャンセルトークンで操作をキャンセルします。

戻り値: 同期動作を表すValueTask

OnMarketDepthSubscriptionAsync
protected override ValueTask OnMarketDepthSubscriptionAsync(MarketDataMessage mdMsg, CancellationToken cancellationToken)
result = spbExMessageAdapter.OnMarketDepthSubscriptionAsync(mdMsg, cancellationToken)

市場深度データへのサブスクリプションリクエストを処理します。 市場深度サブスクリプション処理の実装をオーバーライドします。 デフォルト実装はNotSupportedをスローします。

mdMsg
市場データサブスクリプションメッセージ。
cancellationToken
キャンセルトークンで操作をキャンセルします。

戻り値: 同期動作を表すValueTask

OnTicksSubscriptionAsync
protected override ValueTask OnTicksSubscriptionAsync(MarketDataMessage mdMsg, CancellationToken cancellationToken)
result = spbExMessageAdapter.OnTicksSubscriptionAsync(mdMsg, cancellationToken)

サブスクリプションリクエストを処理し、データのティックスを処理します。 サブスクリプション処理のティックスへの実装をオーバーライドします。 デフォルトでは、NotSupportedをスローします。

mdMsg
市場データサブスクリプションメッセージ。
cancellationToken
キャンセルトークンで操作をキャンセルします。

戻り値: 同期動作を表すValueTask

OrderStatusAsync
protected override ValueTask OrderStatusAsync(OrderStatusMessage statusMsg, CancellationToken cancellationToken)
result = spbExMessageAdapter.OrderStatusAsync(statusMsg, cancellationToken)
PortfolioLookupAsync
protected override ValueTask PortfolioLookupAsync(PortfolioLookupMessage lookupMsg, CancellationToken cancellationToken)
result = spbExMessageAdapter.PortfolioLookupAsync(lookupMsg, cancellationToken)
RegisterOrderAsync
protected override ValueTask RegisterOrderAsync(OrderRegisterMessage regMsg, CancellationToken cancellationToken)
result = spbExMessageAdapter.RegisterOrderAsync(regMsg, cancellationToken)
ResetAsync
protected override ValueTask ResetAsync(ResetMessage resetMsg, CancellationToken cancellationToken)
result = spbExMessageAdapter.ResetAsync(resetMsg, cancellationToken)
Save
public override void Save(SettingsStorage storage)
spbExMessageAdapter.Save(storage)

設定を保存します。

storage
設定ストレージ。
SecurityLookupAsync
protected override ValueTask SecurityLookupAsync(SecurityLookupMessage lookupMsg, CancellationToken cancellationToken)
result = spbExMessageAdapter.SecurityLookupAsync(lookupMsg, cancellationToken)
TimeAsync
protected override ValueTask TimeAsync(TimeMessage timeMsg, CancellationToken cancellationToken)
result = spbExMessageAdapter.TimeAsync(timeMsg, cancellationToken)
ToString
public override string ToString()
result = spbExMessageAdapter.ToString()

ライン表現に換算します。

戻り値: 弦のパフォーマンス。

フィールド

DefaultHeartbeatInterval
public static readonly TimeSpan DefaultHeartbeatInterval
value = SpbExMessageAdapter.DefaultHeartbeatInterval

HeartbeatInterval のデフォルト値。