OnErrRtnLockInsert
锁定错误通知,当执行ReqLockInsert后有字段填写不对之类的CTP报错则通过此接口返回
1.函数原型
virtual void OnErrRtnLockInsert(CThostFtdcInputLockField *pInputLock, CThostFtdcRspInfoField *pRspInfo) {};
2.参数
pInputLock:录入锁定
struct CThostFtdcInputLockField
{
///经纪公司代码
TThostFtdcBrokerIDType BrokerID;
///投资者代码
TThostFtdcInvestorIDType InvestorID;
///合约代码
TThostFtdcInstrumentIDType InstrumentID;
///锁定引用
TThostFtdcOrderRefType LockRef;
///用户代码
TThostFtdcUserIDType UserID;
///数量
TThostFtdcVolumeType Volume;
///请求编号
TThostFtdcRequestIDType RequestID;
///业务单元
TThostFtdcBusinessUnitType BusinessUnit;
///锁定类型
TThostFtdcLockTypeType LockType;
///交易所代码
TThostFtdcExchangeIDType ExchangeID;
///IP地址
TThostFtdcIPAddressType IPAddress;
///Mac地址
TThostFtdcMacAddressType MacAddress;
};
pRspInfo:响应信息
struct CThostFtdcRspInfoField
{
///错误代码
TThostFtdcErrorIDType ErrorID;
///错误信息
TThostFtdcErrorMsgType ErrorMsg;
};
nRequestID:返回用户操作请求的ID,该ID 由用户在操作请求时指定。
bIsLast:指示该次返回是否为针对nRequestID的最后一次返回。
3.返回
无
4.FAQ
无