请求查询产品
响应: OnRspQryProduct
◇ 1. 函数原型
virtual int ReqQryProduct(CThostFtdcQryProductField *pQryProduct, int nRequestID) = 0;
◇ 2. 参数
pQryProduct:查询产品
| 字段类型 | 字段名称 | 含义 | 是否可作为过滤条件 |
|---|---|---|---|
| TThostFtdcInstrumentIDType | ProductID | 产品代码 | 是 |
| TThostFtdcExchangeIDType | ExchangeID | 交易所代码 | 否 |
| TThostFtdcProductClassType | ProductClass | 产品类型 | 否 |
| TThostFtdcOldInstrumentIDType | reserve1 | 保留的无效字段 | 否 |
nRequestID:请求ID,对应响应里的nRequestID,无递增规则,由用户自行维护。
◇ 3. 返回
◇ 4. 调用示例
CThostFtdcQryProductField a = { 0 };
strcpy_s(a.ProductID, "sc");
a.ProductClass = THOST_FTDC_PC_Futures;
strcpy_s(a.ExchangeID, "SHFE");
m_pUserApi->ReqQryProduct(&a, nRequestID++);
◇ 5. FAQ
无

< 前页 回目录 后页 >