跳转至

ReqExecCombineOrderAction

行权指令合并操作请求

错误响应: OnErrRtnExecCombineOrderAction, OnRspExecCombineOrderAction

正确响应:OnRtnExecCombineOrder

1.函数原型

virtual int ReqExecCombineOrderAction(CThostFtdcInputExecCombineOrderActionField *pInputExecCombineOrderAction, int nRequestID) = 0;

2.参数

pInputExecCombineOrderAction:输入行权指令合并操作

字段类型字段名称含义
TThostFtdcBrokerIDType BrokerID 经纪公司代码 必填
TThostFtdcInvestorIDType InvestorID 投资者代码 必填
TThostFtdcOrderRefType ExecCombineOrderRef 执行宣告合并引用
TThostFtdcExchangeIDType ExchangeID 交易所代码
TThostFtdcExecOrderSysIDType ExecCombineOrderSysID 执行宣告合并操作编号 必填
TThostFtdcUserIDType UserID 用户代码
TThostFtdcInvestUnitIDType InvestUnitID 投资单元代码
TThostFtdcIPAddressType IPAddress IP地址
TThostFtdcMacAddressType MacAddress Mac地址
TThostFtdcOrderActionRefType ExecCombineOrderActionRef 执行宣告合并操作引用
TThostFtdcRequestIDType RequestID 请求编号
TThostFtdcFrontIDType FrontID 前置编号
TThostFtdcSessionIDType SessionID 会话编号
TThostFtdcActionFlagType ActionFlag 操作标志 必填

ActionFlag:只支持删除,不支持修改。

3.返回

0,代表成功。

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

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

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

4.调用示例

//根据ExecCombineOrderSysID撤销

CThostFtdcInputExecCombineOrderActionField execCombA;
memset(&execCombA, 0, sizeof(execCombA));
strcpy(execCombA.BrokerID, "8888"); 
strcpy(execCombA.ExchangeID, "SSE");
strcpy(execCombA.ExecCombineOrderSysID, "1051");
execCombA.ActionFlag = THOST_FTDC_AF_Delete;
m_pUserApi->ReqExecCombineOrderAction(&execCombA, nRequestID++);

5.FAQ