IEntityRegistry
StockSharp.Algo.Storages
描述交易对象存储的界面 。
实现: IAsyncDisposable
属性
ExchangeBoards
public IStorageEntityList<ExchangeBoard> ExchangeBoards { get; }
value = iEntityRegistry.ExchangeBoards
股票董事会名单.
Exchanges
public IStorageEntityList<Exchange> Exchanges { get; }
value = iEntityRegistry.Exchanges
交流名录.
Portfolios
public IStorageEntityList<Portfolio> Portfolios { get; }
value = iEntityRegistry.Portfolios
组合列表.
PositionStorage
public IPositionStorage PositionStorage { get; }
value = iEntityRegistry.PositionStorage
位置存储 。
Subscriptions
public IStorageEntityList<MarketDataMessage> Subscriptions { get; }
value = iEntityRegistry.Subscriptions
订阅列表.
方法
InitAsync
public ValueTask<Dictionary<object, Exception>> InitAsync(CancellationToken cancellationToken)
result = iEntityRegistry.InitAsync(cancellationToken)
初始化存储 。
返回值: 存储名称可能有错误。 空字典意味着没有问题地初始化 。