예제 #1
0
        private void RaiseMarketDataSubscriptionOnline(Security security, MarketDataMessage message, Subscription subscription)
        {
            this.AddDebugLog(LocalizedStrings.SubscriptionOnline, security?.Id, message);
            MarketDataSubscriptionOnline?.Invoke(security, message);

            if (subscription != null)
            {
                RaiseSubscriptionOnline(subscription);
            }
        }
예제 #2
0
        private void RaiseMarketDataSubscriptionOnline(Security security, MarketDataMessage message, Subscription subscription)
        {
            if (message == null)
            {
                throw new ArgumentNullException(nameof(message));
            }

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

            this.AddDebugLog(LocalizedStrings.SubscriptionOnline, security?.Id, message);
            MarketDataSubscriptionOnline?.Invoke(security, message);

            RaiseSubscriptionOnline(subscription);
        }
예제 #3
0
        private void RaiseMarketDataSubscriptionOnline(Subscription subscription)
        {
            if (subscription == null)
            {
                throw new ArgumentNullException(nameof(subscription));
            }

            var security = subscription.Security;

            this.AddDebugLog(LocalizedStrings.SubscriptionOnline, security?.Id, subscription.SubscriptionMessage);

            if (subscription.SubscriptionMessage is MarketDataMessage mdMsg)
            {
                MarketDataSubscriptionOnline?.Invoke(security, mdMsg);
            }

            RaiseSubscriptionOnline(subscription);
        }