IHistoryMarketDataManager

StockSharp.Algo.Testing

历史市场数据管理器接口.

实现: IDisposable

属性

AdapterCache
public MarketDataStorageCache AdapterCache { get; set; }
value = iHistoryMarketDataManager.AdapterCache
iHistoryMarketDataManager.AdapterCache = value

MarketDataStorageCache.

CheckTradableDates
public bool CheckTradableDates { get; set; }
value = iHistoryMarketDataManager.CheckTradableDates
iHistoryMarketDataManager.CheckTradableDates = value

检查装载日期是否可交易 。

CurrentTime
public DateTime CurrentTime { get; }
value = iHistoryMarketDataManager.CurrentTime

现相相相.

Drive
public IMarketDataDrive Drive { get; set; }
value = iHistoryMarketDataManager.Drive
iHistoryMarketDataManager.Drive = value

默认使用的存储 。

IsStarted
public bool IsStarted { get; }
value = iHistoryMarketDataManager.IsStarted

开始了

LoadedMessageCount
public int LoadedMessageCount { get; }
value = iHistoryMarketDataManager.LoadedMessageCount

装入的事件数 。

MarketTimeChangedInterval
public TimeSpan MarketTimeChangedInterval { get; set; }
value = iHistoryMarketDataManager.MarketTimeChangedInterval
iHistoryMarketDataManager.MarketTimeChangedInterval = value

消息TimeMessage生成的间隔.

PostTradeMarketTimeChangedCount
public int PostTradeMarketTimeChangedCount { get; set; }
value = iHistoryMarketDataManager.PostTradeMarketTimeChangedCount
iHistoryMarketDataManager.PostTradeMarketTimeChangedCount = value

活动次数在交易结束后会打电话.

StartDate
public DateTime StartDate { get; set; }
value = iHistoryMarketDataManager.StartDate
iHistoryMarketDataManager.StartDate = value

历史开始日期.

StopDate
public DateTime StopDate { get; set; }
value = iHistoryMarketDataManager.StopDate
iHistoryMarketDataManager.StopDate = value

历史中停站日期(日期已列出).

StorageCache
public MarketDataStorageCache StorageCache { get; set; }
value = iHistoryMarketDataManager.StorageCache
iHistoryMarketDataManager.StorageCache = value

缓存。

StorageFormat
public StorageFormats StorageFormat { get; set; }
value = iHistoryMarketDataManager.StorageFormat
iHistoryMarketDataManager.StorageFormat = value

市场数据格式.

StorageRegistry
public IStorageRegistry StorageRegistry { get; set; }
value = iHistoryMarketDataManager.StorageRegistry
iHistoryMarketDataManager.StorageRegistry = value

市场数据存储.

方法

GetSupportedDataTypesAsync
public IAsyncEnumerable<DataType> GetSupportedDataTypesAsync(SecurityId securityId)
result = iHistoryMarketDataManager.GetSupportedDataTypesAsync(securityId)

获取金融工具支持的数据类型。

securityId
金融工具标识。

返回值: 支持的数据类型.

HasGenerator
public bool HasGenerator(SecurityId securityId, DataType dataType)
result = iHistoryMarketDataManager.HasGenerator(securityId, dataType)

检查是否存在生成器 。

securityId
金融工具标识。
dataType
数据类型.

返回值: 如果发生器存在。

RegisterGenerator
public void RegisterGenerator(SecurityId securityId, DataType dataType, MarketDataGenerator generator, long transactionId)
iHistoryMarketDataManager.RegisterGenerator(securityId, dataType, generator, transactionId)

登记生成器。

securityId
金融工具标识。
dataType
数据类型.
generator
发电机。
transactionId
交易身份证明。
Reset
public void Reset()
iHistoryMarketDataManager.Reset()

复置set州.

StartAsync
public IAsyncEnumerable<Message> StartAsync(IEnumerable<BoardMessage> boards)
result = iHistoryMarketDataManager.StartAsync(boards)

启动市场数据生成.

boards
交换会的

返回值: 信件的可模拟性 。

Stop
public void Stop()
iHistoryMarketDataManager.Stop()

停止市场数据生成.

SubscribeAsync
public ValueTask<Exception> SubscribeAsync(MarketDataMessage message, CancellationToken cancellationToken)
result = iHistoryMarketDataManager.SubscribeAsync(message, cancellationToken)

订阅市场数据.

message
订阅消息.
cancellationToken
取消的代币。

返回值: 如果订阅失败, 错误, 否则无效 。

UnregisterGenerator
public bool UnregisterGenerator(long originalTransactionId)
result = iHistoryMarketDataManager.UnregisterGenerator(originalTransactionId)

失登记生成器。

originalTransactionId
原始交易编号。

返回值: 如果找到并移除了生成器。

Unsubscribe
public void Unsubscribe(long originalTransactionId)
iHistoryMarketDataManager.Unsubscribe(originalTransactionId)

取消市场数据订阅。

originalTransactionId
原始订阅交易 ID.