private static void OnMarketChanged(object sender, MarketChangedEventArgs e) { if (!_traceMarkets) { return; } PrintMarket(e.Snap); }
private void MarketCache_MarketChanged(object sender, MarketChangedEventArgs e) { if (marketObservers.TryGetValue(e.Market.MarketId, out IObserver <MarketSnap> o)) { // check to see if the market is finished if (e.Market.IsClosed) { o.OnCompleted(); } else { o.OnNext(e.Snap); } } }
private void MarketCache_MarketChanged(object sender, MarketChangedEventArgs e) { IObserver<MarketSnap> o; if (marketObservers.TryGetValue(e.Market.MarketId, out o)) { // check to see if the market is finished if (e.Market.IsClosed) o.OnCompleted(); else o.OnNext(e.Snap); } }