ByBitMessageAdapter

StockSharp.ByBit

The message adapter for ByBit.

継承元: MessageAdapter

実装: IKeySecretAdapter, IDemoAdapter, IAddressAdapter<string>

コンストラクター

ByBitMessageAdapter
public ByBitMessageAdapter(IdGenerator transactionIdGenerator)
byBitMessageAdapter = ByBitMessageAdapter(transactionIdGenerator)

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

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

プロパティ

Address
public string Address { get; set; }
value = byBitMessageAdapter.Address
byBitMessageAdapter.Address = value

サーバーアドレス。

AllTimeFrames
public static IEnumerable<TimeSpan> AllTimeFrames { get; }
value = ByBitMessageAdapter.AllTimeFrames

タイムフレームの対応が可能

AssociatedBoards
public override string[] AssociatedBoards { get; }
value = byBitMessageAdapter.AssociatedBoards

アダプターは、指定されたボードに関連付けられている機器のみでサブスクリプションを処理できます。

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

フィーチャー名。

IsDemo
public bool IsDemo { get; set; }
value = byBitMessageAdapter.IsDemo
byBitMessageAdapter.IsDemo = value

実際の取引サーバーではなく、デモ取引に接続します。

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

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

Key
public SecureString Key { get; set; }
value = byBitMessageAdapter.Key
byBitMessageAdapter.Key = value

主。

RecvWindow
public int RecvWindow { get; set; }
value = byBitMessageAdapter.RecvWindow
byBitMessageAdapter.RecvWindow = value

タイムアウト。

Secret
public SecureString Secret { get; set; }
value = byBitMessageAdapter.Secret
byBitMessageAdapter.Secret = value

秘密。

Sections
public IEnumerable<ByBitSections> Sections { get; set; }
value = byBitMessageAdapter.Sections
byBitMessageAdapter.Sections = value

セクション。

SupportedOrderBookDepths
public override IEnumerable<int> SupportedOrderBookDepths { get; }
value = byBitMessageAdapter.SupportedOrderBookDepths

Available options for MaxDepth.

TimeStampOffset
public int TimeStampOffset { get; set; }
value = byBitMessageAdapter.TimeStampOffset
byBitMessageAdapter.TimeStampOffset = value

タイムスタンプオフセット。

メソッド

CancelOrderAsync
protected override ValueTask CancelOrderAsync(OrderCancelMessage cancelMsg, CancellationToken cancellationToken)
result = byBitMessageAdapter.CancelOrderAsync(cancelMsg, cancellationToken)
ConnectAsync
protected override ValueTask ConnectAsync(ConnectMessage connectMsg, CancellationToken cancellationToken)
result = byBitMessageAdapter.ConnectAsync(connectMsg, cancellationToken)
DisconnectAsync
protected override ValueTask DisconnectAsync(DisconnectMessage disconnectMsg, CancellationToken cancellationToken)
result = byBitMessageAdapter.DisconnectAsync(disconnectMsg, cancellationToken)
IsAllDownloadingSupported
public override bool IsAllDownloadingSupported(DataType dataType)
result = byBitMessageAdapter.IsAllDownloadingSupported(dataType)

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

dataType
データ型情報。

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

IsSupportCandlesUpdates
public override bool IsSupportCandlesUpdates(MarketDataMessage subscription)
result = byBitMessageAdapter.IsSupportCandlesUpdates(subscription)

キャンドルのサブスクリプションとライブ更新をサポート。

subscription
担当: 佐藤 宏

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

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

設定をロードします。

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

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

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

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

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

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

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

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

OnTFCandlesSubscriptionAsync
protected override ValueTask OnTFCandlesSubscriptionAsync(MarketDataMessage mdMsg, CancellationToken cancellationToken)
result = byBitMessageAdapter.OnTFCandlesSubscriptionAsync(mdMsg, cancellationToken)

時間枠のキャンドル(TFキャンドル)データのためのサブスクリプションリクエストを処理します。 TFキャンドルサブスクリプション処理の実装をオーバーライドします。 デフォルトの実装はNotSupportedをスローします。

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

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

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

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

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

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

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

設定を保存します。

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

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

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