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++);