예제 #1
0
 private static void OnOrderMarketChanged(object sender, OrderMarketChangedEventArgs e)
 {
     if (!_traceOrders)
     {
         return;
     }
     PrintOrderMarket(e.Snap);
 }
예제 #2
0
 private void OrderCache_OrderMarketChanged(object sender, OrderMarketChangedEventArgs e)
 {
     if (orderObservers.TryGetValue(e.Snap.MarketId, out IObserver <OrderMarketSnap> o))
     {
         // check to see if the market is finished
         if (e.Snap.IsClosed)
         {
             o.OnCompleted();
         }
         else
         {
             o.OnNext(e.Snap);
         }
     }
 }
예제 #3
0
 private void OrderCache_OrderMarketChanged(object sender, OrderMarketChangedEventArgs e)
 {
     IObserver<OrderMarketSnap> o;
     if (orderObservers.TryGetValue(e.Snap.MarketId, out o))
     {
         // check to see if the market is finished
         if (e.Snap.IsClosed)
             o.OnCompleted();
         else
             o.OnNext(e.Snap);
     }
 }