Example #1
0
        private void RaiseMarketDataUnSubscriptionFailed(MarketDataMessage origin, MarketDataMessage reply, Subscription subscription)
        {
            if (origin == null)
            {
                throw new ArgumentNullException(nameof(origin));
            }

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

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

            var security = subscription.Security;
            var error    = reply.Error ?? new NotSupportedException();

            this.AddErrorLog(LocalizedStrings.UnSubscribedError, security?.Id, origin.DataType, error.Message);
            MarketDataUnSubscriptionFailed?.Invoke(security, origin, error);
            MarketDataUnSubscriptionFailed2?.Invoke(security, origin, reply);

            RaiseSubscriptionFailed(subscription, error, false);
        }
Example #2
0
        private void RaiseMarketDataUnSubscriptionFailed(Security security, MarketDataMessage origin, MarketDataMessage reply)
        {
            var error = reply.Error ?? new NotSupportedException();

            this.AddErrorLog(LocalizedStrings.UnSubscribedError, security?.Id, origin.DataType, error.Message);
            MarketDataUnSubscriptionFailed?.Invoke(security, origin, error);
            MarketDataUnSubscriptionFailed2?.Invoke(security, origin, reply);
        }
Example #3
0
 private void RaiseMarketDataUnSubscriptionFailed(Security security, MarketDataMessage message, Exception error)
 {
     this.AddErrorLog(LocalizedStrings.UnSubscribedError, security?.Id, message.DataType, message.Error);
     MarketDataUnSubscriptionFailed?.Invoke(security, message, error);
 }
Example #4
0
 private void RaiseMarketDataUnSubscriptionFailed(Security security, MarketDataMessage message, Exception error)
 {
     MarketDataUnSubscriptionFailed?.Invoke(security, message, error);
 }