예제 #1
0
        public Task StopAsync()
        {
            _internalTraderTimer.Stop();

            _settlementsTimer.Stop();

            _lykkeTradeSubscriberMonitor.Stop();

            _b2C2QuoteSubscriber.Stop();

            _b2C2OrderBooksSubscriber.Stop();

            foreach (QuoteSubscriber quoteSubscriber in _quoteSubscribers)
            {
                quoteSubscriber.Stop();
            }

            _lykkeTradeSubscriber.Stop();

            _marketMakerTimer.Stop();

            _lykkeBalancesTimer.Stop();

            _externalBalancesTimer.Stop();

            _hedgingTimer.Stop();

            _pnLStopLossEngineTimer.Stop();

            _internalQuotePublisher.Stop();

            _internalOrderBookPublisher.Stop();

            return(Task.CompletedTask);
        }
예제 #2
0
        public Task StopAsync()
        {
            _settlementsTimer.Stop();

            _indexTickPriceSubscriber.Stop();

            _lykkeOrderBookSubscriber.Stop();

            _lykkeTradeSubscriber.Stop();

            _lykkeBalancesTimer.Stop();

            foreach (QuoteSubscriber quoteSubscriber in _quoteSubscribers)
            {
                quoteSubscriber.Stop();
            }

            return(Task.CompletedTask);
        }