OrderBookTruncateManagerState

StockSharp.Algo

IOrderBookTruncateManagerState的默认执行.

实现: IOrderBookTruncateManagerState

属性

HasDepths
public bool HasDepths { get; }
value = orderBookTruncateManagerState.HasDepths

是否跟踪到任何深度 。

方法

AddDepth
public void AddDepth(long transactionId, int depth)
orderBookTruncateManagerState.AddDepth(transactionId, depth)

添加订阅深度 。

Clear
public void Clear()
orderBookTruncateManagerState.Clear()

清除所有适配状态, 并重置当前状态以断开连接 。

GroupByDepth
public IEnumerable<ValueTuple<int?, long[]>> GroupByDepth(long[] subscriptionIds)
result = orderBookTruncateManagerState.GroupByDepth(subscriptionIds)

组订阅ID 以它们相关的深度。 返回没有深度跟踪的 ID 的无键组 。

RemoveDepth
public bool RemoveDepth(long transactionId)
result = orderBookTruncateManagerState.RemoveDepth(transactionId)

删除订阅的深度 。

TryGetDepth
public int? TryGetDepth(long transactionId)
result = orderBookTruncateManagerState.TryGetDepth(transactionId)

尝试获取订阅深度 。