Пример #1
0
int TdApi::reqQryInvestorPosition(dict req, int nRequestID)
{
	CThostFtdcQryInvestorPositionField myreq = CThostFtdcQryInvestorPositionField();
	memset(&myreq, 0, sizeof(myreq));
	getStr(req, "InstrumentID", myreq.InstrumentID);
	getStr(req, "InvestorID", myreq.InvestorID);
	getStr(req, "BrokerID", myreq.BrokerID);
	int i = this->api->ReqQryInvestorPosition(&myreq, nRequestID);
	return i;
};
Пример #2
0
int TdApi::reqQryInvestorPosition(dict req, int nRequestID)
{
	CThostFtdcQryInvestorPositionField myreq = CThostFtdcQryInvestorPositionField();
	memset(&myreq, 0, sizeof(myreq));
	getChar(req, "instID", myreq.instID);
	getChar(req, "traderID", myreq.traderID);
	getChar(req, "memberID", myreq.memberID);
	getChar(req, "clientID", myreq.clientID);
	getChar(req, "marketID", myreq.marketID);
	int i = this->api->ReqQryInvestorPosition(&myreq, nRequestID);
	return i;
};