/// <summary> /// Raise Order Accepted event /// </summary> /// <param name="order"></param> /// <param name="matchedPrice"></param> /// <param name="matchedVolume"></param> private void RaiseOrderAcceptedEvent(Order order, decimal matchedPrice, decimal matchedVolume) { order.Accepted(); // This event will be handled by the Depth Order book if (OrderAccepted != null) { OrderAccepted(order, new Price(matchedPrice), new Volume(matchedVolume)); } // This event will be handled by the OrderListener, which will then dispatch the event on the ouput disruptor // to be journaled and then sent to the read side if (OrderChanged != null) { OrderChanged(order); } }