OnRspQryInvestor
请求查询投资者响应,当执行ReqQryInvestor后,该方法被调用。
1. 函数原型
virtual void OnRspQryInvestor(CThostFtdcInvestorField *pInvestor, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
2. 参数
pInvestor:投资者
struct CThostFtdcInvestorField
{
///投资者代码
TThostFtdcInvestorIDType InvestorID;
///经纪公司代码
TThostFtdcBrokerIDType BrokerID;
///投资者分组代码
TThostFtdcInvestorIDType InvestorGroupID;
///投资者名称
TThostFtdcPartyNameType InvestorName;
///证件类型
TThostFtdcIdCardTypeType IdentifiedCardType;
///证件号码
TThostFtdcIdentifiedCardNoType IdentifiedCardNo;
///是否活跃
TThostFtdcBoolType IsActive;
///联系电话
TThostFtdcTelephoneType Telephone;
///通讯地址
TThostFtdcAddressType Address;
///开户日期
TThostFtdcDateType OpenDate;
///手机
TThostFtdcMobileType Mobile;
///手续费率模板代码
TThostFtdcInvestorIDType CommModelID;
///保证金率模板代码
TThostFtdcInvestorIDType MarginModelID;
///是否频率控制
TThostFtdcEnumBoolType IsOrderFreq;
///是否开仓限制
TThostFtdcEnumBoolType IsOpenVolLimit;
};
CommModelID:CTP内部使用
MarginModelID:CTP内部使用
pRspInfo:响应信息
struct CThostFtdcRspInfoField
{
///错误代码
TThostFtdcErrorIDType ErrorID;
///错误信息
TThostFtdcErrorMsgType ErrorMsg;
};
nRequestID:返回用户操作请求的ID,该ID 由用户在操作请求时指定。
bIsLast:指示该次返回是否为针对nRequestID的最后一次返回。
3. 返回
当查询无记录时,指针返回为null
4. FAQ
无