示例#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);
 }