BitmartMessageAdapter

StockSharp.Bitmart

Bitmart のメッセージ アダプター。

継承元: MessageAdapter

実装: IKeySecretAdapter, IAddressAdapter<string>

コンストラクター

BitmartMessageAdapter
public BitmartMessageAdapter(IdGenerator transactionIdGenerator)
bitmartMessageAdapter = BitmartMessageAdapter(transactionIdGenerator)

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

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

プロパティ

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

サーバーアドレス。

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

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

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

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

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

フィーチャー名。

FuturesPrivateWsAddress
public string FuturesPrivateWsAddress { get; set; }
value = bitmartMessageAdapter.FuturesPrivateWsAddress
bitmartMessageAdapter.FuturesPrivateWsAddress = value

未来のプライベートウェブソケットエンドポイント。

FuturesPublicWsAddress
public string FuturesPublicWsAddress { get; set; }
value = bitmartMessageAdapter.FuturesPublicWsAddress
bitmartMessageAdapter.FuturesPublicWsAddress = value

未来の公開websocketエンドポイント。

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

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

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

主。

Memo
public string Memo { get; set; }
value = bitmartMessageAdapter.Memo
bitmartMessageAdapter.Memo = value

メモ。

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

秘密。

Section
public BitmartSections Section { get; set; }
value = bitmartMessageAdapter.Section
bitmartMessageAdapter.Section = value

セクション。

SpotPrivateWsAddress
public string SpotPrivateWsAddress { get; set; }
value = bitmartMessageAdapter.SpotPrivateWsAddress
bitmartMessageAdapter.SpotPrivateWsAddress = value

プライベートな websocket エンドポイントをスポット化します。

SpotPublicWsAddress
public string SpotPublicWsAddress { get; set; }
value = bitmartMessageAdapter.SpotPublicWsAddress
bitmartMessageAdapter.SpotPublicWsAddress = value

公共の websocket エンドポイントをスポット化します。

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

Available options for MaxDepth.

メソッド

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

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

dataType
データ型情報。

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

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

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

subscription
担当: 佐藤 宏

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

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

設定をロードします。

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

設定を保存します。

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

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

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