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