예제 #1
0
        /// <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);
 }
예제 #4
0
		/// <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);
		}
예제 #5
0
		/// <summary>
		/// To register the order books generator.
		/// </summary>
		/// <param name="generator">The order books generator.</param>
		public void RegisterMarketDepth(MarketDepthGenerator generator)
		{
			SendInGeneratorMessage(generator, true);
		}
예제 #6
0
 public void UnRegisterMarketDepth(MarketDepthGenerator generator)
 => UnSubscribeGenerator(generator);
예제 #7
0
 /// <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);