跳转至

ReqExecCombineOrderInsert

行权指令合并录入请求

错误响应: OnErrRtnExecCombineOrderInsert,OnRspExecCombineOrderInsert

正确响应:OnRtnExecCombineOrder

1.函数原型

virtual int ReqExecCombineOrderInsert(CThostFtdcInputExecCombineOrderField *pInputExecCombineOrder, int nRequestID) = 0;

2.参数

pInputExecCombineOrder:输入的行权指令合并

字段类型字段名称含义值
TThostFtdcBrokerIDType BrokerID 经纪公司代码 必填
TThostFtdcInvestorIDType InvestorID 投资者代码 必填
TThostFtdcInstrumentIDType CallInstrumentID 看涨合约代码 必填
TThostFtdcInstrumentIDType PutInstrumentID 看跌合约代码 必填
TThostFtdcOrderRefType ExecCombineOrderRef 执行宣告合并引用 自定义或不填
TThostFtdcUserIDType UserID 用户代码 无
TThostFtdcBusinessUnitType BusinessUnit 业务单元 无
TThostFtdcExchangeIDType ExchangeID 交易所代码 必填
TThostFtdcInvestUnitIDType InvestUnitID 投资单元代码 无
TThostFtdcClientIDType ClientID 交易编码 无
TThostFtdcIPAddressType IPAddress IP地址 无
TThostFtdcMacAddressType MacAddress Mac地址 无
TThostFtdcVolumeType Volume 数量 必填
TThostFtdcRequestIDType RequestID 请求编号 无
TThostFtdcActionTypeType ActionType 执行类型 必填

3.返回

0,代表成功。

-1,表示网络连接失败;

-2,表示未处理请求超过许可数;

-3,表示每秒发送请求数超过许可数。

4.调用示例

CThostFtdcInputExecCombineOrderField execComb;
memset(&execComb, 0, sizeof(execComb));
strcpy(execComb.BrokerID, "8888");
strcpy(execComb.InvestorID, "880002");
strcpy(execComb.CallInstrumentID, "10003045");
strcpy(execComb.PutInstrumentID, "10003062");
strcpy(execComb.ExecCombineOrderRef, "3");
execComb.Volume = 1;    
execComb.ActionType = THOST_FTDC_ACTP_Exec;
m_pUserApi->ReqExecCombineOrderInsert(&execComb, nRequestID++);

5.FAQ