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
IFileSystem
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

交流名录.

FileSystem
public IFileSystem FileSystem { get; }
value = csvEntityRegistry.FileSystem

文件系统。

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.