private void MarketGatewayOnOrderExecuted(object sender, ApiDealExecutedEventArgs externalApiExecutionArgs) { // Adapts the external API format to the SOR domain format var dealExecutedEventArgs = new DealExecutedEventArgs(externalApiExecutionArgs.Price, externalApiExecutionArgs.Quantity); this.RaiseOrderExecuted(dealExecutedEventArgs); }
private void RaiseOrderExecuted(DealExecutedEventArgs args) { var orderExecuted = this.OrderExecuted; if (orderExecuted != null) { orderExecuted(this, args); } }