Esempio n. 1
0
        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);
        }
Esempio n. 2
0
        private void RaiseOrderExecuted(DealExecutedEventArgs args)
        {
            var orderExecuted = this.OrderExecuted;

            if (orderExecuted != null)
            {
                orderExecuted(this, args);
            }
        }