示例#1
0
 private static void OnOrderMarketChanged(object sender, OrderMarketChangedEventArgs e)
 {
     if (!_traceOrders)
     {
         return;
     }
     PrintOrderMarket(e.Snap);
 }
 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);
         }
     }
 }
 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);
     }
 }