请求查询投资者持仓明细,对应响应OnRspQryInvestorPositionDetail。
CTP系统根据来自交易所的成交记录生成持仓明细记录,一笔成交记录对应一条持仓明细记录。
◇ 1. 函数原型
virtual int ReqQryInvestorPositionDetail(CThostFtdcQryInvestorPositionDetailField *pQryInvestorPositionDetail, int nRequestID) = 0;
◇ 2. 参数
pQryInvestorPositionDetail:查询投资者持仓明细
| 字段类型 | 字段名称 | 含义 | 是否可作为过滤条件 |
|---|---|---|---|
| TThostFtdcBrokerIDType | BrokerID | 经纪公司代码 | 是 |
| TThostFtdcInvestorIDType | InvestorID | 投资者代码 | 是 |
| TThostFtdcInstrumentIDType | InstrumentID | 合约代码 | 是 |
| TThostFtdcExchangeIDType | ExchangeID | 交易所代码 | 否 |
| TThostFtdcInvestUnitIDType | InvestUnitID | 投资单元代码 | 否 |
| TThostFtdcOldInstrumentIDType | reserve1 | 保留的无效字段 | 否 |
nRequestID:请求ID,对应响应里的nRequestID,无递增规则,由用户自行维护。
◇ 3. 返回
◇ 4. 调用示例
无
◇ 5. FAQ
无

< 前页 回目录 后页 >