Exemplo n.º 1
0
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;
};
Exemplo n.º 2
0
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;
};