int TdApi::reqQryTrade(dict req, int nRequestID) { CThostFtdcQryTradeField myreq = CThostFtdcQryTradeField(); memset(&myreq, 0, sizeof(myreq)); getStr(req, "InstrumentID", myreq.InstrumentID); getStr(req, "TradeTimeStart", myreq.TradeTimeStart); getStr(req, "ExchangeID", myreq.ExchangeID); getStr(req, "TradeID", myreq.TradeID); getStr(req, "InvestorID", myreq.InvestorID); getStr(req, "BrokerID", myreq.BrokerID); getStr(req, "TradeTimeEnd", myreq.TradeTimeEnd); int i = this->api->ReqQryTrade(&myreq, nRequestID); return i; };
int TdApi::reqQryTrade(dict req, int nRequestID) { CThostFtdcQryTradeField myreq = CThostFtdcQryTradeField(); memset(&myreq, 0, sizeof(myreq)); getChar(req, "exchangeID", myreq.exchangeID); 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, "matchNo", myreq.matchNo); getChar(req, "orderNo", myreq.orderNo); int i = this->api->ReqQryTrade(&myreq, nRequestID); return i; };