Exemple #1
0
        /// <summary>
        /// To stop the candles receiving subscription, previously created by <see cref="SubscribeCandles"/>.
        /// </summary>
        /// <param name="series">Candles series.</param>
        public void UnSubscribeCandles(CandleSeries series)
        {
            var transactionId = _candleSeries.GetKeys(series).FirstOrDefault();

            if (transactionId == 0)
            {
                return;
            }

            SendInMessage(new MarketDataMessage
            {
                OriginalTransactionId = transactionId
            }.FillSecurityInfo(this, series.Security));
        }