private void OnOrderChanged(object sender, OrderChangedEventArgs eventArgs)
        {
            if (!this.OrderInFinalState())
            {
                return;
            }

            this.order.OrderChanged -= this.OnOrderChanged;
            this.SetResult();
        }
Example #2
0
        private void OrderChanged(object sender, OrderChangedEventArgs orderChangedEventArgs)
        {
            var order = orderChangedEventArgs.Order;

            this.Action = order.Action;
            this.Quantity = order.Quantity;
            this.Symbol = order.Contract.Symbol;
            this.FilledQuantity = order.FilledQuantity;
            this.LimitPrice = order.LimitPrice;
            this.StopPrice = order.StopPrice;
            this.State = order.State;
            this.Exchange = order.Route;
            this.LastError = order.LastError;
            this.LastErrorCode = order.LastErrorCode;

        }
Example #3
0
 private void OnOrderChanged(object sender, OrderChangedEventArgs orderChangedEventArgs)
 {
     this.dispatcher.RaiseEvent(this.orderChangedEvent, this, new OrderChangedEventArgs {Order = this});
 }