@hitrading/ctp-node 1.0.0 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +13 -3
- package/README.zh-CN.md +11 -1
- package/dist/generated/enums.gen.d.ts +76 -6
- package/dist/generated/enums.gen.d.ts.map +1 -1
- package/dist/generated/enums.gen.js +78 -0
- package/dist/generated/enums.gen.js.map +1 -1
- package/dist/generated/structs.gen.d.ts +6271 -4816
- package/dist/generated/structs.gen.d.ts.map +1 -1
- package/dist/generated/structs.gen.js +131 -25
- package/dist/generated/structs.gen.js.map +1 -1
- package/dist/generated/trader.gen.d.ts +39 -1
- package/dist/generated/trader.gen.d.ts.map +1 -1
- package/dist/generated/trader.gen.js +315 -225
- package/dist/generated/trader.gen.js.map +1 -1
- package/dist/index.cjs +5752 -0
- package/dist/index.d.cts +9 -0
- package/package.json +18 -6
- package/prebuilds/linux-x64/@hitrading+ctp-node.node +0 -0
- package/prebuilds/linux-x64/thostmduserapi_se.so +0 -0
- package/prebuilds/linux-x64/thosttraderapi_se.so +0 -0
- package/prebuilds/win32-x64/@hitrading+ctp-node.node +0 -0
- package/prebuilds/win32-x64/thostmduserapi_se.dll +0 -0
- package/prebuilds/win32-x64/thosttraderapi_se.dll +0 -0
- package/src/generated/enums.gen.ts +78 -0
- package/src/generated/layout.gen.cc +794 -40
- package/src/generated/structids.gen.h +54 -1
- package/src/generated/structs.gen.ts +6455 -4841
- package/src/generated/trader.gen.ts +315 -225
- package/src/generated/traderreq.gen.cc +84 -0
- package/src/generated/traderreq.gen.h +89 -75
- package/src/generated/traderspi.gen.cc +96 -0
- package/src/generated/traderspi.gen.h +198 -150
- package/tradeapi/ThostFtdcMdApi.h +69 -68
- package/tradeapi/ThostFtdcTraderApi.h +450 -323
- package/tradeapi/ThostFtdcUserApiDataType.h +2288 -2092
- package/tradeapi/ThostFtdcUserApiStruct.h +7049 -5487
- package/tradeapi/error.xml +56 -11
- package/tradeapi/linux/thostmduserapi_se.so +0 -0
- package/tradeapi/linux/thosttraderapi_se.so +0 -0
- package/tradeapi/macos/thostmduserapi_se.framework/Versions/A/Headers/ThostFtdcMdApi.h +66 -66
- package/tradeapi/macos/thostmduserapi_se.framework/Versions/A/Headers/ThostFtdcUserApiDataType.h +2123 -2090
- package/tradeapi/macos/thostmduserapi_se.framework/Versions/A/Headers/ThostFtdcUserApiStruct.h +5596 -5486
- package/tradeapi/macos/thostmduserapi_se.framework/Versions/A/Resources/Info.plist +46 -46
- package/tradeapi/macos/thostmduserapi_se.framework/Versions/A/_CodeSignature/CodeResources +149 -149
- package/tradeapi/macos/thostmduserapi_se.framework/Versions/A/thostmduserapi_se +0 -0
- package/tradeapi/macos/thosttraderapi_se.framework/Versions/A/Headers/ThostFtdcTraderApi.h +333 -321
- package/tradeapi/macos/thosttraderapi_se.framework/Versions/A/Headers/ThostFtdcUserApiDataType.h +2123 -2090
- package/tradeapi/macos/thosttraderapi_se.framework/Versions/A/Headers/ThostFtdcUserApiStruct.h +5596 -5486
- package/tradeapi/macos/thosttraderapi_se.framework/Versions/A/Resources/Info.plist +46 -46
- package/tradeapi/macos/thosttraderapi_se.framework/Versions/A/_CodeSignature/CodeResources +149 -149
- package/tradeapi/macos/thosttraderapi_se.framework/Versions/A/thosttraderapi_se +0 -0
- package/tradeapi/windows/thostmduserapi_se.dll +0 -0
- package/tradeapi/windows/thostmduserapi_se.lib +0 -0
- package/tradeapi/windows/thosttraderapi_se.dll +0 -0
- package/tradeapi/windows/thosttraderapi_se.lib +0 -0
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/////////////////////////////////////////////////////////////////////////
|
|
2
|
-
///@system
|
|
3
|
-
///@company
|
|
2
|
+
///@system 新一代交易所系统
|
|
3
|
+
///@company 上海期货信息技术有限公司
|
|
4
4
|
///@file ThostFtdcTraderApi.h
|
|
5
|
-
///@brief
|
|
5
|
+
///@brief 定义了客户端接口
|
|
6
6
|
///@history
|
|
7
|
-
///20060106
|
|
7
|
+
///20060106 赵鸿昊 创建该文件
|
|
8
8
|
/////////////////////////////////////////////////////////////////////////
|
|
9
9
|
|
|
10
10
|
#if !defined(THOST_FTDCTRADERAPI_H)
|
|
@@ -29,884 +29,896 @@
|
|
|
29
29
|
class CThostFtdcTraderSpi
|
|
30
30
|
{
|
|
31
31
|
public:
|
|
32
|
-
|
|
32
|
+
///当客户端与交易后台建立起通信连接时(还未登录前),该方法被调用。
|
|
33
33
|
virtual void OnFrontConnected(){};
|
|
34
34
|
|
|
35
|
-
|
|
36
|
-
///@param nReason
|
|
37
|
-
/// 0x1001
|
|
38
|
-
/// 0x1002
|
|
39
|
-
/// 0x2001
|
|
40
|
-
/// 0x2002
|
|
41
|
-
/// 0x2003
|
|
35
|
+
///当客户端与交易后台通信连接断开时,该方法被调用。当发生这个情况后,API会自动重新连接,客户端可不做处理。
|
|
36
|
+
///@param nReason 错误原因
|
|
37
|
+
/// 0x1001 网络读失败
|
|
38
|
+
/// 0x1002 网络写失败
|
|
39
|
+
/// 0x2001 接收心跳超时
|
|
40
|
+
/// 0x2002 发送心跳失败
|
|
41
|
+
/// 0x2003 收到错误报文
|
|
42
42
|
virtual void OnFrontDisconnected(int nReason){};
|
|
43
43
|
|
|
44
|
-
|
|
45
|
-
///@param nTimeLapse
|
|
44
|
+
///心跳超时警告。当长时间未收到报文时,该方法被调用。
|
|
45
|
+
///@param nTimeLapse 距离上次接收报文的时间
|
|
46
46
|
virtual void OnHeartBeatWarning(int nTimeLapse){};
|
|
47
47
|
|
|
48
|
-
|
|
48
|
+
///客户端认证响应
|
|
49
49
|
virtual void OnRspAuthenticate(CThostFtdcRspAuthenticateField *pRspAuthenticateField, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
|
|
50
50
|
|
|
51
51
|
|
|
52
|
-
|
|
52
|
+
///登录请求响应
|
|
53
53
|
virtual void OnRspUserLogin(CThostFtdcRspUserLoginField *pRspUserLogin, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
|
|
54
54
|
|
|
55
|
-
|
|
55
|
+
///登出请求响应
|
|
56
56
|
virtual void OnRspUserLogout(CThostFtdcUserLogoutField *pUserLogout, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
|
|
57
57
|
|
|
58
|
-
|
|
58
|
+
///用户口令更新请求响应
|
|
59
59
|
virtual void OnRspUserPasswordUpdate(CThostFtdcUserPasswordUpdateField *pUserPasswordUpdate, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
|
|
60
60
|
|
|
61
|
-
|
|
61
|
+
///资金账户口令更新请求响应
|
|
62
62
|
virtual void OnRspTradingAccountPasswordUpdate(CThostFtdcTradingAccountPasswordUpdateField *pTradingAccountPasswordUpdate, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
|
|
63
63
|
|
|
64
|
-
|
|
64
|
+
///查询用户当前支持的认证模式的回复
|
|
65
65
|
virtual void OnRspUserAuthMethod(CThostFtdcRspUserAuthMethodField *pRspUserAuthMethod, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
|
|
66
66
|
|
|
67
|
-
|
|
67
|
+
///获取图形验证码请求的回复
|
|
68
68
|
virtual void OnRspGenUserCaptcha(CThostFtdcRspGenUserCaptchaField *pRspGenUserCaptcha, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
|
|
69
69
|
|
|
70
|
-
|
|
70
|
+
///获取短信验证码请求的回复
|
|
71
71
|
virtual void OnRspGenUserText(CThostFtdcRspGenUserTextField *pRspGenUserText, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
|
|
72
72
|
|
|
73
|
-
|
|
73
|
+
///报单录入请求响应
|
|
74
74
|
virtual void OnRspOrderInsert(CThostFtdcInputOrderField *pInputOrder, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
|
|
75
75
|
|
|
76
|
-
|
|
76
|
+
///预埋单录入请求响应
|
|
77
77
|
virtual void OnRspParkedOrderInsert(CThostFtdcParkedOrderField *pParkedOrder, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
|
|
78
78
|
|
|
79
|
-
|
|
79
|
+
///预埋撤单录入请求响应
|
|
80
80
|
virtual void OnRspParkedOrderAction(CThostFtdcParkedOrderActionField *pParkedOrderAction, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
|
|
81
81
|
|
|
82
|
-
|
|
82
|
+
///报单操作请求响应
|
|
83
83
|
virtual void OnRspOrderAction(CThostFtdcInputOrderActionField *pInputOrderAction, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
|
|
84
84
|
|
|
85
|
-
|
|
85
|
+
///查询最大报单数量响应
|
|
86
86
|
virtual void OnRspQryMaxOrderVolume(CThostFtdcQryMaxOrderVolumeField *pQryMaxOrderVolume, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
|
|
87
87
|
|
|
88
|
-
|
|
88
|
+
///投资者结算结果确认响应
|
|
89
89
|
virtual void OnRspSettlementInfoConfirm(CThostFtdcSettlementInfoConfirmField *pSettlementInfoConfirm, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
|
|
90
90
|
|
|
91
|
-
|
|
91
|
+
///删除预埋单响应
|
|
92
92
|
virtual void OnRspRemoveParkedOrder(CThostFtdcRemoveParkedOrderField *pRemoveParkedOrder, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
|
|
93
93
|
|
|
94
|
-
|
|
94
|
+
///删除预埋撤单响应
|
|
95
95
|
virtual void OnRspRemoveParkedOrderAction(CThostFtdcRemoveParkedOrderActionField *pRemoveParkedOrderAction, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
|
|
96
96
|
|
|
97
|
-
|
|
97
|
+
///执行宣告录入请求响应
|
|
98
98
|
virtual void OnRspExecOrderInsert(CThostFtdcInputExecOrderField *pInputExecOrder, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
|
|
99
99
|
|
|
100
|
-
|
|
100
|
+
///执行宣告操作请求响应
|
|
101
101
|
virtual void OnRspExecOrderAction(CThostFtdcInputExecOrderActionField *pInputExecOrderAction, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
|
|
102
102
|
|
|
103
|
-
|
|
103
|
+
///询价录入请求响应
|
|
104
104
|
virtual void OnRspForQuoteInsert(CThostFtdcInputForQuoteField *pInputForQuote, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
|
|
105
105
|
|
|
106
|
-
|
|
106
|
+
///报价录入请求响应
|
|
107
107
|
virtual void OnRspQuoteInsert(CThostFtdcInputQuoteField *pInputQuote, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
|
|
108
108
|
|
|
109
|
-
|
|
109
|
+
///报价操作请求响应
|
|
110
110
|
virtual void OnRspQuoteAction(CThostFtdcInputQuoteActionField *pInputQuoteAction, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
|
|
111
111
|
|
|
112
|
-
|
|
112
|
+
///批量报单操作请求响应
|
|
113
113
|
virtual void OnRspBatchOrderAction(CThostFtdcInputBatchOrderActionField *pInputBatchOrderAction, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
|
|
114
114
|
|
|
115
|
-
|
|
115
|
+
///期权自对冲录入请求响应
|
|
116
116
|
virtual void OnRspOptionSelfCloseInsert(CThostFtdcInputOptionSelfCloseField *pInputOptionSelfClose, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
|
|
117
117
|
|
|
118
|
-
|
|
118
|
+
///期权自对冲操作请求响应
|
|
119
119
|
virtual void OnRspOptionSelfCloseAction(CThostFtdcInputOptionSelfCloseActionField *pInputOptionSelfCloseAction, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
|
|
120
120
|
|
|
121
|
-
|
|
121
|
+
///申请组合录入请求响应
|
|
122
122
|
virtual void OnRspCombActionInsert(CThostFtdcInputCombActionField *pInputCombAction, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
|
|
123
123
|
|
|
124
|
-
|
|
124
|
+
///请求查询报单响应
|
|
125
125
|
virtual void OnRspQryOrder(CThostFtdcOrderField *pOrder, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
|
|
126
126
|
|
|
127
|
-
|
|
127
|
+
///请求查询成交响应
|
|
128
128
|
virtual void OnRspQryTrade(CThostFtdcTradeField *pTrade, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
|
|
129
129
|
|
|
130
|
-
|
|
130
|
+
///请求查询投资者持仓响应
|
|
131
131
|
virtual void OnRspQryInvestorPosition(CThostFtdcInvestorPositionField *pInvestorPosition, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
|
|
132
132
|
|
|
133
|
-
|
|
133
|
+
///请求查询资金账户响应
|
|
134
134
|
virtual void OnRspQryTradingAccount(CThostFtdcTradingAccountField *pTradingAccount, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
|
|
135
135
|
|
|
136
|
-
|
|
136
|
+
///请求查询投资者响应
|
|
137
137
|
virtual void OnRspQryInvestor(CThostFtdcInvestorField *pInvestor, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
|
|
138
138
|
|
|
139
|
-
|
|
139
|
+
///请求查询交易编码响应
|
|
140
140
|
virtual void OnRspQryTradingCode(CThostFtdcTradingCodeField *pTradingCode, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
|
|
141
141
|
|
|
142
|
-
|
|
142
|
+
///请求查询合约保证金率响应
|
|
143
143
|
virtual void OnRspQryInstrumentMarginRate(CThostFtdcInstrumentMarginRateField *pInstrumentMarginRate, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
|
|
144
144
|
|
|
145
|
-
|
|
145
|
+
///请求查询合约手续费率响应
|
|
146
146
|
virtual void OnRspQryInstrumentCommissionRate(CThostFtdcInstrumentCommissionRateField *pInstrumentCommissionRate, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
|
|
147
147
|
|
|
148
|
-
|
|
148
|
+
///请求查询交易所响应
|
|
149
149
|
virtual void OnRspQryExchange(CThostFtdcExchangeField *pExchange, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
|
|
150
150
|
|
|
151
|
-
|
|
151
|
+
///请求查询产品响应
|
|
152
152
|
virtual void OnRspQryProduct(CThostFtdcProductField *pProduct, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
|
|
153
153
|
|
|
154
|
-
|
|
154
|
+
///请求查询合约响应
|
|
155
155
|
virtual void OnRspQryInstrument(CThostFtdcInstrumentField *pInstrument, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
|
|
156
156
|
|
|
157
|
-
|
|
157
|
+
///请求查询行情响应
|
|
158
158
|
virtual void OnRspQryDepthMarketData(CThostFtdcDepthMarketDataField *pDepthMarketData, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
|
|
159
159
|
|
|
160
|
-
|
|
160
|
+
///请求查询交易员报盘机响应
|
|
161
161
|
virtual void OnRspQryTraderOffer(CThostFtdcTraderOfferField *pTraderOffer, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
|
|
162
162
|
|
|
163
|
-
|
|
163
|
+
///请求查询投资者结算结果响应
|
|
164
164
|
virtual void OnRspQrySettlementInfo(CThostFtdcSettlementInfoField *pSettlementInfo, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
|
|
165
165
|
|
|
166
|
-
|
|
166
|
+
///请求查询转帐银行响应
|
|
167
167
|
virtual void OnRspQryTransferBank(CThostFtdcTransferBankField *pTransferBank, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
|
|
168
168
|
|
|
169
|
-
|
|
169
|
+
///请求查询投资者持仓明细响应
|
|
170
170
|
virtual void OnRspQryInvestorPositionDetail(CThostFtdcInvestorPositionDetailField *pInvestorPositionDetail, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
|
|
171
171
|
|
|
172
|
-
|
|
172
|
+
///请求查询客户通知响应
|
|
173
173
|
virtual void OnRspQryNotice(CThostFtdcNoticeField *pNotice, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
|
|
174
174
|
|
|
175
|
-
|
|
175
|
+
///请求查询结算信息确认响应
|
|
176
176
|
virtual void OnRspQrySettlementInfoConfirm(CThostFtdcSettlementInfoConfirmField *pSettlementInfoConfirm, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
|
|
177
177
|
|
|
178
|
-
|
|
178
|
+
///请求查询投资者持仓明细响应
|
|
179
179
|
virtual void OnRspQryInvestorPositionCombineDetail(CThostFtdcInvestorPositionCombineDetailField *pInvestorPositionCombineDetail, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
|
|
180
180
|
|
|
181
|
-
|
|
181
|
+
///查询保证金监管系统经纪公司资金账户密钥响应
|
|
182
182
|
virtual void OnRspQryCFMMCTradingAccountKey(CThostFtdcCFMMCTradingAccountKeyField *pCFMMCTradingAccountKey, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
|
|
183
183
|
|
|
184
|
-
|
|
184
|
+
///请求查询仓单折抵信息响应
|
|
185
185
|
virtual void OnRspQryEWarrantOffset(CThostFtdcEWarrantOffsetField *pEWarrantOffset, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
|
|
186
186
|
|
|
187
|
-
|
|
187
|
+
///请求查询投资者品种/跨品种保证金响应
|
|
188
188
|
virtual void OnRspQryInvestorProductGroupMargin(CThostFtdcInvestorProductGroupMarginField *pInvestorProductGroupMargin, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
|
|
189
189
|
|
|
190
|
-
|
|
190
|
+
///请求查询交易所保证金率响应
|
|
191
191
|
virtual void OnRspQryExchangeMarginRate(CThostFtdcExchangeMarginRateField *pExchangeMarginRate, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
|
|
192
192
|
|
|
193
|
-
|
|
193
|
+
///请求查询交易所调整保证金率响应
|
|
194
194
|
virtual void OnRspQryExchangeMarginRateAdjust(CThostFtdcExchangeMarginRateAdjustField *pExchangeMarginRateAdjust, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
|
|
195
195
|
|
|
196
|
-
|
|
196
|
+
///请求查询汇率响应
|
|
197
197
|
virtual void OnRspQryExchangeRate(CThostFtdcExchangeRateField *pExchangeRate, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
|
|
198
198
|
|
|
199
|
-
|
|
199
|
+
///请求查询二级代理操作员银期权限响应
|
|
200
200
|
virtual void OnRspQrySecAgentACIDMap(CThostFtdcSecAgentACIDMapField *pSecAgentACIDMap, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
|
|
201
201
|
|
|
202
|
-
|
|
202
|
+
///请求查询产品报价汇率
|
|
203
203
|
virtual void OnRspQryProductExchRate(CThostFtdcProductExchRateField *pProductExchRate, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
|
|
204
204
|
|
|
205
|
-
|
|
205
|
+
///请求查询产品组
|
|
206
206
|
virtual void OnRspQryProductGroup(CThostFtdcProductGroupField *pProductGroup, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
|
|
207
207
|
|
|
208
|
-
|
|
208
|
+
///请求查询做市商合约手续费率响应
|
|
209
209
|
virtual void OnRspQryMMInstrumentCommissionRate(CThostFtdcMMInstrumentCommissionRateField *pMMInstrumentCommissionRate, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
|
|
210
210
|
|
|
211
|
-
|
|
211
|
+
///请求查询做市商期权合约手续费响应
|
|
212
212
|
virtual void OnRspQryMMOptionInstrCommRate(CThostFtdcMMOptionInstrCommRateField *pMMOptionInstrCommRate, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
|
|
213
213
|
|
|
214
|
-
|
|
214
|
+
///请求查询报单手续费响应
|
|
215
215
|
virtual void OnRspQryInstrumentOrderCommRate(CThostFtdcInstrumentOrderCommRateField *pInstrumentOrderCommRate, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
|
|
216
216
|
|
|
217
|
-
|
|
217
|
+
///请求查询资金账户响应
|
|
218
218
|
virtual void OnRspQrySecAgentTradingAccount(CThostFtdcTradingAccountField *pTradingAccount, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
|
|
219
219
|
|
|
220
|
-
|
|
220
|
+
///请求查询二级代理商资金校验模式响应
|
|
221
221
|
virtual void OnRspQrySecAgentCheckMode(CThostFtdcSecAgentCheckModeField *pSecAgentCheckMode, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
|
|
222
222
|
|
|
223
|
-
|
|
223
|
+
///请求查询二级代理商信息响应
|
|
224
224
|
virtual void OnRspQrySecAgentTradeInfo(CThostFtdcSecAgentTradeInfoField *pSecAgentTradeInfo, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
|
|
225
225
|
|
|
226
|
-
|
|
226
|
+
///请求查询期权交易成本响应
|
|
227
227
|
virtual void OnRspQryOptionInstrTradeCost(CThostFtdcOptionInstrTradeCostField *pOptionInstrTradeCost, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
|
|
228
228
|
|
|
229
|
-
|
|
229
|
+
///请求查询期权合约手续费响应
|
|
230
230
|
virtual void OnRspQryOptionInstrCommRate(CThostFtdcOptionInstrCommRateField *pOptionInstrCommRate, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
|
|
231
231
|
|
|
232
|
-
|
|
232
|
+
///请求查询执行宣告响应
|
|
233
233
|
virtual void OnRspQryExecOrder(CThostFtdcExecOrderField *pExecOrder, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
|
|
234
234
|
|
|
235
|
-
|
|
235
|
+
///请求查询询价响应
|
|
236
236
|
virtual void OnRspQryForQuote(CThostFtdcForQuoteField *pForQuote, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
|
|
237
237
|
|
|
238
|
-
|
|
238
|
+
///请求查询报价响应
|
|
239
239
|
virtual void OnRspQryQuote(CThostFtdcQuoteField *pQuote, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
|
|
240
240
|
|
|
241
|
-
|
|
241
|
+
///请求查询期权自对冲响应
|
|
242
242
|
virtual void OnRspQryOptionSelfClose(CThostFtdcOptionSelfCloseField *pOptionSelfClose, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
|
|
243
243
|
|
|
244
|
-
|
|
244
|
+
///请求查询投资单元响应
|
|
245
245
|
virtual void OnRspQryInvestUnit(CThostFtdcInvestUnitField *pInvestUnit, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
|
|
246
246
|
|
|
247
|
-
|
|
247
|
+
///请求查询组合合约安全系数响应
|
|
248
248
|
virtual void OnRspQryCombInstrumentGuard(CThostFtdcCombInstrumentGuardField *pCombInstrumentGuard, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
|
|
249
249
|
|
|
250
|
-
|
|
250
|
+
///请求查询申请组合响应
|
|
251
251
|
virtual void OnRspQryCombAction(CThostFtdcCombActionField *pCombAction, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
|
|
252
252
|
|
|
253
|
-
|
|
253
|
+
///请求查询转帐流水响应
|
|
254
254
|
virtual void OnRspQryTransferSerial(CThostFtdcTransferSerialField *pTransferSerial, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
|
|
255
255
|
|
|
256
|
-
|
|
256
|
+
///请求查询银期签约关系响应
|
|
257
257
|
virtual void OnRspQryAccountregister(CThostFtdcAccountregisterField *pAccountregister, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
|
|
258
258
|
|
|
259
|
-
|
|
259
|
+
///错误应答
|
|
260
260
|
virtual void OnRspError(CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
|
|
261
261
|
|
|
262
|
-
|
|
262
|
+
///报单通知
|
|
263
263
|
virtual void OnRtnOrder(CThostFtdcOrderField *pOrder) {};
|
|
264
264
|
|
|
265
|
-
|
|
265
|
+
///成交通知
|
|
266
266
|
virtual void OnRtnTrade(CThostFtdcTradeField *pTrade) {};
|
|
267
267
|
|
|
268
|
-
|
|
268
|
+
///报单录入错误回报
|
|
269
269
|
virtual void OnErrRtnOrderInsert(CThostFtdcInputOrderField *pInputOrder, CThostFtdcRspInfoField *pRspInfo) {};
|
|
270
270
|
|
|
271
|
-
|
|
271
|
+
///报单操作错误回报
|
|
272
272
|
virtual void OnErrRtnOrderAction(CThostFtdcOrderActionField *pOrderAction, CThostFtdcRspInfoField *pRspInfo) {};
|
|
273
273
|
|
|
274
|
-
|
|
274
|
+
///合约交易状态通知
|
|
275
275
|
virtual void OnRtnInstrumentStatus(CThostFtdcInstrumentStatusField *pInstrumentStatus) {};
|
|
276
276
|
|
|
277
|
-
|
|
277
|
+
///交易所公告通知
|
|
278
278
|
virtual void OnRtnBulletin(CThostFtdcBulletinField *pBulletin) {};
|
|
279
279
|
|
|
280
|
-
|
|
280
|
+
///交易通知
|
|
281
281
|
virtual void OnRtnTradingNotice(CThostFtdcTradingNoticeInfoField *pTradingNoticeInfo) {};
|
|
282
282
|
|
|
283
|
-
|
|
283
|
+
///提示条件单校验错误
|
|
284
284
|
virtual void OnRtnErrorConditionalOrder(CThostFtdcErrorConditionalOrderField *pErrorConditionalOrder) {};
|
|
285
285
|
|
|
286
|
-
|
|
286
|
+
///执行宣告通知
|
|
287
287
|
virtual void OnRtnExecOrder(CThostFtdcExecOrderField *pExecOrder) {};
|
|
288
288
|
|
|
289
|
-
|
|
289
|
+
///执行宣告录入错误回报
|
|
290
290
|
virtual void OnErrRtnExecOrderInsert(CThostFtdcInputExecOrderField *pInputExecOrder, CThostFtdcRspInfoField *pRspInfo) {};
|
|
291
291
|
|
|
292
|
-
|
|
292
|
+
///执行宣告操作错误回报
|
|
293
293
|
virtual void OnErrRtnExecOrderAction(CThostFtdcExecOrderActionField *pExecOrderAction, CThostFtdcRspInfoField *pRspInfo) {};
|
|
294
294
|
|
|
295
|
-
|
|
295
|
+
///询价录入错误回报
|
|
296
296
|
virtual void OnErrRtnForQuoteInsert(CThostFtdcInputForQuoteField *pInputForQuote, CThostFtdcRspInfoField *pRspInfo) {};
|
|
297
297
|
|
|
298
|
-
|
|
298
|
+
///报价通知
|
|
299
299
|
virtual void OnRtnQuote(CThostFtdcQuoteField *pQuote) {};
|
|
300
300
|
|
|
301
|
-
|
|
301
|
+
///报价录入错误回报
|
|
302
302
|
virtual void OnErrRtnQuoteInsert(CThostFtdcInputQuoteField *pInputQuote, CThostFtdcRspInfoField *pRspInfo) {};
|
|
303
303
|
|
|
304
|
-
|
|
304
|
+
///报价操作错误回报
|
|
305
305
|
virtual void OnErrRtnQuoteAction(CThostFtdcQuoteActionField *pQuoteAction, CThostFtdcRspInfoField *pRspInfo) {};
|
|
306
306
|
|
|
307
|
-
|
|
307
|
+
///询价通知
|
|
308
308
|
virtual void OnRtnForQuoteRsp(CThostFtdcForQuoteRspField *pForQuoteRsp) {};
|
|
309
309
|
|
|
310
|
-
|
|
310
|
+
///保证金监控中心用户令牌
|
|
311
311
|
virtual void OnRtnCFMMCTradingAccountToken(CThostFtdcCFMMCTradingAccountTokenField *pCFMMCTradingAccountToken) {};
|
|
312
312
|
|
|
313
|
-
|
|
313
|
+
///批量报单操作错误回报
|
|
314
314
|
virtual void OnErrRtnBatchOrderAction(CThostFtdcBatchOrderActionField *pBatchOrderAction, CThostFtdcRspInfoField *pRspInfo) {};
|
|
315
315
|
|
|
316
|
-
|
|
316
|
+
///期权自对冲通知
|
|
317
317
|
virtual void OnRtnOptionSelfClose(CThostFtdcOptionSelfCloseField *pOptionSelfClose) {};
|
|
318
318
|
|
|
319
|
-
|
|
319
|
+
///期权自对冲录入错误回报
|
|
320
320
|
virtual void OnErrRtnOptionSelfCloseInsert(CThostFtdcInputOptionSelfCloseField *pInputOptionSelfClose, CThostFtdcRspInfoField *pRspInfo) {};
|
|
321
321
|
|
|
322
|
-
|
|
322
|
+
///期权自对冲操作错误回报
|
|
323
323
|
virtual void OnErrRtnOptionSelfCloseAction(CThostFtdcOptionSelfCloseActionField *pOptionSelfCloseAction, CThostFtdcRspInfoField *pRspInfo) {};
|
|
324
324
|
|
|
325
|
-
|
|
325
|
+
///申请组合通知
|
|
326
326
|
virtual void OnRtnCombAction(CThostFtdcCombActionField *pCombAction) {};
|
|
327
327
|
|
|
328
|
-
|
|
328
|
+
///申请组合录入错误回报
|
|
329
329
|
virtual void OnErrRtnCombActionInsert(CThostFtdcInputCombActionField *pInputCombAction, CThostFtdcRspInfoField *pRspInfo) {};
|
|
330
330
|
|
|
331
|
-
|
|
331
|
+
///请求查询签约银行响应
|
|
332
332
|
virtual void OnRspQryContractBank(CThostFtdcContractBankField *pContractBank, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
|
|
333
333
|
|
|
334
|
-
|
|
334
|
+
///请求查询预埋单响应
|
|
335
335
|
virtual void OnRspQryParkedOrder(CThostFtdcParkedOrderField *pParkedOrder, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
|
|
336
336
|
|
|
337
|
-
|
|
337
|
+
///请求查询预埋撤单响应
|
|
338
338
|
virtual void OnRspQryParkedOrderAction(CThostFtdcParkedOrderActionField *pParkedOrderAction, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
|
|
339
339
|
|
|
340
|
-
|
|
340
|
+
///请求查询交易通知响应
|
|
341
341
|
virtual void OnRspQryTradingNotice(CThostFtdcTradingNoticeField *pTradingNotice, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
|
|
342
342
|
|
|
343
|
-
|
|
343
|
+
///请求查询经纪公司交易参数响应
|
|
344
344
|
virtual void OnRspQryBrokerTradingParams(CThostFtdcBrokerTradingParamsField *pBrokerTradingParams, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
|
|
345
345
|
|
|
346
|
-
|
|
346
|
+
///请求查询经纪公司交易算法响应
|
|
347
347
|
virtual void OnRspQryBrokerTradingAlgos(CThostFtdcBrokerTradingAlgosField *pBrokerTradingAlgos, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
|
|
348
348
|
|
|
349
|
-
|
|
349
|
+
///请求查询监控中心用户令牌
|
|
350
350
|
virtual void OnRspQueryCFMMCTradingAccountToken(CThostFtdcQueryCFMMCTradingAccountTokenField *pQueryCFMMCTradingAccountToken, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
|
|
351
351
|
|
|
352
|
-
|
|
352
|
+
///银行发起银行资金转期货通知
|
|
353
353
|
virtual void OnRtnFromBankToFutureByBank(CThostFtdcRspTransferField *pRspTransfer) {};
|
|
354
354
|
|
|
355
|
-
|
|
355
|
+
///银行发起期货资金转银行通知
|
|
356
356
|
virtual void OnRtnFromFutureToBankByBank(CThostFtdcRspTransferField *pRspTransfer) {};
|
|
357
357
|
|
|
358
|
-
|
|
358
|
+
///银行发起冲正银行转期货通知
|
|
359
359
|
virtual void OnRtnRepealFromBankToFutureByBank(CThostFtdcRspRepealField *pRspRepeal) {};
|
|
360
360
|
|
|
361
|
-
|
|
361
|
+
///银行发起冲正期货转银行通知
|
|
362
362
|
virtual void OnRtnRepealFromFutureToBankByBank(CThostFtdcRspRepealField *pRspRepeal) {};
|
|
363
363
|
|
|
364
|
-
|
|
364
|
+
///期货发起银行资金转期货通知
|
|
365
365
|
virtual void OnRtnFromBankToFutureByFuture(CThostFtdcRspTransferField *pRspTransfer) {};
|
|
366
366
|
|
|
367
|
-
|
|
367
|
+
///期货发起期货资金转银行通知
|
|
368
368
|
virtual void OnRtnFromFutureToBankByFuture(CThostFtdcRspTransferField *pRspTransfer) {};
|
|
369
369
|
|
|
370
|
-
|
|
370
|
+
///系统运行时期货端手工发起冲正银行转期货请求,银行处理完毕后报盘发回的通知
|
|
371
371
|
virtual void OnRtnRepealFromBankToFutureByFutureManual(CThostFtdcRspRepealField *pRspRepeal) {};
|
|
372
372
|
|
|
373
|
-
|
|
373
|
+
///系统运行时期货端手工发起冲正期货转银行请求,银行处理完毕后报盘发回的通知
|
|
374
374
|
virtual void OnRtnRepealFromFutureToBankByFutureManual(CThostFtdcRspRepealField *pRspRepeal) {};
|
|
375
375
|
|
|
376
|
-
|
|
376
|
+
///期货发起查询银行余额通知
|
|
377
377
|
virtual void OnRtnQueryBankBalanceByFuture(CThostFtdcNotifyQueryAccountField *pNotifyQueryAccount) {};
|
|
378
378
|
|
|
379
|
-
|
|
379
|
+
///期货发起银行资金转期货错误回报
|
|
380
380
|
virtual void OnErrRtnBankToFutureByFuture(CThostFtdcReqTransferField *pReqTransfer, CThostFtdcRspInfoField *pRspInfo) {};
|
|
381
381
|
|
|
382
|
-
|
|
382
|
+
///期货发起期货资金转银行错误回报
|
|
383
383
|
virtual void OnErrRtnFutureToBankByFuture(CThostFtdcReqTransferField *pReqTransfer, CThostFtdcRspInfoField *pRspInfo) {};
|
|
384
384
|
|
|
385
|
-
|
|
385
|
+
///系统运行时期货端手工发起冲正银行转期货错误回报
|
|
386
386
|
virtual void OnErrRtnRepealBankToFutureByFutureManual(CThostFtdcReqRepealField *pReqRepeal, CThostFtdcRspInfoField *pRspInfo) {};
|
|
387
387
|
|
|
388
|
-
|
|
388
|
+
///系统运行时期货端手工发起冲正期货转银行错误回报
|
|
389
389
|
virtual void OnErrRtnRepealFutureToBankByFutureManual(CThostFtdcReqRepealField *pReqRepeal, CThostFtdcRspInfoField *pRspInfo) {};
|
|
390
390
|
|
|
391
|
-
|
|
391
|
+
///期货发起查询银行余额错误回报
|
|
392
392
|
virtual void OnErrRtnQueryBankBalanceByFuture(CThostFtdcReqQueryAccountField *pReqQueryAccount, CThostFtdcRspInfoField *pRspInfo) {};
|
|
393
393
|
|
|
394
|
-
|
|
394
|
+
///期货发起冲正银行转期货请求,银行处理完毕后报盘发回的通知
|
|
395
395
|
virtual void OnRtnRepealFromBankToFutureByFuture(CThostFtdcRspRepealField *pRspRepeal) {};
|
|
396
396
|
|
|
397
|
-
|
|
397
|
+
///期货发起冲正期货转银行请求,银行处理完毕后报盘发回的通知
|
|
398
398
|
virtual void OnRtnRepealFromFutureToBankByFuture(CThostFtdcRspRepealField *pRspRepeal) {};
|
|
399
399
|
|
|
400
|
-
|
|
400
|
+
///期货发起银行资金转期货应答
|
|
401
401
|
virtual void OnRspFromBankToFutureByFuture(CThostFtdcReqTransferField *pReqTransfer, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
|
|
402
402
|
|
|
403
|
-
|
|
403
|
+
///期货发起期货资金转银行应答
|
|
404
404
|
virtual void OnRspFromFutureToBankByFuture(CThostFtdcReqTransferField *pReqTransfer, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
|
|
405
405
|
|
|
406
|
-
|
|
406
|
+
///期货发起查询银行余额应答
|
|
407
407
|
virtual void OnRspQueryBankAccountMoneyByFuture(CThostFtdcReqQueryAccountField *pReqQueryAccount, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
|
|
408
408
|
|
|
409
|
-
|
|
409
|
+
///银行发起银期开户通知
|
|
410
410
|
virtual void OnRtnOpenAccountByBank(CThostFtdcOpenAccountField *pOpenAccount) {};
|
|
411
411
|
|
|
412
|
-
|
|
412
|
+
///银行发起银期销户通知
|
|
413
413
|
virtual void OnRtnCancelAccountByBank(CThostFtdcCancelAccountField *pCancelAccount) {};
|
|
414
414
|
|
|
415
|
-
|
|
415
|
+
///银行发起变更银行账号通知
|
|
416
416
|
virtual void OnRtnChangeAccountByBank(CThostFtdcChangeAccountField *pChangeAccount) {};
|
|
417
417
|
|
|
418
|
-
|
|
418
|
+
///请求查询分类合约响应
|
|
419
419
|
virtual void OnRspQryClassifiedInstrument(CThostFtdcInstrumentField *pInstrument, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
|
|
420
420
|
|
|
421
|
-
|
|
421
|
+
///请求组合优惠比例响应
|
|
422
422
|
virtual void OnRspQryCombPromotionParam(CThostFtdcCombPromotionParamField *pCombPromotionParam, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
|
|
423
423
|
|
|
424
|
-
|
|
424
|
+
///投资者风险结算持仓查询响应
|
|
425
425
|
virtual void OnRspQryRiskSettleInvstPosition(CThostFtdcRiskSettleInvstPositionField *pRiskSettleInvstPosition, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
|
|
426
426
|
|
|
427
|
-
|
|
427
|
+
///风险结算产品查询响应
|
|
428
428
|
virtual void OnRspQryRiskSettleProductStatus(CThostFtdcRiskSettleProductStatusField *pRiskSettleProductStatus, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
|
|
429
429
|
|
|
430
|
-
///SPBM
|
|
430
|
+
///SPBM期货合约参数查询响应
|
|
431
431
|
virtual void OnRspQrySPBMFutureParameter(CThostFtdcSPBMFutureParameterField *pSPBMFutureParameter, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
|
|
432
432
|
|
|
433
|
-
///SPBM
|
|
433
|
+
///SPBM期权合约参数查询响应
|
|
434
434
|
virtual void OnRspQrySPBMOptionParameter(CThostFtdcSPBMOptionParameterField *pSPBMOptionParameter, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
|
|
435
435
|
|
|
436
|
-
///SPBM
|
|
436
|
+
///SPBM品种内对锁仓折扣参数查询响应
|
|
437
437
|
virtual void OnRspQrySPBMIntraParameter(CThostFtdcSPBMIntraParameterField *pSPBMIntraParameter, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
|
|
438
438
|
|
|
439
|
-
///SPBM
|
|
439
|
+
///SPBM跨品种抵扣参数查询响应
|
|
440
440
|
virtual void OnRspQrySPBMInterParameter(CThostFtdcSPBMInterParameterField *pSPBMInterParameter, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
|
|
441
441
|
|
|
442
|
-
///SPBM
|
|
442
|
+
///SPBM组合保证金套餐查询响应
|
|
443
443
|
virtual void OnRspQrySPBMPortfDefinition(CThostFtdcSPBMPortfDefinitionField *pSPBMPortfDefinition, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
|
|
444
444
|
|
|
445
|
-
|
|
445
|
+
///投资者SPBM套餐选择查询响应
|
|
446
446
|
virtual void OnRspQrySPBMInvestorPortfDef(CThostFtdcSPBMInvestorPortfDefField *pSPBMInvestorPortfDef, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
|
|
447
447
|
|
|
448
|
-
|
|
448
|
+
///投资者新型组合保证金系数查询响应
|
|
449
449
|
virtual void OnRspQryInvestorPortfMarginRatio(CThostFtdcInvestorPortfMarginRatioField *pInvestorPortfMarginRatio, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
|
|
450
450
|
|
|
451
|
-
|
|
451
|
+
///投资者产品SPBM明细查询响应
|
|
452
452
|
virtual void OnRspQryInvestorProdSPBMDetail(CThostFtdcInvestorProdSPBMDetailField *pInvestorProdSPBMDetail, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
|
|
453
453
|
|
|
454
|
-
|
|
454
|
+
///投资者商品组SPMM记录查询响应
|
|
455
455
|
virtual void OnRspQryInvestorCommoditySPMMMargin(CThostFtdcInvestorCommoditySPMMMarginField *pInvestorCommoditySPMMMargin, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
|
|
456
456
|
|
|
457
|
-
|
|
457
|
+
///投资者商品群SPMM记录查询响应
|
|
458
458
|
virtual void OnRspQryInvestorCommodityGroupSPMMMargin(CThostFtdcInvestorCommodityGroupSPMMMarginField *pInvestorCommodityGroupSPMMMargin, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
|
|
459
459
|
|
|
460
|
-
///SPMM
|
|
460
|
+
///SPMM合约参数查询响应
|
|
461
461
|
virtual void OnRspQrySPMMInstParam(CThostFtdcSPMMInstParamField *pSPMMInstParam, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
|
|
462
462
|
|
|
463
|
-
///SPMM
|
|
463
|
+
///SPMM产品参数查询响应
|
|
464
464
|
virtual void OnRspQrySPMMProductParam(CThostFtdcSPMMProductParamField *pSPMMProductParam, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
|
|
465
465
|
|
|
466
|
-
///SPBM
|
|
466
|
+
///SPBM附加跨品种抵扣参数查询响应
|
|
467
467
|
virtual void OnRspQrySPBMAddOnInterParameter(CThostFtdcSPBMAddOnInterParameterField *pSPBMAddOnInterParameter, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
|
|
468
468
|
|
|
469
|
-
///RCAMS
|
|
469
|
+
///RCAMS产品组合信息查询响应
|
|
470
470
|
virtual void OnRspQryRCAMSCombProductInfo(CThostFtdcRCAMSCombProductInfoField *pRCAMSCombProductInfo, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
|
|
471
471
|
|
|
472
|
-
///RCAMS
|
|
472
|
+
///RCAMS同合约风险对冲参数查询响应
|
|
473
473
|
virtual void OnRspQryRCAMSInstrParameter(CThostFtdcRCAMSInstrParameterField *pRCAMSInstrParameter, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
|
|
474
474
|
|
|
475
|
-
///RCAMS
|
|
475
|
+
///RCAMS品种内风险对冲参数查询响应
|
|
476
476
|
virtual void OnRspQryRCAMSIntraParameter(CThostFtdcRCAMSIntraParameterField *pRCAMSIntraParameter, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
|
|
477
477
|
|
|
478
|
-
///RCAMS
|
|
478
|
+
///RCAMS跨品种风险折抵参数查询响应
|
|
479
479
|
virtual void OnRspQryRCAMSInterParameter(CThostFtdcRCAMSInterParameterField *pRCAMSInterParameter, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
|
|
480
480
|
|
|
481
|
-
///RCAMS
|
|
481
|
+
///RCAMS空头期权风险调整参数查询响应
|
|
482
482
|
virtual void OnRspQryRCAMSShortOptAdjustParam(CThostFtdcRCAMSShortOptAdjustParamField *pRCAMSShortOptAdjustParam, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
|
|
483
483
|
|
|
484
|
-
///RCAMS
|
|
484
|
+
///RCAMS策略组合持仓查询响应
|
|
485
485
|
virtual void OnRspQryRCAMSInvestorCombPosition(CThostFtdcRCAMSInvestorCombPositionField *pRCAMSInvestorCombPosition, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
|
|
486
486
|
|
|
487
|
-
|
|
487
|
+
///投资者品种RCAMS保证金查询响应
|
|
488
488
|
virtual void OnRspQryInvestorProdRCAMSMargin(CThostFtdcInvestorProdRCAMSMarginField *pInvestorProdRCAMSMargin, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
|
|
489
489
|
|
|
490
|
-
///RULE
|
|
490
|
+
///RULE合约保证金参数查询响应
|
|
491
491
|
virtual void OnRspQryRULEInstrParameter(CThostFtdcRULEInstrParameterField *pRULEInstrParameter, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
|
|
492
492
|
|
|
493
|
-
///RULE
|
|
493
|
+
///RULE品种内对锁仓折扣参数查询响应
|
|
494
494
|
virtual void OnRspQryRULEIntraParameter(CThostFtdcRULEIntraParameterField *pRULEIntraParameter, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
|
|
495
495
|
|
|
496
|
-
///RULE
|
|
496
|
+
///RULE跨品种抵扣参数查询响应
|
|
497
497
|
virtual void OnRspQryRULEInterParameter(CThostFtdcRULEInterParameterField *pRULEInterParameter, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
|
|
498
498
|
|
|
499
|
-
|
|
499
|
+
///投资者产品RULE保证金查询响应
|
|
500
500
|
virtual void OnRspQryInvestorProdRULEMargin(CThostFtdcInvestorProdRULEMarginField *pInvestorProdRULEMargin, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
|
|
501
|
+
|
|
502
|
+
///投资者投资者新组保设置查询响应
|
|
503
|
+
virtual void OnRspQryInvestorPortfSetting(CThostFtdcInvestorPortfSettingField *pInvestorPortfSetting, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
|
|
501
504
|
};
|
|
502
505
|
|
|
503
506
|
class TRADER_API_EXPORT CThostFtdcTraderApi
|
|
504
507
|
{
|
|
505
508
|
public:
|
|
506
|
-
|
|
507
|
-
///@param pszFlowPath
|
|
508
|
-
///@return
|
|
509
|
+
///创建TraderApi
|
|
510
|
+
///@param pszFlowPath 存贮订阅信息文件的目录,默认为当前目录
|
|
511
|
+
///@return 创建出的UserApi
|
|
509
512
|
static CThostFtdcTraderApi *CreateFtdcTraderApi(const char *pszFlowPath = "");
|
|
510
513
|
|
|
511
|
-
|
|
512
|
-
///@retrun
|
|
514
|
+
///获取API的版本信息
|
|
515
|
+
///@retrun 获取到的版本号
|
|
513
516
|
static const char *GetApiVersion();
|
|
514
517
|
|
|
515
|
-
|
|
516
|
-
///@remark
|
|
518
|
+
///删除接口对象本身
|
|
519
|
+
///@remark 不再使用本接口对象时,调用该函数删除接口对象
|
|
517
520
|
virtual void Release() = 0;
|
|
518
521
|
|
|
519
|
-
|
|
520
|
-
///@remark
|
|
522
|
+
///初始化
|
|
523
|
+
///@remark 初始化运行环境,只有调用后,接口才开始工作
|
|
521
524
|
virtual void Init() = 0;
|
|
522
525
|
|
|
523
|
-
|
|
524
|
-
///@return
|
|
526
|
+
///等待接口线程结束运行
|
|
527
|
+
///@return 线程退出代码
|
|
525
528
|
virtual int Join() = 0;
|
|
526
529
|
|
|
527
|
-
|
|
528
|
-
///@retrun
|
|
529
|
-
///@remark
|
|
530
|
+
///获取当前交易日
|
|
531
|
+
///@retrun 获取到的交易日
|
|
532
|
+
///@remark 只有登录成功后,才能得到正确的交易日
|
|
530
533
|
virtual const char *GetTradingDay() = 0;
|
|
531
534
|
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
535
|
+
///获取已连接的前置的信息
|
|
536
|
+
/// @param pFrontInfo:输入输出参数,用于存储获取到的前置信息,不能为空
|
|
537
|
+
/// @remark 连接成功后,可获取正确的前置地址信息
|
|
538
|
+
/// @remark 登录成功后,可获取正确的前置流控信息
|
|
539
|
+
virtual void GetFrontInfo(CThostFtdcFrontInfoField* pFrontInfo) =0;
|
|
540
|
+
|
|
541
|
+
///注册前置机网络地址
|
|
542
|
+
///@param pszFrontAddress:前置机网络地址。
|
|
543
|
+
///@remark 网络地址的格式为:“protocol://ipaddress:port”,如:”tcp://127.0.0.1:17001”。
|
|
544
|
+
///@remark “tcp”代表传输协议,“127.0.0.1”代表服务器地址。”17001”代表服务器端口号。
|
|
536
545
|
virtual void RegisterFront(char *pszFrontAddress) = 0;
|
|
537
546
|
|
|
538
|
-
|
|
539
|
-
///@param pszNsAddress
|
|
540
|
-
///@remark
|
|
541
|
-
///@remark
|
|
542
|
-
///@remark RegisterNameServer
|
|
547
|
+
///注册名字服务器网络地址
|
|
548
|
+
///@param pszNsAddress:名字服务器网络地址。
|
|
549
|
+
///@remark 网络地址的格式为:“protocol://ipaddress:port”,如:”tcp://127.0.0.1:12001”。
|
|
550
|
+
///@remark “tcp”代表传输协议,“127.0.0.1”代表服务器地址。”12001”代表服务器端口号。
|
|
551
|
+
///@remark RegisterNameServer优先于RegisterFront
|
|
543
552
|
virtual void RegisterNameServer(char *pszNsAddress) = 0;
|
|
544
553
|
|
|
545
|
-
|
|
546
|
-
///@param pFensUserInfo
|
|
554
|
+
///注册名字服务器用户信息
|
|
555
|
+
///@param pFensUserInfo:用户信息。
|
|
547
556
|
virtual void RegisterFensUserInfo(CThostFtdcFensUserInfoField * pFensUserInfo) = 0;
|
|
548
557
|
|
|
549
|
-
|
|
550
|
-
///@param pSpi
|
|
558
|
+
///注册回调接口
|
|
559
|
+
///@param pSpi 派生自回调接口类的实例
|
|
551
560
|
virtual void RegisterSpi(CThostFtdcTraderSpi *pSpi) = 0;
|
|
552
561
|
|
|
553
|
-
|
|
554
|
-
///@param nResumeType
|
|
555
|
-
/// THOST_TERT_RESTART
|
|
556
|
-
/// THOST_TERT_RESUME
|
|
557
|
-
/// THOST_TERT_QUICK
|
|
558
|
-
///@remark
|
|
562
|
+
///订阅私有流。
|
|
563
|
+
///@param nResumeType 私有流重传方式
|
|
564
|
+
/// THOST_TERT_RESTART:从本交易日开始重传
|
|
565
|
+
/// THOST_TERT_RESUME:从上次收到的续传
|
|
566
|
+
/// THOST_TERT_QUICK:只传送登录后私有流的内容
|
|
567
|
+
///@remark 该方法要在Init方法前调用。若不调用则不会收到私有流的数据。
|
|
559
568
|
virtual void SubscribePrivateTopic(THOST_TE_RESUME_TYPE nResumeType) = 0;
|
|
560
569
|
|
|
561
|
-
|
|
562
|
-
///@param nResumeType
|
|
563
|
-
/// THOST_TERT_RESTART
|
|
564
|
-
/// THOST_TERT_RESUME
|
|
565
|
-
/// THOST_TERT_QUICK
|
|
566
|
-
/// THOST_TERT_NONE
|
|
567
|
-
///@remark
|
|
570
|
+
///订阅公共流。
|
|
571
|
+
///@param nResumeType 公共流重传方式
|
|
572
|
+
/// THOST_TERT_RESTART:从本交易日开始重传
|
|
573
|
+
/// THOST_TERT_RESUME:从上次收到的续传
|
|
574
|
+
/// THOST_TERT_QUICK:只传送登录后公共流的内容
|
|
575
|
+
/// THOST_TERT_NONE:取消订阅公共流
|
|
576
|
+
///@remark 该方法要在Init方法前调用。若不调用则不会收到公共流的数据。
|
|
568
577
|
virtual void SubscribePublicTopic(THOST_TE_RESUME_TYPE nResumeType) = 0;
|
|
569
578
|
|
|
570
|
-
|
|
579
|
+
///客户端认证请求
|
|
571
580
|
virtual int ReqAuthenticate(CThostFtdcReqAuthenticateField *pReqAuthenticateField, int nRequestID) = 0;
|
|
572
581
|
|
|
573
|
-
|
|
574
|
-
|
|
582
|
+
///注册用户终端信息,用于中继服务器多连接模式
|
|
583
|
+
///需要在终端认证成功后,用户登录前调用该接口
|
|
575
584
|
virtual int RegisterUserSystemInfo(CThostFtdcUserSystemInfoField *pUserSystemInfo) = 0;
|
|
576
585
|
|
|
577
|
-
|
|
578
|
-
|
|
586
|
+
///上报用户终端信息,用于中继服务器操作员登录模式
|
|
587
|
+
///操作员登录后,可以多次调用该接口上报客户信息
|
|
579
588
|
virtual int SubmitUserSystemInfo(CThostFtdcUserSystemInfoField *pUserSystemInfo) = 0;
|
|
580
589
|
|
|
581
|
-
|
|
582
|
-
|
|
590
|
+
///用户登录请求
|
|
591
|
+
virtual int ReqUserLogin(CThostFtdcReqUserLoginField *pReqUserLoginField, int nRequestID, TThostFtdcSystemInfoLenType length, TThostFtdcClientSystemInfoType systemInfo) = 0;
|
|
583
592
|
|
|
584
|
-
|
|
593
|
+
///登出请求
|
|
585
594
|
virtual int ReqUserLogout(CThostFtdcUserLogoutField *pUserLogout, int nRequestID) = 0;
|
|
586
595
|
|
|
587
|
-
|
|
596
|
+
///用户口令更新请求
|
|
588
597
|
virtual int ReqUserPasswordUpdate(CThostFtdcUserPasswordUpdateField *pUserPasswordUpdate, int nRequestID) = 0;
|
|
589
598
|
|
|
590
|
-
|
|
599
|
+
///资金账户口令更新请求
|
|
591
600
|
virtual int ReqTradingAccountPasswordUpdate(CThostFtdcTradingAccountPasswordUpdateField *pTradingAccountPasswordUpdate, int nRequestID) = 0;
|
|
592
601
|
|
|
593
|
-
|
|
602
|
+
///查询用户当前支持的认证模式
|
|
594
603
|
virtual int ReqUserAuthMethod(CThostFtdcReqUserAuthMethodField *pReqUserAuthMethod, int nRequestID) = 0;
|
|
595
604
|
|
|
596
|
-
|
|
605
|
+
///用户发出获取图形验证码请求
|
|
597
606
|
virtual int ReqGenUserCaptcha(CThostFtdcReqGenUserCaptchaField *pReqGenUserCaptcha, int nRequestID) = 0;
|
|
598
607
|
|
|
599
|
-
|
|
608
|
+
///用户发出获取短信验证码请求
|
|
600
609
|
virtual int ReqGenUserText(CThostFtdcReqGenUserTextField *pReqGenUserText, int nRequestID) = 0;
|
|
601
610
|
|
|
602
|
-
|
|
611
|
+
///用户发出带有图片验证码的登陆请求
|
|
603
612
|
virtual int ReqUserLoginWithCaptcha(CThostFtdcReqUserLoginWithCaptchaField *pReqUserLoginWithCaptcha, int nRequestID) = 0;
|
|
604
613
|
|
|
605
|
-
|
|
614
|
+
///用户发出带有短信验证码的登陆请求
|
|
606
615
|
virtual int ReqUserLoginWithText(CThostFtdcReqUserLoginWithTextField *pReqUserLoginWithText, int nRequestID) = 0;
|
|
607
616
|
|
|
608
|
-
|
|
617
|
+
///用户发出带有动态口令的登陆请求
|
|
609
618
|
virtual int ReqUserLoginWithOTP(CThostFtdcReqUserLoginWithOTPField *pReqUserLoginWithOTP, int nRequestID) = 0;
|
|
610
619
|
|
|
611
|
-
|
|
620
|
+
///报单录入请求
|
|
612
621
|
virtual int ReqOrderInsert(CThostFtdcInputOrderField *pInputOrder, int nRequestID) = 0;
|
|
613
622
|
|
|
614
|
-
|
|
623
|
+
///预埋单录入请求
|
|
615
624
|
virtual int ReqParkedOrderInsert(CThostFtdcParkedOrderField *pParkedOrder, int nRequestID) = 0;
|
|
616
625
|
|
|
617
|
-
|
|
626
|
+
///预埋撤单录入请求
|
|
618
627
|
virtual int ReqParkedOrderAction(CThostFtdcParkedOrderActionField *pParkedOrderAction, int nRequestID) = 0;
|
|
619
628
|
|
|
620
|
-
|
|
629
|
+
///报单操作请求
|
|
621
630
|
virtual int ReqOrderAction(CThostFtdcInputOrderActionField *pInputOrderAction, int nRequestID) = 0;
|
|
622
631
|
|
|
623
|
-
|
|
632
|
+
///查询最大报单数量请求
|
|
624
633
|
virtual int ReqQryMaxOrderVolume(CThostFtdcQryMaxOrderVolumeField *pQryMaxOrderVolume, int nRequestID) = 0;
|
|
625
634
|
|
|
626
|
-
|
|
635
|
+
///投资者结算结果确认
|
|
627
636
|
virtual int ReqSettlementInfoConfirm(CThostFtdcSettlementInfoConfirmField *pSettlementInfoConfirm, int nRequestID) = 0;
|
|
628
637
|
|
|
629
|
-
|
|
638
|
+
///请求删除预埋单
|
|
630
639
|
virtual int ReqRemoveParkedOrder(CThostFtdcRemoveParkedOrderField *pRemoveParkedOrder, int nRequestID) = 0;
|
|
631
640
|
|
|
632
|
-
|
|
641
|
+
///请求删除预埋撤单
|
|
633
642
|
virtual int ReqRemoveParkedOrderAction(CThostFtdcRemoveParkedOrderActionField *pRemoveParkedOrderAction, int nRequestID) = 0;
|
|
634
643
|
|
|
635
|
-
|
|
644
|
+
///执行宣告录入请求
|
|
636
645
|
virtual int ReqExecOrderInsert(CThostFtdcInputExecOrderField *pInputExecOrder, int nRequestID) = 0;
|
|
637
646
|
|
|
638
|
-
|
|
647
|
+
///执行宣告操作请求
|
|
639
648
|
virtual int ReqExecOrderAction(CThostFtdcInputExecOrderActionField *pInputExecOrderAction, int nRequestID) = 0;
|
|
640
649
|
|
|
641
|
-
|
|
650
|
+
///询价录入请求
|
|
642
651
|
virtual int ReqForQuoteInsert(CThostFtdcInputForQuoteField *pInputForQuote, int nRequestID) = 0;
|
|
643
652
|
|
|
644
|
-
|
|
653
|
+
///报价录入请求
|
|
645
654
|
virtual int ReqQuoteInsert(CThostFtdcInputQuoteField *pInputQuote, int nRequestID) = 0;
|
|
646
655
|
|
|
647
|
-
|
|
656
|
+
///报价操作请求
|
|
648
657
|
virtual int ReqQuoteAction(CThostFtdcInputQuoteActionField *pInputQuoteAction, int nRequestID) = 0;
|
|
649
658
|
|
|
650
|
-
|
|
659
|
+
///批量报单操作请求
|
|
651
660
|
virtual int ReqBatchOrderAction(CThostFtdcInputBatchOrderActionField *pInputBatchOrderAction, int nRequestID) = 0;
|
|
652
661
|
|
|
653
|
-
|
|
662
|
+
///期权自对冲录入请求
|
|
654
663
|
virtual int ReqOptionSelfCloseInsert(CThostFtdcInputOptionSelfCloseField *pInputOptionSelfClose, int nRequestID) = 0;
|
|
655
664
|
|
|
656
|
-
|
|
665
|
+
///期权自对冲操作请求
|
|
657
666
|
virtual int ReqOptionSelfCloseAction(CThostFtdcInputOptionSelfCloseActionField *pInputOptionSelfCloseAction, int nRequestID) = 0;
|
|
658
667
|
|
|
659
|
-
|
|
668
|
+
///申请组合录入请求
|
|
660
669
|
virtual int ReqCombActionInsert(CThostFtdcInputCombActionField *pInputCombAction, int nRequestID) = 0;
|
|
661
670
|
|
|
662
|
-
|
|
671
|
+
///请求查询报单
|
|
663
672
|
virtual int ReqQryOrder(CThostFtdcQryOrderField *pQryOrder, int nRequestID) = 0;
|
|
664
673
|
|
|
665
|
-
|
|
674
|
+
///请求查询成交
|
|
666
675
|
virtual int ReqQryTrade(CThostFtdcQryTradeField *pQryTrade, int nRequestID) = 0;
|
|
667
676
|
|
|
668
|
-
|
|
677
|
+
///请求查询投资者持仓
|
|
669
678
|
virtual int ReqQryInvestorPosition(CThostFtdcQryInvestorPositionField *pQryInvestorPosition, int nRequestID) = 0;
|
|
670
679
|
|
|
671
|
-
|
|
680
|
+
///请求查询资金账户
|
|
672
681
|
virtual int ReqQryTradingAccount(CThostFtdcQryTradingAccountField *pQryTradingAccount, int nRequestID) = 0;
|
|
673
682
|
|
|
674
|
-
|
|
683
|
+
///请求查询投资者
|
|
675
684
|
virtual int ReqQryInvestor(CThostFtdcQryInvestorField *pQryInvestor, int nRequestID) = 0;
|
|
676
685
|
|
|
677
|
-
|
|
686
|
+
///请求查询交易编码
|
|
678
687
|
virtual int ReqQryTradingCode(CThostFtdcQryTradingCodeField *pQryTradingCode, int nRequestID) = 0;
|
|
679
688
|
|
|
680
|
-
|
|
689
|
+
///请求查询合约保证金率
|
|
681
690
|
virtual int ReqQryInstrumentMarginRate(CThostFtdcQryInstrumentMarginRateField *pQryInstrumentMarginRate, int nRequestID) = 0;
|
|
682
691
|
|
|
683
|
-
|
|
692
|
+
///请求查询合约手续费率
|
|
684
693
|
virtual int ReqQryInstrumentCommissionRate(CThostFtdcQryInstrumentCommissionRateField *pQryInstrumentCommissionRate, int nRequestID) = 0;
|
|
685
694
|
|
|
686
|
-
|
|
695
|
+
///请求查询交易所
|
|
687
696
|
virtual int ReqQryExchange(CThostFtdcQryExchangeField *pQryExchange, int nRequestID) = 0;
|
|
688
697
|
|
|
689
|
-
|
|
698
|
+
///请求查询产品
|
|
690
699
|
virtual int ReqQryProduct(CThostFtdcQryProductField *pQryProduct, int nRequestID) = 0;
|
|
691
700
|
|
|
692
|
-
|
|
701
|
+
///请求查询合约
|
|
693
702
|
virtual int ReqQryInstrument(CThostFtdcQryInstrumentField *pQryInstrument, int nRequestID) = 0;
|
|
694
703
|
|
|
695
|
-
|
|
704
|
+
///请求查询行情
|
|
696
705
|
virtual int ReqQryDepthMarketData(CThostFtdcQryDepthMarketDataField *pQryDepthMarketData, int nRequestID) = 0;
|
|
697
706
|
|
|
698
|
-
|
|
707
|
+
///请求查询交易员报盘机
|
|
699
708
|
virtual int ReqQryTraderOffer(CThostFtdcQryTraderOfferField *pQryTraderOffer, int nRequestID) = 0;
|
|
700
709
|
|
|
701
|
-
|
|
710
|
+
///请求查询投资者结算结果
|
|
702
711
|
virtual int ReqQrySettlementInfo(CThostFtdcQrySettlementInfoField *pQrySettlementInfo, int nRequestID) = 0;
|
|
703
712
|
|
|
704
|
-
|
|
713
|
+
///请求查询转帐银行
|
|
705
714
|
virtual int ReqQryTransferBank(CThostFtdcQryTransferBankField *pQryTransferBank, int nRequestID) = 0;
|
|
706
715
|
|
|
707
|
-
|
|
716
|
+
///请求查询投资者持仓明细
|
|
708
717
|
virtual int ReqQryInvestorPositionDetail(CThostFtdcQryInvestorPositionDetailField *pQryInvestorPositionDetail, int nRequestID) = 0;
|
|
709
718
|
|
|
710
|
-
|
|
719
|
+
///请求查询客户通知
|
|
711
720
|
virtual int ReqQryNotice(CThostFtdcQryNoticeField *pQryNotice, int nRequestID) = 0;
|
|
712
721
|
|
|
713
|
-
|
|
722
|
+
///请求查询结算信息确认
|
|
714
723
|
virtual int ReqQrySettlementInfoConfirm(CThostFtdcQrySettlementInfoConfirmField *pQrySettlementInfoConfirm, int nRequestID) = 0;
|
|
715
724
|
|
|
716
|
-
|
|
725
|
+
///请求查询投资者持仓明细
|
|
717
726
|
virtual int ReqQryInvestorPositionCombineDetail(CThostFtdcQryInvestorPositionCombineDetailField *pQryInvestorPositionCombineDetail, int nRequestID) = 0;
|
|
718
727
|
|
|
719
|
-
|
|
728
|
+
///请求查询保证金监管系统经纪公司资金账户密钥
|
|
720
729
|
virtual int ReqQryCFMMCTradingAccountKey(CThostFtdcQryCFMMCTradingAccountKeyField *pQryCFMMCTradingAccountKey, int nRequestID) = 0;
|
|
721
730
|
|
|
722
|
-
|
|
731
|
+
///请求查询仓单折抵信息
|
|
723
732
|
virtual int ReqQryEWarrantOffset(CThostFtdcQryEWarrantOffsetField *pQryEWarrantOffset, int nRequestID) = 0;
|
|
724
733
|
|
|
725
|
-
|
|
734
|
+
///请求查询投资者品种/跨品种保证金
|
|
726
735
|
virtual int ReqQryInvestorProductGroupMargin(CThostFtdcQryInvestorProductGroupMarginField *pQryInvestorProductGroupMargin, int nRequestID) = 0;
|
|
727
736
|
|
|
728
|
-
|
|
737
|
+
///请求查询交易所保证金率
|
|
729
738
|
virtual int ReqQryExchangeMarginRate(CThostFtdcQryExchangeMarginRateField *pQryExchangeMarginRate, int nRequestID) = 0;
|
|
730
739
|
|
|
731
|
-
|
|
740
|
+
///请求查询交易所调整保证金率
|
|
732
741
|
virtual int ReqQryExchangeMarginRateAdjust(CThostFtdcQryExchangeMarginRateAdjustField *pQryExchangeMarginRateAdjust, int nRequestID) = 0;
|
|
733
742
|
|
|
734
|
-
|
|
743
|
+
///请求查询汇率
|
|
735
744
|
virtual int ReqQryExchangeRate(CThostFtdcQryExchangeRateField *pQryExchangeRate, int nRequestID) = 0;
|
|
736
745
|
|
|
737
|
-
|
|
746
|
+
///请求查询二级代理操作员银期权限
|
|
738
747
|
virtual int ReqQrySecAgentACIDMap(CThostFtdcQrySecAgentACIDMapField *pQrySecAgentACIDMap, int nRequestID) = 0;
|
|
739
748
|
|
|
740
|
-
|
|
749
|
+
///请求查询产品报价汇率
|
|
741
750
|
virtual int ReqQryProductExchRate(CThostFtdcQryProductExchRateField *pQryProductExchRate, int nRequestID) = 0;
|
|
742
751
|
|
|
743
|
-
|
|
752
|
+
///请求查询产品组
|
|
744
753
|
virtual int ReqQryProductGroup(CThostFtdcQryProductGroupField *pQryProductGroup, int nRequestID) = 0;
|
|
745
754
|
|
|
746
|
-
|
|
755
|
+
///请求查询做市商合约手续费率
|
|
747
756
|
virtual int ReqQryMMInstrumentCommissionRate(CThostFtdcQryMMInstrumentCommissionRateField *pQryMMInstrumentCommissionRate, int nRequestID) = 0;
|
|
748
757
|
|
|
749
|
-
|
|
758
|
+
///请求查询做市商期权合约手续费
|
|
750
759
|
virtual int ReqQryMMOptionInstrCommRate(CThostFtdcQryMMOptionInstrCommRateField *pQryMMOptionInstrCommRate, int nRequestID) = 0;
|
|
751
760
|
|
|
752
|
-
|
|
761
|
+
///请求查询报单手续费
|
|
753
762
|
virtual int ReqQryInstrumentOrderCommRate(CThostFtdcQryInstrumentOrderCommRateField *pQryInstrumentOrderCommRate, int nRequestID) = 0;
|
|
754
763
|
|
|
755
|
-
|
|
764
|
+
///请求查询资金账户
|
|
756
765
|
virtual int ReqQrySecAgentTradingAccount(CThostFtdcQryTradingAccountField *pQryTradingAccount, int nRequestID) = 0;
|
|
757
766
|
|
|
758
|
-
|
|
767
|
+
///请求查询二级代理商资金校验模式
|
|
759
768
|
virtual int ReqQrySecAgentCheckMode(CThostFtdcQrySecAgentCheckModeField *pQrySecAgentCheckMode, int nRequestID) = 0;
|
|
760
769
|
|
|
761
|
-
|
|
770
|
+
///请求查询二级代理商信息
|
|
762
771
|
virtual int ReqQrySecAgentTradeInfo(CThostFtdcQrySecAgentTradeInfoField *pQrySecAgentTradeInfo, int nRequestID) = 0;
|
|
763
772
|
|
|
764
|
-
|
|
773
|
+
///请求查询期权交易成本
|
|
765
774
|
virtual int ReqQryOptionInstrTradeCost(CThostFtdcQryOptionInstrTradeCostField *pQryOptionInstrTradeCost, int nRequestID) = 0;
|
|
766
775
|
|
|
767
|
-
|
|
776
|
+
///请求查询期权合约手续费
|
|
768
777
|
virtual int ReqQryOptionInstrCommRate(CThostFtdcQryOptionInstrCommRateField *pQryOptionInstrCommRate, int nRequestID) = 0;
|
|
769
778
|
|
|
770
|
-
|
|
779
|
+
///请求查询执行宣告
|
|
771
780
|
virtual int ReqQryExecOrder(CThostFtdcQryExecOrderField *pQryExecOrder, int nRequestID) = 0;
|
|
772
781
|
|
|
773
|
-
|
|
782
|
+
///请求查询询价
|
|
774
783
|
virtual int ReqQryForQuote(CThostFtdcQryForQuoteField *pQryForQuote, int nRequestID) = 0;
|
|
775
784
|
|
|
776
|
-
|
|
785
|
+
///请求查询报价
|
|
777
786
|
virtual int ReqQryQuote(CThostFtdcQryQuoteField *pQryQuote, int nRequestID) = 0;
|
|
778
787
|
|
|
779
|
-
|
|
788
|
+
///请求查询期权自对冲
|
|
780
789
|
virtual int ReqQryOptionSelfClose(CThostFtdcQryOptionSelfCloseField *pQryOptionSelfClose, int nRequestID) = 0;
|
|
781
790
|
|
|
782
|
-
|
|
791
|
+
///请求查询投资单元
|
|
783
792
|
virtual int ReqQryInvestUnit(CThostFtdcQryInvestUnitField *pQryInvestUnit, int nRequestID) = 0;
|
|
784
793
|
|
|
785
|
-
|
|
794
|
+
///请求查询组合合约安全系数
|
|
786
795
|
virtual int ReqQryCombInstrumentGuard(CThostFtdcQryCombInstrumentGuardField *pQryCombInstrumentGuard, int nRequestID) = 0;
|
|
787
796
|
|
|
788
|
-
|
|
797
|
+
///请求查询申请组合
|
|
789
798
|
virtual int ReqQryCombAction(CThostFtdcQryCombActionField *pQryCombAction, int nRequestID) = 0;
|
|
790
799
|
|
|
791
|
-
|
|
800
|
+
///请求查询转帐流水
|
|
792
801
|
virtual int ReqQryTransferSerial(CThostFtdcQryTransferSerialField *pQryTransferSerial, int nRequestID) = 0;
|
|
793
802
|
|
|
794
|
-
|
|
803
|
+
///请求查询银期签约关系
|
|
795
804
|
virtual int ReqQryAccountregister(CThostFtdcQryAccountregisterField *pQryAccountregister, int nRequestID) = 0;
|
|
796
805
|
|
|
797
|
-
|
|
806
|
+
///请求查询签约银行
|
|
798
807
|
virtual int ReqQryContractBank(CThostFtdcQryContractBankField *pQryContractBank, int nRequestID) = 0;
|
|
799
808
|
|
|
800
|
-
|
|
809
|
+
///请求查询预埋单
|
|
801
810
|
virtual int ReqQryParkedOrder(CThostFtdcQryParkedOrderField *pQryParkedOrder, int nRequestID) = 0;
|
|
802
811
|
|
|
803
|
-
|
|
812
|
+
///请求查询预埋撤单
|
|
804
813
|
virtual int ReqQryParkedOrderAction(CThostFtdcQryParkedOrderActionField *pQryParkedOrderAction, int nRequestID) = 0;
|
|
805
814
|
|
|
806
|
-
|
|
815
|
+
///请求查询交易通知
|
|
807
816
|
virtual int ReqQryTradingNotice(CThostFtdcQryTradingNoticeField *pQryTradingNotice, int nRequestID) = 0;
|
|
808
817
|
|
|
809
|
-
|
|
818
|
+
///请求查询经纪公司交易参数
|
|
810
819
|
virtual int ReqQryBrokerTradingParams(CThostFtdcQryBrokerTradingParamsField *pQryBrokerTradingParams, int nRequestID) = 0;
|
|
811
820
|
|
|
812
|
-
|
|
821
|
+
///请求查询经纪公司交易算法
|
|
813
822
|
virtual int ReqQryBrokerTradingAlgos(CThostFtdcQryBrokerTradingAlgosField *pQryBrokerTradingAlgos, int nRequestID) = 0;
|
|
814
823
|
|
|
815
|
-
|
|
824
|
+
///请求查询监控中心用户令牌
|
|
816
825
|
virtual int ReqQueryCFMMCTradingAccountToken(CThostFtdcQueryCFMMCTradingAccountTokenField *pQueryCFMMCTradingAccountToken, int nRequestID) = 0;
|
|
817
826
|
|
|
818
|
-
|
|
827
|
+
///期货发起银行资金转期货请求
|
|
819
828
|
virtual int ReqFromBankToFutureByFuture(CThostFtdcReqTransferField *pReqTransfer, int nRequestID) = 0;
|
|
820
829
|
|
|
821
|
-
|
|
830
|
+
///期货发起期货资金转银行请求
|
|
822
831
|
virtual int ReqFromFutureToBankByFuture(CThostFtdcReqTransferField *pReqTransfer, int nRequestID) = 0;
|
|
823
832
|
|
|
824
|
-
|
|
833
|
+
///期货发起查询银行余额请求
|
|
825
834
|
virtual int ReqQueryBankAccountMoneyByFuture(CThostFtdcReqQueryAccountField *pReqQueryAccount, int nRequestID) = 0;
|
|
826
835
|
|
|
827
|
-
|
|
836
|
+
///请求查询分类合约
|
|
828
837
|
virtual int ReqQryClassifiedInstrument(CThostFtdcQryClassifiedInstrumentField *pQryClassifiedInstrument, int nRequestID) = 0;
|
|
829
838
|
|
|
830
|
-
|
|
839
|
+
///请求组合优惠比例
|
|
831
840
|
virtual int ReqQryCombPromotionParam(CThostFtdcQryCombPromotionParamField *pQryCombPromotionParam, int nRequestID) = 0;
|
|
832
841
|
|
|
833
|
-
|
|
842
|
+
///投资者风险结算持仓查询
|
|
834
843
|
virtual int ReqQryRiskSettleInvstPosition(CThostFtdcQryRiskSettleInvstPositionField *pQryRiskSettleInvstPosition, int nRequestID) = 0;
|
|
835
844
|
|
|
836
|
-
|
|
845
|
+
///风险结算产品查询
|
|
837
846
|
virtual int ReqQryRiskSettleProductStatus(CThostFtdcQryRiskSettleProductStatusField *pQryRiskSettleProductStatus, int nRequestID) = 0;
|
|
838
847
|
|
|
839
|
-
///SPBM
|
|
848
|
+
///SPBM期货合约参数查询
|
|
840
849
|
virtual int ReqQrySPBMFutureParameter(CThostFtdcQrySPBMFutureParameterField *pQrySPBMFutureParameter, int nRequestID) = 0;
|
|
841
850
|
|
|
842
|
-
///SPBM
|
|
851
|
+
///SPBM期权合约参数查询
|
|
843
852
|
virtual int ReqQrySPBMOptionParameter(CThostFtdcQrySPBMOptionParameterField *pQrySPBMOptionParameter, int nRequestID) = 0;
|
|
844
853
|
|
|
845
|
-
///SPBM
|
|
854
|
+
///SPBM品种内对锁仓折扣参数查询
|
|
846
855
|
virtual int ReqQrySPBMIntraParameter(CThostFtdcQrySPBMIntraParameterField *pQrySPBMIntraParameter, int nRequestID) = 0;
|
|
847
856
|
|
|
848
|
-
///SPBM
|
|
857
|
+
///SPBM跨品种抵扣参数查询
|
|
849
858
|
virtual int ReqQrySPBMInterParameter(CThostFtdcQrySPBMInterParameterField *pQrySPBMInterParameter, int nRequestID) = 0;
|
|
850
859
|
|
|
851
|
-
///SPBM
|
|
860
|
+
///SPBM组合保证金套餐查询
|
|
852
861
|
virtual int ReqQrySPBMPortfDefinition(CThostFtdcQrySPBMPortfDefinitionField *pQrySPBMPortfDefinition, int nRequestID) = 0;
|
|
853
862
|
|
|
854
|
-
|
|
863
|
+
///投资者SPBM套餐选择查询
|
|
855
864
|
virtual int ReqQrySPBMInvestorPortfDef(CThostFtdcQrySPBMInvestorPortfDefField *pQrySPBMInvestorPortfDef, int nRequestID) = 0;
|
|
856
865
|
|
|
857
|
-
|
|
866
|
+
///投资者新型组合保证金系数查询
|
|
858
867
|
virtual int ReqQryInvestorPortfMarginRatio(CThostFtdcQryInvestorPortfMarginRatioField *pQryInvestorPortfMarginRatio, int nRequestID) = 0;
|
|
859
868
|
|
|
860
|
-
|
|
869
|
+
///投资者产品SPBM明细查询
|
|
861
870
|
virtual int ReqQryInvestorProdSPBMDetail(CThostFtdcQryInvestorProdSPBMDetailField *pQryInvestorProdSPBMDetail, int nRequestID) = 0;
|
|
862
871
|
|
|
863
|
-
|
|
872
|
+
///投资者商品组SPMM记录查询
|
|
864
873
|
virtual int ReqQryInvestorCommoditySPMMMargin(CThostFtdcQryInvestorCommoditySPMMMarginField *pQryInvestorCommoditySPMMMargin, int nRequestID) = 0;
|
|
865
874
|
|
|
866
|
-
|
|
875
|
+
///投资者商品群SPMM记录查询
|
|
867
876
|
virtual int ReqQryInvestorCommodityGroupSPMMMargin(CThostFtdcQryInvestorCommodityGroupSPMMMarginField *pQryInvestorCommodityGroupSPMMMargin, int nRequestID) = 0;
|
|
868
877
|
|
|
869
|
-
///SPMM
|
|
878
|
+
///SPMM合约参数查询
|
|
870
879
|
virtual int ReqQrySPMMInstParam(CThostFtdcQrySPMMInstParamField *pQrySPMMInstParam, int nRequestID) = 0;
|
|
871
880
|
|
|
872
|
-
///SPMM
|
|
881
|
+
///SPMM产品参数查询
|
|
873
882
|
virtual int ReqQrySPMMProductParam(CThostFtdcQrySPMMProductParamField *pQrySPMMProductParam, int nRequestID) = 0;
|
|
874
883
|
|
|
875
|
-
///SPBM
|
|
884
|
+
///SPBM附加跨品种抵扣参数查询
|
|
876
885
|
virtual int ReqQrySPBMAddOnInterParameter(CThostFtdcQrySPBMAddOnInterParameterField *pQrySPBMAddOnInterParameter, int nRequestID) = 0;
|
|
877
886
|
|
|
878
|
-
///RCAMS
|
|
887
|
+
///RCAMS产品组合信息查询
|
|
879
888
|
virtual int ReqQryRCAMSCombProductInfo(CThostFtdcQryRCAMSCombProductInfoField *pQryRCAMSCombProductInfo, int nRequestID) = 0;
|
|
880
889
|
|
|
881
|
-
///RCAMS
|
|
890
|
+
///RCAMS同合约风险对冲参数查询
|
|
882
891
|
virtual int ReqQryRCAMSInstrParameter(CThostFtdcQryRCAMSInstrParameterField *pQryRCAMSInstrParameter, int nRequestID) = 0;
|
|
883
892
|
|
|
884
|
-
///RCAMS
|
|
893
|
+
///RCAMS品种内风险对冲参数查询
|
|
885
894
|
virtual int ReqQryRCAMSIntraParameter(CThostFtdcQryRCAMSIntraParameterField *pQryRCAMSIntraParameter, int nRequestID) = 0;
|
|
886
895
|
|
|
887
|
-
///RCAMS
|
|
896
|
+
///RCAMS跨品种风险折抵参数查询
|
|
888
897
|
virtual int ReqQryRCAMSInterParameter(CThostFtdcQryRCAMSInterParameterField *pQryRCAMSInterParameter, int nRequestID) = 0;
|
|
889
898
|
|
|
890
|
-
///RCAMS
|
|
899
|
+
///RCAMS空头期权风险调整参数查询
|
|
891
900
|
virtual int ReqQryRCAMSShortOptAdjustParam(CThostFtdcQryRCAMSShortOptAdjustParamField *pQryRCAMSShortOptAdjustParam, int nRequestID) = 0;
|
|
892
901
|
|
|
893
|
-
///RCAMS
|
|
902
|
+
///RCAMS策略组合持仓查询
|
|
894
903
|
virtual int ReqQryRCAMSInvestorCombPosition(CThostFtdcQryRCAMSInvestorCombPositionField *pQryRCAMSInvestorCombPosition, int nRequestID) = 0;
|
|
895
904
|
|
|
896
|
-
|
|
905
|
+
///投资者品种RCAMS保证金查询
|
|
897
906
|
virtual int ReqQryInvestorProdRCAMSMargin(CThostFtdcQryInvestorProdRCAMSMarginField *pQryInvestorProdRCAMSMargin, int nRequestID) = 0;
|
|
898
907
|
|
|
899
|
-
///RULE
|
|
908
|
+
///RULE合约保证金参数查询
|
|
900
909
|
virtual int ReqQryRULEInstrParameter(CThostFtdcQryRULEInstrParameterField *pQryRULEInstrParameter, int nRequestID) = 0;
|
|
901
910
|
|
|
902
|
-
///RULE
|
|
911
|
+
///RULE品种内对锁仓折扣参数查询
|
|
903
912
|
virtual int ReqQryRULEIntraParameter(CThostFtdcQryRULEIntraParameterField *pQryRULEIntraParameter, int nRequestID) = 0;
|
|
904
913
|
|
|
905
|
-
///RULE
|
|
914
|
+
///RULE跨品种抵扣参数查询
|
|
906
915
|
virtual int ReqQryRULEInterParameter(CThostFtdcQryRULEInterParameterField *pQryRULEInterParameter, int nRequestID) = 0;
|
|
907
916
|
|
|
908
|
-
|
|
917
|
+
///投资者产品RULE保证金查询
|
|
909
918
|
virtual int ReqQryInvestorProdRULEMargin(CThostFtdcQryInvestorProdRULEMarginField *pQryInvestorProdRULEMargin, int nRequestID) = 0;
|
|
919
|
+
|
|
920
|
+
///投资者投资者新组保设置查询
|
|
921
|
+
virtual int ReqQryInvestorPortfSetting(CThostFtdcQryInvestorPortfSettingField *pQryInvestorPortfSetting, int nRequestID) = 0;
|
|
910
922
|
protected:
|
|
911
923
|
~CThostFtdcTraderApi(){};
|
|
912
924
|
};
|