Ejemplo n.º 1
0
        public CThostFtdcInputOrderActionField DeleteOrder(CThostFtdcInputOrderField order)
        {
            CThostFtdcInputOrderActionField orderAction = new CThostFtdcInputOrderActionField();

              orderAction.BrokerID = order.BrokerID;
              orderAction.InvestorID = order.InvestorID;

              orderAction.FrontID = this.FrontID;
              orderAction.SessionID = this.SessionID;
              orderAction.OrderRef = order.OrderRef;

              orderAction.InstrumentID = order.InstrumentID;

              orderAction.ActionFlag = CTPActionFlagType.Delete;

              //CTPWrapper.TraderReqOrderAction(this._instance, orderAction, CreateRequestID());
              InvokeAPI(CTPRequestAction.OrderActionAction, orderAction);

              return orderAction;
        }
Ejemplo n.º 2
0
        public CThostFtdcInputOrderActionField DeleteOrder(CThostFtdcOrderField order)
        {
            CThostFtdcInputOrderActionField orderAction = new CThostFtdcInputOrderActionField();

              orderAction.BrokerID = order.BrokerID;
              orderAction.InvestorID = order.InvestorID;
              orderAction.UserID = order.UserID;
              orderAction.InstrumentID = order.InstrumentID;

              orderAction.FrontID = order.FrontID;
              orderAction.SessionID = order.SessionID;
              orderAction.OrderRef = order.OrderRef;

              orderAction.ExchangeID = order.ExchangeID;
              orderAction.OrderSysID = order.OrderSysID;

              orderAction.ActionFlag = CTPActionFlagType.Delete;

              InvokeAPI(CTPRequestAction.OrderActionAction, orderAction);

              return orderAction;
        }