IOrderBookTruncateManagerState

StockSharp.Algo

Хранилище состояния для OrderBookTruncateManager.

Свойства

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

Отслеживаются ли какие-либо глубины.

Методы

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

Добавьте глубины подписке.

Clear
public void Clear()
iOrderBookTruncateManagerState.Clear()

Очистить все состояния.

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

Идентификаторы подписки группируются по связанной с ними глубине. Возвращает группу с нулевым ключом для идентификаторов без отслеживания глубины.

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

Удалить глубину для подписки.

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

Попробуйте получить глубину за подписку.