LocalMarketDataDrive

StockSharp.Algo.Storages

市場データのためのファイルストレージ。

継承元: BaseMarketDataDrive

コンストラクター

LocalMarketDataDrive
public LocalMarketDataDrive(IFileSystem fileSystem, string path)
localMarketDataDrive = LocalMarketDataDrive(fileSystem, path)

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

fileSystem
ファイルシステム抽象化。
path
ディレクトリへのパスをデータで読み込む。
LocalMarketDataDrive
public LocalMarketDataDrive(string path)
localMarketDataDrive = LocalMarketDataDrive(path)

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

path
ディレクトリへのパスをデータで読み込む。
LocalMarketDataDrive
public LocalMarketDataDrive()
localMarketDataDrive = LocalMarketDataDrive()

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

プロパティ

AvailableDataTypesCachePeriod
public TimeSpan AvailableDataTypesCachePeriod { get; set; }
value = localMarketDataDrive.AvailableDataTypesCachePeriod
localMarketDataDrive.AvailableDataTypesCachePeriod = value

How long the answer to "what does this whole drive hold" is reused before the folders are walked again. Zero, the default, walks them on every question.

AvailableSecurities
public IEnumerable<SecurityId> AvailableSecurities { get; }
value = localMarketDataDrive.AvailableSecurities

金融商品取引業

Path
public override string Path { get; set; }
value = localMarketDataDrive.Path
localMarketDataDrive.Path = value

市場データへのパス。

メソッド

BuildIndexAsync
public Task BuildIndexAsync(ILogReceiver logs, Action<int, int> updateProgress, CancellationToken cancellationToken)
result = localMarketDataDrive.BuildIndexAsync(logs, updateProgress, cancellationToken)

ストレージから利用可能なデータ型にアクセスするための高速なパフォーマンスのためのインデックスを作成。

logs
ログ。 できます。
updateProgress
進捗ハンドラ。
cancellationToken
担当: 佐藤 宏

戻り値: タスク

ChangeCachedDataType
private void ChangeCachedDataType(StorageFormats format, DataType dataType, bool remove)
localMarketDataDrive.ChangeCachedDataType(format, dataType, remove)

A day written for a data type proves the drive holds it, and the held answer can be told so without walking the folders again. A day removed may have been the last of its type, and only a fresh walk can tell, so the answer is given up instead. The read time is kept as it was: a type added here says nothing new about the rest of the drive.

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

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

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

戻り値: データ型。

GetAvailableSecuritiesAsync
public override IAsyncEnumerable<SecurityId> GetAvailableSecuritiesAsync()
result = localMarketDataDrive.GetAvailableSecuritiesAsync()

利用可能なすべての機器を入手してください。

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

GetDataType
public static DataType GetDataType(string fileName)
result = LocalMarketDataDrive.GetDataType(fileName)

指定したファイル名のデータタイプとパラメーターを取得します。

fileName
ファイル名

戻り値: 型に関連付けられたデータ型とパラメータ。例えば、キャンドルラグ。

GetDate
public static DateTime GetDate(string dirName)
result = LocalMarketDataDrive.GetDate(dirName)

ディレクトリ名を日付に変換します。

dirName
ディレクトリ名。

戻り値: 日 時 分

GetDirName
public static string GetDirName(DateTime date)
result = LocalMarketDataDrive.GetDirName(date)

日付をディレクトリ名に変換します。

date
日 時 分

戻り値: ディレクトリ名。

GetExtension
public static string GetExtension(StorageFormats format)
result = LocalMarketDataDrive.GetExtension(format)

フォーマットのファイル拡張子を取得するには.

format
フォーマット。

戻り値: 拡張子。

GetFileName
public static string GetFileName(DataType dataType, StorageFormats? format, bool throwIfUnknown)
result = LocalMarketDataDrive.GetFileName(dataType, format, throwIfUnknown)

データの型でファイル名を取得する。

dataType
データ型情報。
format
ストレージ形式。拡張子を設定した場合はファイル名に拡張子を追加します。
throwIfUnknown
指定されたタイプが不明な場合は例外を投げます。

戻り値: ファイル名

GetSecurityPath
public string GetSecurityPath(SecurityId securityId)
result = localMarketDataDrive.GetSecurityPath(securityId)

機器の市場データを持つフォルダへのパスを取得する。

securityId
金融商品ID

戻り値: マーケットデータのあるフォルダへのパス。

GetStorageDrive
public override IMarketDataStorageDrive GetStorageDrive(SecurityId securityId, DataType dataType, StorageFormats format)
result = localMarketDataDrive.GetStorageDrive(securityId, dataType, format)

IMarketDataStorage のストレージを取得するには.

securityId
金融商品ID
dataType
データ型情報。
format
フォーマットタイプ。

戻り値: Storage for IMarketDataStorage.

LoadAsync
public override Task LoadAsync(SettingsStorage storage, CancellationToken cancellationToken)
result = localMarketDataDrive.LoadAsync(storage, cancellationToken)

Load settings.

storage
Settings storage.
cancellationToken
CancellationToken

戻り値: Task

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

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

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

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

SaveAsync
public override Task SaveAsync(SettingsStorage storage, CancellationToken cancellationToken)
result = localMarketDataDrive.SaveAsync(storage, cancellationToken)

Save settings.

storage
Settings storage.
cancellationToken
CancellationToken

戻り値: Task

TrySaveIndex
public TimeSpan? TrySaveIndex(TimeSpan diff)
result = localMarketDataDrive.TrySaveIndex(diff)

既存のインデックスを保存してください。

diff
前のインデックス変更から時刻差分を変更します。

戻り値: ビルドプロセスで撮影した時間。ビルドが起こらないことを意味します。

VerifyAsync
public override ValueTask VerifyAsync(CancellationToken cancellationToken)
result = localMarketDataDrive.VerifyAsync(cancellationToken)

設定を検証します。

cancellationToken
担当: 佐藤 宏

戻り値: 担当: 佐藤 宏