public void UnRegisterFilteredMarketDepth(Security security) { if (security == null) { throw new ArgumentNullException("security"); } if (TryUnSubscribe(_registeredFilteredMarketDepths, security)) { _connector.OnUnRegisterFilteredMarketDepth(security); } UnSubscribe(security, MarketDataTypes.MarketDepth); }
public void UnRegisterFilteredMarketDepth(Security security) { if (security == null) { throw new ArgumentNullException(nameof(security)); } if (TryUnSubscribe(_registeredFilteredMarketDepths, security)) { _connector.OnUnRegisterFilteredMarketDepth(security); } UnSubscribe(security, new MarketDataMessage { DataType = MarketDataTypes.MarketDepth, TransactionId = _connector.TransactionIdGenerator.GetNextId(), IsSubscribe = false, }.FillSecurityInfo(_connector, security)); }