コード例 #1
0
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;
};
コード例 #2
0
ファイル: ksgold_td_function.cpp プロジェクト: smther/vnpy
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;
};