Пример #1
0
        private void RaiseMarketDataSubscriptionFinished(Security security, MarketDataFinishedMessage message, Subscription subscription)
        {
            this.AddDebugLog(LocalizedStrings.SubscriptionFinished, security?.Id, message);
            MarketDataSubscriptionFinished?.Invoke(security, message);

            if (subscription != null)
            {
                RaiseSubscriptionStopped(subscription, null);
            }
        }
Пример #2
0
        private void RaiseMarketDataSubscriptionFinished(MarketDataFinishedMessage message, Subscription subscription)
        {
            if (message == null)
            {
                throw new ArgumentNullException(nameof(message));
            }

            if (subscription == null)
            {
                throw new ArgumentNullException(nameof(subscription));
            }

            var security = subscription.Security;

            this.AddDebugLog(LocalizedStrings.SubscriptionFinished, security?.Id, message);
            MarketDataSubscriptionFinished?.Invoke(security, message);

            RaiseSubscriptionStopped(subscription, null);

            if (subscription.CandleSeries != null)
            {
                RaiseCandleSeriesStopped(subscription.CandleSeries);
            }
        }
Пример #3
0
 private void RaiseMarketDataSubscriptionFinished(Security security, MarketDataFinishedMessage message)
 {
     this.AddDebugLog("Market data finished: {0} {1}", security?.Id, message);
     MarketDataSubscriptionFinished?.Invoke(security, message);
 }
Пример #4
0
 private void RaiseMarketDataSubscriptionFinished(Security security, MarketDataFinishedMessage message)
 {
     this.AddDebugLog(LocalizedStrings.SubscriptionFinished, security?.Id, message);
     MarketDataSubscriptionFinished?.Invoke(security, message);
 }