コード例 #1
0
 ///<summary>
 /// Parameterless OpenOrderEventArgs Constructor
 ///</summary>
 public OpenOrderEventArgs()
 {
     this.orderId = -1;
     this.order = new Order();
     this.contract = new Contract();
     this.orderState = new OrderState();
 }
コード例 #2
0
 /// <summary>
 /// Full Constructor
 /// </summary>
 /// <param name="orderId">The order Id assigned by TWS. Used to cancel or update the order.</param>
 /// <param name="contract">Describes the contract for the open order.</param>
 /// <param name="order">Gives the details of the open order.</param>
 /// <param name="orderState">The openOrder() callback with the new OrderState() object will now be invoked each time TWS receives commission information for a trade.</param>
 public OpenOrderEventArgs(int orderId, Contract contract, Order order, OrderState orderState)
 {
     this.orderId = orderId;
     this.order = order;
     this.contract = contract;
     this.orderState = orderState;
 }