예제 #1
0
 public bool UpdateOrderBook(int depth)
 {
     if (IsUpdatingOrderBook)
     {
         return(true);
     }
     try {
         IsUpdatingOrderBook = true;
         return(Exchange.UpdateOrderBook(this, depth));
     }
     finally {
         IsUpdatingOrderBook = false;
     }
 }
예제 #2
0
 public bool UpdateOrderBook()
 {
     if (IsUpdatingOrderBook)
     {
         return(true);
     }
     try {
         IsUpdatingOrderBook = true;
         bool res = Exchange.UpdateOrderBook(this);
         if (res)
         {
             OnApplyIncrementalUpdate();
         }
         return(res);
     }
     finally {
         IsUpdatingOrderBook = false;
     }
 }