CsvEntityRegistry
StockSharp.Algo.Storages.Csv
取引オブジェクトのCSVストレージ。
継承元: AsyncDisposable
実装: IEntityRegistry, IAsyncDisposable
コンストラクター
CsvEntityRegistry
public CsvEntityRegistry(string path, ChannelExecutor executor)
csvEntityRegistry = CsvEntityRegistry(path, executor)
CsvEntityRegistry の新規インスタンスを初期化します。
- path
- データディレクトリへのパス。
- executor
- ディスクアクセス同期のためのシーケンシャル操作の実行者。
CsvEntityRegistry
public CsvEntityRegistry(IFileSystem fileSystem, string path, ChannelExecutor executor)
csvEntityRegistry = CsvEntityRegistry(fileSystem, path, executor)
CsvEntityRegistry の新規インスタンスを初期化します。
- fileSystem
- 担当: 佐藤 宏
- path
- データディレクトリへのパス。
- executor
- ディスクアクセス同期のためのシーケンシャル操作の実行者。
プロパティ
Encoding
public Encoding Encoding { get; set; }
value = csvEntityRegistry.Encoding
csvEntityRegistry.Encoding = value
プログラミング
ExchangeBoards
public IStorageEntityList<ExchangeBoard> ExchangeBoards { get; }
value = csvEntityRegistry.ExchangeBoards
株式ボードの一覧です。
Exchanges
public IStorageEntityList<Exchange> Exchanges { get; }
value = csvEntityRegistry.Exchanges
取引所の一覧
Path
public string Path { get; set; }
value = csvEntityRegistry.Path
csvEntityRegistry.Path = value
データディレクトリへのパス。
Portfolios
public IStorageEntityList<Portfolio> Portfolios { get; }
value = csvEntityRegistry.Portfolios
ポートフォリオのリスト。
Positions
public IStoragePositionList Positions { get; }
value = csvEntityRegistry.Positions
位置のリスト。
PositionStorage
public IPositionStorage PositionStorage { get; }
value = csvEntityRegistry.PositionStorage
位置の貯蔵。
Securities
public IStorageSecurityList Securities { get; }
value = csvEntityRegistry.Securities
楽器のリスト。
Subscriptions
public IStorageEntityList<MarketDataMessage> Subscriptions { get; }
value = csvEntityRegistry.Subscriptions
サブスクリプションのリスト。
メソッド
Add``2
public void Add<TKey, TEntity>(CsvEntityList<TKey, TEntity> list)
csvEntityRegistry.Add(list)
取引オブジェクトのリストを追加します。
- list
- 取引オブジェクトのリスト。
DisposeManaged
protected override ValueTask DisposeManaged()
result = csvEntityRegistry.DisposeManaged()
リソースのリリース
InitAsync
public ValueTask<Dictionary<object, Exception>> InitAsync(CancellationToken cancellationToken)
result = csvEntityRegistry.InitAsync(cancellationToken)
ストレージを初期化します。
戻り値: Possible errors with storage names. Empty dictionary means initialization without any issues.