LigtherMessageAdapter
Ligther(ライター)のメッセージアダプタ。
継承元: MessageAdapter
実装: IKeySecretAdapter, IDemoAdapter
コンストラクター
public LigtherMessageAdapter(IdGenerator transactionIdGenerator)
ligtherMessageAdapter = LigtherMessageAdapter(transactionIdGenerator)
LigtherMessageAdapter の新規インスタンスを初期化します。
- transactionIdGenerator
- トランザクションIDジェネレータ。
プロパティ
public int AccountIndex { get; set; }
value = ligtherMessageAdapter.AccountIndex
ligtherMessageAdapter.AccountIndex = value
ライターアカウントのインデックス。
public static IEnumerable<TimeSpan> AllTimeFrames { get; }
value = LigtherMessageAdapter.AllTimeFrames
キャンドルタイムフレームを可能。
public int ApiKeyIndex { get; set; }
value = ligtherMessageAdapter.ApiKeyIndex
ligtherMessageAdapter.ApiKeyIndex = value
ライターAPIキーインデックス。
public override string[] AssociatedBoards { get; }
value = ligtherMessageAdapter.AssociatedBoards
アダプターは、指定されたボードに関連付けられている機器のみでサブスクリプションを処理できます。
public string DerivativesRestEndpoint { get; set; }
value = ligtherMessageAdapter.DerivativesRestEndpoint
ligtherMessageAdapter.DerivativesRestEndpoint = value
派手な REST エンドポイント。
public string DerivativesWsEndpoint { get; set; }
value = ligtherMessageAdapter.DerivativesWsEndpoint
ligtherMessageAdapter.DerivativesWsEndpoint = value
派手な websocket エンドポイント。
public bool IsDemo { get; set; }
value = ligtherMessageAdapter.IsDemo
ligtherMessageAdapter.IsDemo = value
実際の取引サーバーではなく、デモ取引に接続します。
public override bool IsSupportOrderBookIncrements { get; }
value = ligtherMessageAdapter.IsSupportOrderBookIncrements
アダプターは、増分注文書を翻訳します。
public SecureString Key { get; set; }
value = ligtherMessageAdapter.Key
ligtherMessageAdapter.Key = value
主。
public SecureString Secret { get; set; }
value = ligtherMessageAdapter.Secret
ligtherMessageAdapter.Secret = value
秘密。
public IEnumerable<LigtherSections> Sections { get; set; }
value = ligtherMessageAdapter.Sections
ligtherMessageAdapter.Sections = value
市場セクション。
public string SpotRestEndpoint { get; set; }
value = ligtherMessageAdapter.SpotRestEndpoint
ligtherMessageAdapter.SpotRestEndpoint = value
REST エンドポイントをスポット化
public string SpotWsEndpoint { get; set; }
value = ligtherMessageAdapter.SpotWsEndpoint
ligtherMessageAdapter.SpotWsEndpoint = value
スポット websocket エンドポイント.
public bool UseWsReadOnlyMode { get; set; }
value = ligtherMessageAdapter.UseWsReadOnlyMode
ligtherMessageAdapter.UseWsReadOnlyMode = value
利用可能なときに websocket 読み取り専用モードクエリパラメータを使用します。
メソッド
protected override ValueTask CancelOrderAsync(OrderCancelMessage cancelMsg, CancellationToken cancellationToken)
result = ligtherMessageAdapter.CancelOrderAsync(cancelMsg, cancellationToken)
protected override ValueTask CancelOrderGroupAsync(OrderGroupCancelMessage cancelMsg, CancellationToken cancellationToken)
result = ligtherMessageAdapter.CancelOrderGroupAsync(cancelMsg, cancellationToken)
protected override ValueTask ConnectAsync(ConnectMessage connectMsg, CancellationToken cancellationToken)
result = ligtherMessageAdapter.ConnectAsync(connectMsg, cancellationToken)
protected override ValueTask DisconnectAsync(DisconnectMessage disconnectMsg, CancellationToken cancellationToken)
result = ligtherMessageAdapter.DisconnectAsync(disconnectMsg, cancellationToken)
public override bool IsAllDownloadingSupported(DataType dataType)
result = ligtherMessageAdapter.IsAllDownloadingSupported(dataType)
対象となる全ての金融商品のダウンロードは有効です。
- dataType
- データ型情報。
戻り値: 結果をチェックする。
public override bool IsSupportCandlesUpdates(MarketDataMessage subscription)
result = ligtherMessageAdapter.IsSupportCandlesUpdates(subscription)
キャンドルのサブスクリプションとライブ更新をサポート。
- subscription
- 担当: 佐藤 宏
戻り値: 結果をチェックする。
public override void Load(SettingsStorage storage)
ligtherMessageAdapter.Load(storage)
設定をロードします。
- storage
- 設定ストレージ。
protected override ValueTask OnLevel1SubscriptionAsync(MarketDataMessage mdMsg, CancellationToken cancellationToken)
result = ligtherMessageAdapter.OnLevel1SubscriptionAsync(mdMsg, cancellationToken)
サブスクリプションリクエストをLevel1データに処理します。Level1サブスクリプション処理の実装をオーバーライドします。デフォルトでは、NotSupportedをスローします。
- mdMsg
- 市場データサブスクリプションメッセージ。
- cancellationToken
- キャンセルトークンで操作をキャンセルします。
戻り値: 同期動作を表すValueTask
protected override ValueTask OnMarketDepthSubscriptionAsync(MarketDataMessage mdMsg, CancellationToken cancellationToken)
result = ligtherMessageAdapter.OnMarketDepthSubscriptionAsync(mdMsg, cancellationToken)
市場深度データへのサブスクリプションリクエストを処理します。 市場深度サブスクリプション処理の実装をオーバーライドします。 デフォルト実装はNotSupportedをスローします。
- mdMsg
- 市場データサブスクリプションメッセージ。
- cancellationToken
- キャンセルトークンで操作をキャンセルします。
戻り値: 同期動作を表すValueTask
protected override ValueTask OnTFCandlesSubscriptionAsync(MarketDataMessage mdMsg, CancellationToken cancellationToken)
result = ligtherMessageAdapter.OnTFCandlesSubscriptionAsync(mdMsg, cancellationToken)
時間枠のキャンドル(TFキャンドル)データのためのサブスクリプションリクエストを処理します。 TFキャンドルサブスクリプション処理の実装をオーバーライドします。 デフォルトの実装はNotSupportedをスローします。
- mdMsg
- 市場データサブスクリプションメッセージ。
- cancellationToken
- キャンセルトークンで操作をキャンセルします。
戻り値: 同期動作を表すValueTask
protected override ValueTask OnTicksSubscriptionAsync(MarketDataMessage mdMsg, CancellationToken cancellationToken)
result = ligtherMessageAdapter.OnTicksSubscriptionAsync(mdMsg, cancellationToken)
サブスクリプションリクエストを処理し、データのティックスを処理します。 サブスクリプション処理のティックスへの実装をオーバーライドします。 デフォルトでは、NotSupportedをスローします。
- mdMsg
- 市場データサブスクリプションメッセージ。
- cancellationToken
- キャンセルトークンで操作をキャンセルします。
戻り値: 同期動作を表すValueTask
protected override ValueTask OrderStatusAsync(OrderStatusMessage statusMsg, CancellationToken cancellationToken)
result = ligtherMessageAdapter.OrderStatusAsync(statusMsg, cancellationToken)
protected override ValueTask PortfolioLookupAsync(PortfolioLookupMessage lookupMsg, CancellationToken cancellationToken)
result = ligtherMessageAdapter.PortfolioLookupAsync(lookupMsg, cancellationToken)
protected override ValueTask RegisterOrderAsync(OrderRegisterMessage regMsg, CancellationToken cancellationToken)
result = ligtherMessageAdapter.RegisterOrderAsync(regMsg, cancellationToken)
protected override ValueTask ReplaceOrderAsync(OrderReplaceMessage replaceMsg, CancellationToken cancellationToken)
result = ligtherMessageAdapter.ReplaceOrderAsync(replaceMsg, cancellationToken)
protected override ValueTask ResetAsync(ResetMessage resetMsg, CancellationToken cancellationToken)
result = ligtherMessageAdapter.ResetAsync(resetMsg, cancellationToken)
public override void Save(SettingsStorage storage)
ligtherMessageAdapter.Save(storage)
設定を保存します。
- storage
- 設定ストレージ。
protected override ValueTask SecurityLookupAsync(SecurityLookupMessage lookupMsg, CancellationToken cancellationToken)
result = ligtherMessageAdapter.SecurityLookupAsync(lookupMsg, cancellationToken)
protected override ValueTask TimeAsync(TimeMessage timeMsg, CancellationToken cancellationToken)
result = ligtherMessageAdapter.TimeAsync(timeMsg, cancellationToken)
public override string ToString()
result = ligtherMessageAdapter.ToString()
ライン表現に換算します。
戻り値: 弦のパフォーマンス。
protected override bool ValidateSecurityId(SecurityId secId)
result = ligtherMessageAdapter.ValidateSecurityId(secId)
指定された金融商品IDをアダプターで有効化し、サブスクリプションを実行できます。
- secId
- 代表取締役社長 佐藤 浩
戻り値: 結果をチェックする。