RemoteStorageClient

StockSharp.Algo.Storages

履歴サーバへのアクセス

継承元: Disposable

コンストラクター

RemoteStorageClient
public RemoteStorageClient(IMessageAdapter adapter, int securityBatchSize)
remoteStorageClient = RemoteStorageClient(adapter, securityBatchSize)

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

adapter
メッセージアダプタ。
securityBatchSize
新規の機器リクエストブロックサイズ。

メソッド

DeleteAsync
public ValueTask DeleteAsync(SecurityId securityId, DataType dataType, StorageFormats format, DateTime date, CancellationToken cancellationToken)
result = remoteStorageClient.DeleteAsync(securityId, dataType, format, date, cancellationToken)

保存から指定された日付で市場データを削除します。

securityId
金融商品ID
dataType
データ型情報。
format
ストレージ形式。
date
日程表
cancellationToken
担当: 佐藤 宏

戻り値: 担当: 佐藤 宏

DisposeManaged
protected override void DisposeManaged()
remoteStorageClient.DisposeManaged()

リソースのリリース

GetAvailableDataTypesAsync
public IAsyncEnumerable<DataType> GetAvailableDataTypesAsync(SecurityId securityId, StorageFormats format)
result = remoteStorageClient.GetAvailableDataTypesAsync(securityId, format)

利用可能なデータタイプをすべて取得します。

securityId
機器識別子。
format
フォーマットタイプ。

戻り値: データ型。

GetAvailableSecuritiesAsync
public IAsyncEnumerable<SecurityId> GetAvailableSecuritiesAsync()
result = remoteStorageClient.GetAvailableSecuritiesAsync()

利用可能なすべての楽器を非同期ストリームとして入手できます。

戻り値: 利用可能な機器。

GetDatesAsync
public ValueTask<IEnumerable<DateTime>> GetDatesAsync(SecurityId securityId, DataType dataType, StorageFormats format, CancellationToken cancellationToken)
result = remoteStorageClient.GetDatesAsync(securityId, dataType, format, cancellationToken)

市場データが記録されるすべての日付を取得するため。

securityId
金融商品ID
dataType
データ型情報。
format
ストレージ形式。
cancellationToken
担当: 佐藤 宏

戻り値: 日程表

LoadStreamAsync
public ValueTask<Stream> LoadStreamAsync(SecurityId securityId, DataType dataType, StorageFormats format, DateTime date, CancellationToken cancellationToken)
result = remoteStorageClient.LoadStreamAsync(securityId, dataType, format, date, cancellationToken)

StockSharp ストレージのフォーマットにデータを読み込みます。

securityId
金融商品ID
dataType
データ型情報。
format
ストレージ形式。
date
日程表
cancellationToken
担当: 佐藤 宏

戻り値: StockSharp ストレージの形式にデータが格納されます。データが存在しない場合、Null は返されます。

LookupBoardsAsync
public IAsyncEnumerable<BoardMessage> LookupBoardsAsync(BoardLookupMessage criteria)
result = remoteStorageClient.LookupBoardsAsync(criteria)

指定された条件でボードをダウンロードします。

criteria
指定された基準のメッセージボードの検索

戻り値: 見つかったボードのシーケンス。

LookupSecuritiesAsync
public IAsyncEnumerable<SecurityMessage> LookupSecuritiesAsync(SecurityLookupMessage criteria, ISecurityProvider securityProvider)
result = remoteStorageClient.LookupSecuritiesAsync(criteria, securityProvider)

指定された基準で金融商品をダウンロードしてください。

criteria
特定基準のメッセージ財務機器の検索
securityProvider
機器に関する情報提供者

戻り値: 見つかった楽器のシーケンス。

SaveSecuritiesAsync
public ValueTask SaveSecuritiesAsync(IEnumerable<SecurityMessage> securities, CancellationToken cancellationToken)
result = remoteStorageClient.SaveSecuritiesAsync(securities, cancellationToken)

金融商品を保存します。

securities
金融商品取引
cancellationToken
担当: 佐藤 宏

戻り値: 担当: 佐藤 宏

SaveStreamAsync
public ValueTask SaveStreamAsync(SecurityId securityId, DataType dataType, StorageFormats format, DateTime date, Stream stream, CancellationToken cancellationToken)
result = remoteStorageClient.SaveStreamAsync(securityId, dataType, format, date, stream, cancellationToken)

StockSharp ストレージの形式でデータを保存します。

securityId
金融商品ID
dataType
データ型情報。
format
ストレージ形式。
date
日程表
stream
cancellationToken
担当: 佐藤 宏

戻り値: 担当: 佐藤 宏

VerifyAsync
public ValueTask VerifyAsync(CancellationToken cancellationToken)
result = remoteStorageClient.VerifyAsync(cancellationToken)

サーバへの接続を検証します。接続を解除し、接続を解除してテスト接続を解除します。

cancellationToken
担当: 佐藤 宏

戻り値: 担当: 佐藤 宏