int TdApi::reqQryTradingAccount(dict req, int nRequestID) { CThostFtdcQryTradingAccountField myreq = CThostFtdcQryTradingAccountField(); memset(&myreq, 0, sizeof(myreq)); getStr(req, "CurrencyID", myreq.CurrencyID); getStr(req, "InvestorID", myreq.InvestorID); getStr(req, "BrokerID", myreq.BrokerID); int i = this->api->ReqQryTradingAccount(&myreq, nRequestID); return i; };
int TdApi::reqQryTradingAccount(dict req, int nRequestID) { CThostFtdcQryTradingAccountField myreq = CThostFtdcQryTradingAccountField(); memset(&myreq, 0, sizeof(myreq)); getChar(req, "clientID", myreq.clientID); getChar(req, "traderID", myreq.traderID); getChar(req, "memberID", myreq.memberID); getChar(req, "accountType", myreq.accountType); getChar(req, "marketID", myreq.marketID); int i = this->api->ReqQryTradingAccount(&myreq, nRequestID); return i; };