OnErrRtnQuoteInsert
报价录入错误回报,当执行ReqQuoteInsert后有字段填写不对之类的CTP报错则通过此接口返回
1. 函数原型
virtual void OnErrRtnQuoteInsert(CThostFtdcInputQuoteField *pInputQuote, CThostFtdcRspInfoField *pRspInfo) {};
2. 参数
pInputQuote:输入的报价
struct CThostFtdcInputQuoteField
{
///经纪公司代码
TThostFtdcBrokerIDType BrokerID;
///投资者代码
TThostFtdcInvestorIDType InvestorID;
///保留的无效字段
TThostFtdcOldInstrumentIDType reserve1;
///报价引用
TThostFtdcOrderRefType QuoteRef;
///用户代码
TThostFtdcUserIDType UserID;
///卖价格
TThostFtdcPriceType AskPrice;
///买价格
TThostFtdcPriceType BidPrice;
///卖数量
TThostFtdcVolumeType AskVolume;
///买数量
TThostFtdcVolumeType BidVolume;
///请求编号
TThostFtdcRequestIDType RequestID;
///业务单元
TThostFtdcBusinessUnitType BusinessUnit;
///卖开平标志
TThostFtdcOffsetFlagType AskOffsetFlag;
///买开平标志
TThostFtdcOffsetFlagType BidOffsetFlag;
///卖投机套保标志
TThostFtdcHedgeFlagType AskHedgeFlag;
///买投机套保标志
TThostFtdcHedgeFlagType BidHedgeFlag;
///衍生卖报单引用
TThostFtdcOrderRefType AskOrderRef;
///衍生买报单引用
TThostFtdcOrderRefType BidOrderRef;
///应价编号
TThostFtdcOrderSysIDType ForQuoteSysID;
///交易所代码
TThostFtdcExchangeIDType ExchangeID;
///投资单元代码
TThostFtdcInvestUnitIDType InvestUnitID;
///交易编码
TThostFtdcClientIDType ClientID;
///保留的无效字段
TThostFtdcOldIPAddressType reserve2;
///Mac地址
TThostFtdcMacAddressType MacAddress;
///合约代码
TThostFtdcInstrumentIDType InstrumentID;
///IP地址
TThostFtdcIPAddressType IPAddress;
///被顶单编号
TThostFtdcOrderSysIDType ReplaceSysID;
///有效期类型
TThostFtdcTimeConditionType TimeCondition;
///报单回显字段
TThostFtdcOrderMemoType OrderMemo;
///session上请求计数 api自动维护
TThostFtdcSequenceNo12Type SessionReqSeq;
};
ForQuoteSysID:应价编号对应市场上询价的编号
pRspInfo:响应信息
struct CThostFtdcRspInfoField
{
///错误代码
TThostFtdcErrorIDType ErrorID;
///错误信息
TThostFtdcErrorMsgType ErrorMsg;
};
3. 返回
当查询无记录时,指针返回为null
4. FAQ
无