public void OnBid(Bid bid) { var orders = GetOrdersBy(bid.InstrumentId); if (orders == null) return; if (FillOnQuote) { foreach (var order in orders) FillWithBid(order, bid); ClearOrders(); } }