int TdApi::reqQryOrder(dict req, int nRequestID) { CThostFtdcQryOrderField myreq = CThostFtdcQryOrderField(); memset(&myreq, 0, sizeof(myreq)); getStr(req, "InstrumentID", myreq.InstrumentID); getStr(req, "ExchangeID", myreq.ExchangeID); getStr(req, "InsertTimeStart", myreq.InsertTimeStart); getStr(req, "InvestorID", myreq.InvestorID); getStr(req, "BrokerID", myreq.BrokerID); getStr(req, "OrderSysID", myreq.OrderSysID); getStr(req, "InsertTimeEnd", myreq.InsertTimeEnd); int i = this->api->ReqQryOrder(&myreq, nRequestID); return i; };
int TdApi::reqQryOrder(dict req, int nRequestID) { CThostFtdcQryOrderField myreq = CThostFtdcQryOrderField(); memset(&myreq, 0, sizeof(myreq)); getChar(req, "status", myreq.status); getChar(req, "exchangeID", myreq.exchangeID); getChar(req, "offsetFlag", myreq.offsetFlag); getChar(req, "instID", myreq.instID); getChar(req, "localOrderNo", myreq.localOrderNo); getChar(req, "traderID", myreq.traderID); getChar(req, "memberID", myreq.memberID); getChar(req, "clientID", myreq.clientID); getChar(req, "marketID", myreq.marketID); getChar(req, "orderNo", myreq.orderNo); int i = this->api->ReqQryOrder(&myreq, nRequestID); return i; };