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