/// <summary> /// Удалить генератор стаканов, ранее зарегистрированный через <see cref="RegisterMarketDepth"/>. /// </summary> /// <param name="generator">Генератор стаканов.</param> public void UnRegisterMarketDepth(MarketDepthGenerator generator) { if (generator == null) { throw new ArgumentNullException("generator"); } _marketDataAdapter.DepthGenerators.Remove(generator.SecurityId); UnRegisterMarketDepth(FindSecurity(generator.SecurityId)); }
/// <summary> /// Удалить генератор стаканов, ранее зарегистрированный через <see cref="RegisterMarketDepth"/>. /// </summary> /// <param name="generator">Генератор стаканов.</param> public void UnRegisterMarketDepth(MarketDepthGenerator generator) { SendInGeneratorMessage(generator, false); }
/// <summary> /// Зарегистрировать генератор стаканов. /// </summary> /// <param name="generator">Генератор стаканов.</param> public void RegisterMarketDepth(MarketDepthGenerator generator) { SendInGeneratorMessage(generator, true); }
/// <summary> /// To delete the order books generator, earlier registered through <see cref="RegisterMarketDepth"/>. /// </summary> /// <param name="generator">The order books generator.</param> public void UnRegisterMarketDepth(MarketDepthGenerator generator) { SendInGeneratorMessage(generator, false); }
/// <summary> /// To register the order books generator. /// </summary> /// <param name="generator">The order books generator.</param> public void RegisterMarketDepth(MarketDepthGenerator generator) { SendInGeneratorMessage(generator, true); }
public void UnRegisterMarketDepth(MarketDepthGenerator generator) => UnSubscribeGenerator(generator);
/// <summary> /// To register the order books generator. /// </summary> /// <param name="generator">The order books generator.</param> /// <returns>Subscription.</returns> //[Obsolete("Uses custom adapter implementation.")] public Subscription RegisterMarketDepth(MarketDepthGenerator generator) => SubscribeGenerator(generator);