@hitrading/ctp-node 1.1.0 → 2.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 (86) hide show
  1. package/README.md +12 -5
  2. package/README.zh-CN.md +12 -5
  3. package/binding.gyp +13 -13
  4. package/{tradeapi/macos/thostmduserapi_se.framework/Versions/A/Headers → ctpsdk}/ThostFtdcMdApi.h +2 -1
  5. package/{tradeapi/macos/thosttraderapi_se.framework/Versions/A/Headers → ctpsdk}/ThostFtdcTraderApi.h +133 -6
  6. package/{tradeapi/macos/thostmduserapi_se.framework/Versions/A/Headers → ctpsdk}/ThostFtdcUserApiDataType.h +199 -3
  7. package/{tradeapi/macos/thosttraderapi_se.framework/Versions/A/Headers → ctpsdk}/ThostFtdcUserApiStruct.h +1574 -12
  8. package/{tradeapi → ctpsdk}/error.xml +56 -11
  9. package/ctpsdk/linux/thostmduserapi_se.so +0 -0
  10. package/{tradeapi → ctpsdk}/linux/thosttraderapi_se.so +0 -0
  11. package/{tradeapi → ctpsdk/macos/thostmduserapi_se.framework/Versions/A/Headers}/ThostFtdcMdApi.h +1 -1
  12. package/{tradeapi → ctpsdk/macos/thostmduserapi_se.framework/Versions/A/Headers}/ThostFtdcUserApiDataType.h +35 -2
  13. package/{tradeapi → ctpsdk/macos/thostmduserapi_se.framework/Versions/A/Headers}/ThostFtdcUserApiStruct.h +121 -11
  14. package/{tradeapi → ctpsdk}/macos/thostmduserapi_se.framework/Versions/A/Resources/Info.plist +46 -46
  15. package/{tradeapi → ctpsdk}/macos/thostmduserapi_se.framework/Versions/A/_CodeSignature/CodeResources +149 -149
  16. package/{tradeapi → ctpsdk}/macos/thostmduserapi_se.framework/Versions/A/thostmduserapi_se +0 -0
  17. package/{tradeapi → ctpsdk/macos/thosttraderapi_se.framework/Versions/A/Headers}/ThostFtdcTraderApi.h +14 -2
  18. package/{tradeapi → ctpsdk}/macos/thosttraderapi_se.framework/Versions/A/Headers/ThostFtdcUserApiDataType.h +2123 -2090
  19. package/{tradeapi/macos/thostmduserapi_se.framework → ctpsdk/macos/thosttraderapi_se.framework}/Versions/A/Headers/ThostFtdcUserApiStruct.h +5596 -5486
  20. package/{tradeapi → ctpsdk}/macos/thosttraderapi_se.framework/Versions/A/Resources/Info.plist +46 -46
  21. package/{tradeapi → ctpsdk}/macos/thosttraderapi_se.framework/Versions/A/_CodeSignature/CodeResources +149 -149
  22. package/{tradeapi → ctpsdk}/macos/thosttraderapi_se.framework/Versions/A/thosttraderapi_se +0 -0
  23. package/ctpsdk/windows/thostmduserapi_se.dll +0 -0
  24. package/ctpsdk/windows/thostmduserapi_se.lib +0 -0
  25. package/ctpsdk/windows/thosttraderapi_se.dll +0 -0
  26. package/ctpsdk/windows/thosttraderapi_se.lib +0 -0
  27. package/dist/client.d.ts +4 -0
  28. package/dist/client.d.ts.map +1 -1
  29. package/dist/client.js +7 -0
  30. package/dist/client.js.map +1 -1
  31. package/dist/generated/enums.gen.d.ts +76 -6
  32. package/dist/generated/enums.gen.d.ts.map +1 -1
  33. package/dist/generated/enums.gen.js +78 -0
  34. package/dist/generated/enums.gen.js.map +1 -1
  35. package/dist/generated/structs.gen.d.ts +6271 -4816
  36. package/dist/generated/structs.gen.d.ts.map +1 -1
  37. package/dist/generated/structs.gen.js +131 -25
  38. package/dist/generated/structs.gen.js.map +1 -1
  39. package/dist/generated/trader.gen.d.ts +39 -1
  40. package/dist/generated/trader.gen.d.ts.map +1 -1
  41. package/dist/generated/trader.gen.js +315 -225
  42. package/dist/generated/trader.gen.js.map +1 -1
  43. package/dist/index.cjs +594 -296
  44. package/dist/market-data.d.ts +10 -0
  45. package/dist/market-data.d.ts.map +1 -1
  46. package/dist/market-data.js +20 -0
  47. package/dist/market-data.js.map +1 -1
  48. package/dist/native-binding.js +1 -1
  49. package/dist/native-binding.js.map +1 -1
  50. package/dist/trader.d.ts +38 -30
  51. package/dist/trader.d.ts.map +1 -1
  52. package/dist/trader.js +39 -45
  53. package/dist/trader.js.map +1 -1
  54. package/package.json +7 -3
  55. package/prebuilds/linux-x64/@hitrading+ctp-node.node +0 -0
  56. package/prebuilds/linux-x64/thostmduserapi_se.so +0 -0
  57. package/prebuilds/linux-x64/thosttraderapi_se.so +0 -0
  58. package/prebuilds/win32-x64/@hitrading+ctp-node.node +0 -0
  59. package/prebuilds/win32-x64/thostmduserapi_se.dll +0 -0
  60. package/prebuilds/win32-x64/thosttraderapi_se.dll +0 -0
  61. package/src/client.ts +8 -0
  62. package/src/generated/enums.gen.ts +78 -0
  63. package/src/generated/layout.gen.cc +794 -40
  64. package/src/generated/structids.gen.h +54 -1
  65. package/src/generated/structs.gen.ts +6455 -4841
  66. package/src/generated/trader.gen.ts +315 -225
  67. package/src/generated/traderreq.gen.cc +84 -0
  68. package/src/generated/traderreq.gen.h +89 -75
  69. package/src/generated/traderspi.gen.cc +102 -0
  70. package/src/generated/traderspi.gen.h +198 -150
  71. package/src/market-data.ts +23 -0
  72. package/src/native/mdapi.cc +49 -2
  73. package/src/native/mdspi.cc +5 -1
  74. package/src/native/mdspi.h +4 -0
  75. package/src/native/risk.cc +50 -21
  76. package/src/native/risk.h +48 -8
  77. package/src/native/snapshot.h +61 -0
  78. package/src/native/traderapi.cc +11 -61
  79. package/src/native-binding.ts +1 -1
  80. package/src/trader.ts +55 -58
  81. package/tradeapi/linux/thostmduserapi_se.so +0 -0
  82. package/tradeapi/windows/thostmduserapi_se.dll +0 -0
  83. package/tradeapi/windows/thostmduserapi_se.lib +0 -0
  84. package/tradeapi/windows/thosttraderapi_se.dll +0 -0
  85. package/tradeapi/windows/thosttraderapi_se.lib +0 -0
  86. /package/{tradeapi → ctpsdk}/error.dtd +0 -0
@@ -9,6 +9,7 @@ export enum TraderEvent {
9
9
  FrontDisconnected = "front-disconnected",
10
10
  HeartBeatWarning = "heart-beat-warning",
11
11
  RspAuthenticate = "rsp-authenticate",
12
+ RtnPrivateSeqNo = "rtn-private-seq-no",
12
13
  RspUserLogin = "rsp-user-login",
13
14
  RspUserLogout = "rsp-user-logout",
14
15
  RspUserPasswordUpdate = "rsp-user-password-update",
@@ -41,6 +42,7 @@ export enum TraderEvent {
41
42
  RspQryTradingCode = "rsp-qry-trading-code",
42
43
  RspQryInstrumentMarginRate = "rsp-qry-instrument-margin-rate",
43
44
  RspQryInstrumentCommissionRate = "rsp-qry-instrument-commission-rate",
45
+ RspQryUserSession = "rsp-qry-user-session",
44
46
  RspQryExchange = "rsp-qry-exchange",
45
47
  RspQryProduct = "rsp-qry-product",
46
48
  RspQryInstrument = "rsp-qry-instrument",
@@ -159,6 +161,28 @@ export enum TraderEvent {
159
161
  RspQryRULEIntraParameter = "rsp-qry-rule-intra-parameter",
160
162
  RspQryRULEInterParameter = "rsp-qry-rule-inter-parameter",
161
163
  RspQryInvestorProdRULEMargin = "rsp-qry-investor-prod-rule-margin",
164
+ RspQryInvestorPortfSetting = "rsp-qry-investor-portf-setting",
165
+ RspQryInvestorInfoCommRec = "rsp-qry-investor-info-comm-rec",
166
+ RspQryCombLeg = "rsp-qry-comb-leg",
167
+ RspOffsetSetting = "rsp-offset-setting",
168
+ RspCancelOffsetSetting = "rsp-cancel-offset-setting",
169
+ RtnOffsetSetting = "rtn-offset-setting",
170
+ ErrRtnOffsetSetting = "err-rtn-offset-setting",
171
+ ErrRtnCancelOffsetSetting = "err-rtn-cancel-offset-setting",
172
+ RspQryOffsetSetting = "rsp-qry-offset-setting",
173
+ RspGenSMSCode = "rsp-gen-sms-code",
174
+ RspSpdApply = "rsp-spd-apply",
175
+ RspSpdApplyAction = "rsp-spd-apply-action",
176
+ RspQrySpdApply = "rsp-qry-spd-apply",
177
+ RtnSpdApply = "rtn-spd-apply",
178
+ ErrRtnSpdApply = "err-rtn-spd-apply",
179
+ ErrRtnSpdApplyAction = "err-rtn-spd-apply-action",
180
+ RspHedgeCfm = "rsp-hedge-cfm",
181
+ RspHedgeCfmAction = "rsp-hedge-cfm-action",
182
+ RspQryHedgeCfm = "rsp-qry-hedge-cfm",
183
+ RtnHedgeCfm = "rtn-hedge-cfm",
184
+ ErrRtnHedgeCfm = "err-rtn-hedge-cfm",
185
+ ErrRtnHedgeCfmAction = "err-rtn-hedge-cfm-action",
162
186
  }
163
187
 
164
188
  export const TRADER_EVENTS: Map<number, string> = new Map([
@@ -166,156 +190,180 @@ export const TRADER_EVENTS: Map<number, string> = new Map([
166
190
  [8192 + 2, "front-disconnected"],
167
191
  [8192 + 3, "heart-beat-warning"],
168
192
  [8192 + 4, "rsp-authenticate"],
169
- [8192 + 5, "rsp-user-login"],
170
- [8192 + 6, "rsp-user-logout"],
171
- [8192 + 7, "rsp-user-password-update"],
172
- [8192 + 8, "rsp-trading-account-password-update"],
173
- [8192 + 9, "rsp-user-auth-method"],
174
- [8192 + 10, "rsp-gen-user-captcha"],
175
- [8192 + 11, "rsp-gen-user-text"],
176
- [8192 + 12, "rsp-order-insert"],
177
- [8192 + 13, "rsp-parked-order-insert"],
178
- [8192 + 14, "rsp-parked-order-action"],
179
- [8192 + 15, "rsp-order-action"],
180
- [8192 + 16, "rsp-qry-max-order-volume"],
181
- [8192 + 17, "rsp-settlement-info-confirm"],
182
- [8192 + 18, "rsp-remove-parked-order"],
183
- [8192 + 19, "rsp-remove-parked-order-action"],
184
- [8192 + 20, "rsp-exec-order-insert"],
185
- [8192 + 21, "rsp-exec-order-action"],
186
- [8192 + 22, "rsp-for-quote-insert"],
187
- [8192 + 23, "rsp-quote-insert"],
188
- [8192 + 24, "rsp-quote-action"],
189
- [8192 + 25, "rsp-batch-order-action"],
190
- [8192 + 26, "rsp-option-self-close-insert"],
191
- [8192 + 27, "rsp-option-self-close-action"],
192
- [8192 + 28, "rsp-comb-action-insert"],
193
- [8192 + 29, "rsp-qry-order"],
194
- [8192 + 30, "rsp-qry-trade"],
195
- [8192 + 31, "rsp-qry-investor-position"],
196
- [8192 + 32, "rsp-qry-trading-account"],
197
- [8192 + 33, "rsp-qry-investor"],
198
- [8192 + 34, "rsp-qry-trading-code"],
199
- [8192 + 35, "rsp-qry-instrument-margin-rate"],
200
- [8192 + 36, "rsp-qry-instrument-commission-rate"],
201
- [8192 + 37, "rsp-qry-exchange"],
202
- [8192 + 38, "rsp-qry-product"],
203
- [8192 + 39, "rsp-qry-instrument"],
204
- [8192 + 40, "rsp-qry-depth-market-data"],
205
- [8192 + 41, "rsp-qry-trader-offer"],
206
- [8192 + 42, "rsp-qry-settlement-info"],
207
- [8192 + 43, "rsp-qry-transfer-bank"],
208
- [8192 + 44, "rsp-qry-investor-position-detail"],
209
- [8192 + 45, "rsp-qry-notice"],
210
- [8192 + 46, "rsp-qry-settlement-info-confirm"],
211
- [8192 + 47, "rsp-qry-investor-position-combine-detail"],
212
- [8192 + 48, "rsp-qry-cfmmc-trading-account-key"],
213
- [8192 + 49, "rsp-qry-e-warrant-offset"],
214
- [8192 + 50, "rsp-qry-investor-product-group-margin"],
215
- [8192 + 51, "rsp-qry-exchange-margin-rate"],
216
- [8192 + 52, "rsp-qry-exchange-margin-rate-adjust"],
217
- [8192 + 53, "rsp-qry-exchange-rate"],
218
- [8192 + 54, "rsp-qry-sec-agent-acid-map"],
219
- [8192 + 55, "rsp-qry-product-exch-rate"],
220
- [8192 + 56, "rsp-qry-product-group"],
221
- [8192 + 57, "rsp-qry-mm-instrument-commission-rate"],
222
- [8192 + 58, "rsp-qry-mm-option-instr-comm-rate"],
223
- [8192 + 59, "rsp-qry-instrument-order-comm-rate"],
224
- [8192 + 60, "rsp-qry-sec-agent-trading-account"],
225
- [8192 + 61, "rsp-qry-sec-agent-check-mode"],
226
- [8192 + 62, "rsp-qry-sec-agent-trade-info"],
227
- [8192 + 63, "rsp-qry-option-instr-trade-cost"],
228
- [8192 + 64, "rsp-qry-option-instr-comm-rate"],
229
- [8192 + 65, "rsp-qry-exec-order"],
230
- [8192 + 66, "rsp-qry-for-quote"],
231
- [8192 + 67, "rsp-qry-quote"],
232
- [8192 + 68, "rsp-qry-option-self-close"],
233
- [8192 + 69, "rsp-qry-invest-unit"],
234
- [8192 + 70, "rsp-qry-comb-instrument-guard"],
235
- [8192 + 71, "rsp-qry-comb-action"],
236
- [8192 + 72, "rsp-qry-transfer-serial"],
237
- [8192 + 73, "rsp-qry-accountregister"],
238
- [8192 + 74, "rsp-error"],
239
- [8192 + 75, "rtn-order"],
240
- [8192 + 76, "rtn-trade"],
241
- [8192 + 77, "err-rtn-order-insert"],
242
- [8192 + 78, "err-rtn-order-action"],
243
- [8192 + 79, "rtn-instrument-status"],
244
- [8192 + 80, "rtn-bulletin"],
245
- [8192 + 81, "rtn-trading-notice"],
246
- [8192 + 82, "rtn-error-conditional-order"],
247
- [8192 + 83, "rtn-exec-order"],
248
- [8192 + 84, "err-rtn-exec-order-insert"],
249
- [8192 + 85, "err-rtn-exec-order-action"],
250
- [8192 + 86, "err-rtn-for-quote-insert"],
251
- [8192 + 87, "rtn-quote"],
252
- [8192 + 88, "err-rtn-quote-insert"],
253
- [8192 + 89, "err-rtn-quote-action"],
254
- [8192 + 90, "rtn-for-quote-rsp"],
255
- [8192 + 91, "rtn-cfmmc-trading-account-token"],
256
- [8192 + 92, "err-rtn-batch-order-action"],
257
- [8192 + 93, "rtn-option-self-close"],
258
- [8192 + 94, "err-rtn-option-self-close-insert"],
259
- [8192 + 95, "err-rtn-option-self-close-action"],
260
- [8192 + 96, "rtn-comb-action"],
261
- [8192 + 97, "err-rtn-comb-action-insert"],
262
- [8192 + 98, "rsp-qry-contract-bank"],
263
- [8192 + 99, "rsp-qry-parked-order"],
264
- [8192 + 100, "rsp-qry-parked-order-action"],
265
- [8192 + 101, "rsp-qry-trading-notice"],
266
- [8192 + 102, "rsp-qry-broker-trading-params"],
267
- [8192 + 103, "rsp-qry-broker-trading-algos"],
268
- [8192 + 104, "rsp-query-cfmmc-trading-account-token"],
269
- [8192 + 105, "rtn-from-bank-to-future-by-bank"],
270
- [8192 + 106, "rtn-from-future-to-bank-by-bank"],
271
- [8192 + 107, "rtn-repeal-from-bank-to-future-by-bank"],
272
- [8192 + 108, "rtn-repeal-from-future-to-bank-by-bank"],
273
- [8192 + 109, "rtn-from-bank-to-future-by-future"],
274
- [8192 + 110, "rtn-from-future-to-bank-by-future"],
275
- [8192 + 111, "rtn-repeal-from-bank-to-future-by-future-manual"],
276
- [8192 + 112, "rtn-repeal-from-future-to-bank-by-future-manual"],
277
- [8192 + 113, "rtn-query-bank-balance-by-future"],
278
- [8192 + 114, "err-rtn-bank-to-future-by-future"],
279
- [8192 + 115, "err-rtn-future-to-bank-by-future"],
280
- [8192 + 116, "err-rtn-repeal-bank-to-future-by-future-manual"],
281
- [8192 + 117, "err-rtn-repeal-future-to-bank-by-future-manual"],
282
- [8192 + 118, "err-rtn-query-bank-balance-by-future"],
283
- [8192 + 119, "rtn-repeal-from-bank-to-future-by-future"],
284
- [8192 + 120, "rtn-repeal-from-future-to-bank-by-future"],
285
- [8192 + 121, "rsp-from-bank-to-future-by-future"],
286
- [8192 + 122, "rsp-from-future-to-bank-by-future"],
287
- [8192 + 123, "rsp-query-bank-account-money-by-future"],
288
- [8192 + 124, "rtn-open-account-by-bank"],
289
- [8192 + 125, "rtn-cancel-account-by-bank"],
290
- [8192 + 126, "rtn-change-account-by-bank"],
291
- [8192 + 127, "rsp-qry-classified-instrument"],
292
- [8192 + 128, "rsp-qry-comb-promotion-param"],
293
- [8192 + 129, "rsp-qry-risk-settle-invst-position"],
294
- [8192 + 130, "rsp-qry-risk-settle-product-status"],
295
- [8192 + 131, "rsp-qry-spbm-future-parameter"],
296
- [8192 + 132, "rsp-qry-spbm-option-parameter"],
297
- [8192 + 133, "rsp-qry-spbm-intra-parameter"],
298
- [8192 + 134, "rsp-qry-spbm-inter-parameter"],
299
- [8192 + 135, "rsp-qry-spbm-portf-definition"],
300
- [8192 + 136, "rsp-qry-spbm-investor-portf-def"],
301
- [8192 + 137, "rsp-qry-investor-portf-margin-ratio"],
302
- [8192 + 138, "rsp-qry-investor-prod-spbm-detail"],
303
- [8192 + 139, "rsp-qry-investor-commodity-spmm-margin"],
304
- [8192 + 140, "rsp-qry-investor-commodity-group-spmm-margin"],
305
- [8192 + 141, "rsp-qry-spmm-inst-param"],
306
- [8192 + 142, "rsp-qry-spmm-product-param"],
307
- [8192 + 143, "rsp-qry-spbm-add-on-inter-parameter"],
308
- [8192 + 144, "rsp-qry-rcams-comb-product-info"],
309
- [8192 + 145, "rsp-qry-rcams-instr-parameter"],
310
- [8192 + 146, "rsp-qry-rcams-intra-parameter"],
311
- [8192 + 147, "rsp-qry-rcams-inter-parameter"],
312
- [8192 + 148, "rsp-qry-rcams-short-opt-adjust-param"],
313
- [8192 + 149, "rsp-qry-rcams-investor-comb-position"],
314
- [8192 + 150, "rsp-qry-investor-prod-rcams-margin"],
315
- [8192 + 151, "rsp-qry-rule-instr-parameter"],
316
- [8192 + 152, "rsp-qry-rule-intra-parameter"],
317
- [8192 + 153, "rsp-qry-rule-inter-parameter"],
318
- [8192 + 154, "rsp-qry-investor-prod-rule-margin"],
193
+ [8192 + 5, "rtn-private-seq-no"],
194
+ [8192 + 6, "rsp-user-login"],
195
+ [8192 + 7, "rsp-user-logout"],
196
+ [8192 + 8, "rsp-user-password-update"],
197
+ [8192 + 9, "rsp-trading-account-password-update"],
198
+ [8192 + 10, "rsp-user-auth-method"],
199
+ [8192 + 11, "rsp-gen-user-captcha"],
200
+ [8192 + 12, "rsp-gen-user-text"],
201
+ [8192 + 13, "rsp-order-insert"],
202
+ [8192 + 14, "rsp-parked-order-insert"],
203
+ [8192 + 15, "rsp-parked-order-action"],
204
+ [8192 + 16, "rsp-order-action"],
205
+ [8192 + 17, "rsp-qry-max-order-volume"],
206
+ [8192 + 18, "rsp-settlement-info-confirm"],
207
+ [8192 + 19, "rsp-remove-parked-order"],
208
+ [8192 + 20, "rsp-remove-parked-order-action"],
209
+ [8192 + 21, "rsp-exec-order-insert"],
210
+ [8192 + 22, "rsp-exec-order-action"],
211
+ [8192 + 23, "rsp-for-quote-insert"],
212
+ [8192 + 24, "rsp-quote-insert"],
213
+ [8192 + 25, "rsp-quote-action"],
214
+ [8192 + 26, "rsp-batch-order-action"],
215
+ [8192 + 27, "rsp-option-self-close-insert"],
216
+ [8192 + 28, "rsp-option-self-close-action"],
217
+ [8192 + 29, "rsp-comb-action-insert"],
218
+ [8192 + 30, "rsp-qry-order"],
219
+ [8192 + 31, "rsp-qry-trade"],
220
+ [8192 + 32, "rsp-qry-investor-position"],
221
+ [8192 + 33, "rsp-qry-trading-account"],
222
+ [8192 + 34, "rsp-qry-investor"],
223
+ [8192 + 35, "rsp-qry-trading-code"],
224
+ [8192 + 36, "rsp-qry-instrument-margin-rate"],
225
+ [8192 + 37, "rsp-qry-instrument-commission-rate"],
226
+ [8192 + 38, "rsp-qry-user-session"],
227
+ [8192 + 39, "rsp-qry-exchange"],
228
+ [8192 + 40, "rsp-qry-product"],
229
+ [8192 + 41, "rsp-qry-instrument"],
230
+ [8192 + 42, "rsp-qry-depth-market-data"],
231
+ [8192 + 43, "rsp-qry-trader-offer"],
232
+ [8192 + 44, "rsp-qry-settlement-info"],
233
+ [8192 + 45, "rsp-qry-transfer-bank"],
234
+ [8192 + 46, "rsp-qry-investor-position-detail"],
235
+ [8192 + 47, "rsp-qry-notice"],
236
+ [8192 + 48, "rsp-qry-settlement-info-confirm"],
237
+ [8192 + 49, "rsp-qry-investor-position-combine-detail"],
238
+ [8192 + 50, "rsp-qry-cfmmc-trading-account-key"],
239
+ [8192 + 51, "rsp-qry-e-warrant-offset"],
240
+ [8192 + 52, "rsp-qry-investor-product-group-margin"],
241
+ [8192 + 53, "rsp-qry-exchange-margin-rate"],
242
+ [8192 + 54, "rsp-qry-exchange-margin-rate-adjust"],
243
+ [8192 + 55, "rsp-qry-exchange-rate"],
244
+ [8192 + 56, "rsp-qry-sec-agent-acid-map"],
245
+ [8192 + 57, "rsp-qry-product-exch-rate"],
246
+ [8192 + 58, "rsp-qry-product-group"],
247
+ [8192 + 59, "rsp-qry-mm-instrument-commission-rate"],
248
+ [8192 + 60, "rsp-qry-mm-option-instr-comm-rate"],
249
+ [8192 + 61, "rsp-qry-instrument-order-comm-rate"],
250
+ [8192 + 62, "rsp-qry-sec-agent-trading-account"],
251
+ [8192 + 63, "rsp-qry-sec-agent-check-mode"],
252
+ [8192 + 64, "rsp-qry-sec-agent-trade-info"],
253
+ [8192 + 65, "rsp-qry-option-instr-trade-cost"],
254
+ [8192 + 66, "rsp-qry-option-instr-comm-rate"],
255
+ [8192 + 67, "rsp-qry-exec-order"],
256
+ [8192 + 68, "rsp-qry-for-quote"],
257
+ [8192 + 69, "rsp-qry-quote"],
258
+ [8192 + 70, "rsp-qry-option-self-close"],
259
+ [8192 + 71, "rsp-qry-invest-unit"],
260
+ [8192 + 72, "rsp-qry-comb-instrument-guard"],
261
+ [8192 + 73, "rsp-qry-comb-action"],
262
+ [8192 + 74, "rsp-qry-transfer-serial"],
263
+ [8192 + 75, "rsp-qry-accountregister"],
264
+ [8192 + 76, "rsp-error"],
265
+ [8192 + 77, "rtn-order"],
266
+ [8192 + 78, "rtn-trade"],
267
+ [8192 + 79, "err-rtn-order-insert"],
268
+ [8192 + 80, "err-rtn-order-action"],
269
+ [8192 + 81, "rtn-instrument-status"],
270
+ [8192 + 82, "rtn-bulletin"],
271
+ [8192 + 83, "rtn-trading-notice"],
272
+ [8192 + 84, "rtn-error-conditional-order"],
273
+ [8192 + 85, "rtn-exec-order"],
274
+ [8192 + 86, "err-rtn-exec-order-insert"],
275
+ [8192 + 87, "err-rtn-exec-order-action"],
276
+ [8192 + 88, "err-rtn-for-quote-insert"],
277
+ [8192 + 89, "rtn-quote"],
278
+ [8192 + 90, "err-rtn-quote-insert"],
279
+ [8192 + 91, "err-rtn-quote-action"],
280
+ [8192 + 92, "rtn-for-quote-rsp"],
281
+ [8192 + 93, "rtn-cfmmc-trading-account-token"],
282
+ [8192 + 94, "err-rtn-batch-order-action"],
283
+ [8192 + 95, "rtn-option-self-close"],
284
+ [8192 + 96, "err-rtn-option-self-close-insert"],
285
+ [8192 + 97, "err-rtn-option-self-close-action"],
286
+ [8192 + 98, "rtn-comb-action"],
287
+ [8192 + 99, "err-rtn-comb-action-insert"],
288
+ [8192 + 100, "rsp-qry-contract-bank"],
289
+ [8192 + 101, "rsp-qry-parked-order"],
290
+ [8192 + 102, "rsp-qry-parked-order-action"],
291
+ [8192 + 103, "rsp-qry-trading-notice"],
292
+ [8192 + 104, "rsp-qry-broker-trading-params"],
293
+ [8192 + 105, "rsp-qry-broker-trading-algos"],
294
+ [8192 + 106, "rsp-query-cfmmc-trading-account-token"],
295
+ [8192 + 107, "rtn-from-bank-to-future-by-bank"],
296
+ [8192 + 108, "rtn-from-future-to-bank-by-bank"],
297
+ [8192 + 109, "rtn-repeal-from-bank-to-future-by-bank"],
298
+ [8192 + 110, "rtn-repeal-from-future-to-bank-by-bank"],
299
+ [8192 + 111, "rtn-from-bank-to-future-by-future"],
300
+ [8192 + 112, "rtn-from-future-to-bank-by-future"],
301
+ [8192 + 113, "rtn-repeal-from-bank-to-future-by-future-manual"],
302
+ [8192 + 114, "rtn-repeal-from-future-to-bank-by-future-manual"],
303
+ [8192 + 115, "rtn-query-bank-balance-by-future"],
304
+ [8192 + 116, "err-rtn-bank-to-future-by-future"],
305
+ [8192 + 117, "err-rtn-future-to-bank-by-future"],
306
+ [8192 + 118, "err-rtn-repeal-bank-to-future-by-future-manual"],
307
+ [8192 + 119, "err-rtn-repeal-future-to-bank-by-future-manual"],
308
+ [8192 + 120, "err-rtn-query-bank-balance-by-future"],
309
+ [8192 + 121, "rtn-repeal-from-bank-to-future-by-future"],
310
+ [8192 + 122, "rtn-repeal-from-future-to-bank-by-future"],
311
+ [8192 + 123, "rsp-from-bank-to-future-by-future"],
312
+ [8192 + 124, "rsp-from-future-to-bank-by-future"],
313
+ [8192 + 125, "rsp-query-bank-account-money-by-future"],
314
+ [8192 + 126, "rtn-open-account-by-bank"],
315
+ [8192 + 127, "rtn-cancel-account-by-bank"],
316
+ [8192 + 128, "rtn-change-account-by-bank"],
317
+ [8192 + 129, "rsp-qry-classified-instrument"],
318
+ [8192 + 130, "rsp-qry-comb-promotion-param"],
319
+ [8192 + 131, "rsp-qry-risk-settle-invst-position"],
320
+ [8192 + 132, "rsp-qry-risk-settle-product-status"],
321
+ [8192 + 133, "rsp-qry-spbm-future-parameter"],
322
+ [8192 + 134, "rsp-qry-spbm-option-parameter"],
323
+ [8192 + 135, "rsp-qry-spbm-intra-parameter"],
324
+ [8192 + 136, "rsp-qry-spbm-inter-parameter"],
325
+ [8192 + 137, "rsp-qry-spbm-portf-definition"],
326
+ [8192 + 138, "rsp-qry-spbm-investor-portf-def"],
327
+ [8192 + 139, "rsp-qry-investor-portf-margin-ratio"],
328
+ [8192 + 140, "rsp-qry-investor-prod-spbm-detail"],
329
+ [8192 + 141, "rsp-qry-investor-commodity-spmm-margin"],
330
+ [8192 + 142, "rsp-qry-investor-commodity-group-spmm-margin"],
331
+ [8192 + 143, "rsp-qry-spmm-inst-param"],
332
+ [8192 + 144, "rsp-qry-spmm-product-param"],
333
+ [8192 + 145, "rsp-qry-spbm-add-on-inter-parameter"],
334
+ [8192 + 146, "rsp-qry-rcams-comb-product-info"],
335
+ [8192 + 147, "rsp-qry-rcams-instr-parameter"],
336
+ [8192 + 148, "rsp-qry-rcams-intra-parameter"],
337
+ [8192 + 149, "rsp-qry-rcams-inter-parameter"],
338
+ [8192 + 150, "rsp-qry-rcams-short-opt-adjust-param"],
339
+ [8192 + 151, "rsp-qry-rcams-investor-comb-position"],
340
+ [8192 + 152, "rsp-qry-investor-prod-rcams-margin"],
341
+ [8192 + 153, "rsp-qry-rule-instr-parameter"],
342
+ [8192 + 154, "rsp-qry-rule-intra-parameter"],
343
+ [8192 + 155, "rsp-qry-rule-inter-parameter"],
344
+ [8192 + 156, "rsp-qry-investor-prod-rule-margin"],
345
+ [8192 + 157, "rsp-qry-investor-portf-setting"],
346
+ [8192 + 158, "rsp-qry-investor-info-comm-rec"],
347
+ [8192 + 159, "rsp-qry-comb-leg"],
348
+ [8192 + 160, "rsp-offset-setting"],
349
+ [8192 + 161, "rsp-cancel-offset-setting"],
350
+ [8192 + 162, "rtn-offset-setting"],
351
+ [8192 + 163, "err-rtn-offset-setting"],
352
+ [8192 + 164, "err-rtn-cancel-offset-setting"],
353
+ [8192 + 165, "rsp-qry-offset-setting"],
354
+ [8192 + 166, "rsp-gen-sms-code"],
355
+ [8192 + 167, "rsp-spd-apply"],
356
+ [8192 + 168, "rsp-spd-apply-action"],
357
+ [8192 + 169, "rsp-qry-spd-apply"],
358
+ [8192 + 170, "rtn-spd-apply"],
359
+ [8192 + 171, "err-rtn-spd-apply"],
360
+ [8192 + 172, "err-rtn-spd-apply-action"],
361
+ [8192 + 173, "rsp-hedge-cfm"],
362
+ [8192 + 174, "rsp-hedge-cfm-action"],
363
+ [8192 + 175, "rsp-qry-hedge-cfm"],
364
+ [8192 + 176, "rtn-hedge-cfm"],
365
+ [8192 + 177, "err-rtn-hedge-cfm"],
366
+ [8192 + 178, "err-rtn-hedge-cfm-action"],
319
367
  ]);
320
368
 
321
369
  /* eslint-disable @typescript-eslint/no-explicit-any */
@@ -428,229 +476,271 @@ export abstract class TraderBase extends CtpClient {
428
476
  reqQryInstrumentCommissionRate(req: Partial<S.QryInstrumentCommissionRate> = {}): Promise<unknown[]> {
429
477
  return this.request((id) => this.native._req(36, this.encode(STRUCT_ID.QryInstrumentCommissionRate, req as Record<string, unknown>), id), false);
430
478
  }
479
+ reqQryUserSession(req: Partial<S.QryUserSession> = {}): Promise<unknown[]> {
480
+ return this.request((id) => this.native._req(37, this.encode(STRUCT_ID.QryUserSession, req as Record<string, unknown>), id), false);
481
+ }
431
482
  reqQryExchange(req: Partial<S.QryExchange> = {}): Promise<unknown[]> {
432
- return this.request((id) => this.native._req(37, this.encode(STRUCT_ID.QryExchange, req as Record<string, unknown>), id), false);
483
+ return this.request((id) => this.native._req(38, this.encode(STRUCT_ID.QryExchange, req as Record<string, unknown>), id), false);
433
484
  }
434
485
  reqQryProduct(req: Partial<S.QryProduct> = {}): Promise<unknown[]> {
435
- return this.request((id) => this.native._req(38, this.encode(STRUCT_ID.QryProduct, req as Record<string, unknown>), id), false);
486
+ return this.request((id) => this.native._req(39, this.encode(STRUCT_ID.QryProduct, req as Record<string, unknown>), id), false);
436
487
  }
437
488
  reqQryInstrument(req: Partial<S.QryInstrument> = {}): Promise<unknown[]> {
438
- return this.request((id) => this.native._req(39, this.encode(STRUCT_ID.QryInstrument, req as Record<string, unknown>), id), false);
489
+ return this.request((id) => this.native._req(40, this.encode(STRUCT_ID.QryInstrument, req as Record<string, unknown>), id), false);
439
490
  }
440
491
  reqQryDepthMarketData(req: Partial<S.QryDepthMarketData> = {}): Promise<unknown[]> {
441
- return this.request((id) => this.native._req(40, this.encode(STRUCT_ID.QryDepthMarketData, req as Record<string, unknown>), id), false);
492
+ return this.request((id) => this.native._req(41, this.encode(STRUCT_ID.QryDepthMarketData, req as Record<string, unknown>), id), false);
442
493
  }
443
494
  reqQryTraderOffer(req: Partial<S.QryTraderOffer> = {}): Promise<unknown[]> {
444
- return this.request((id) => this.native._req(41, this.encode(STRUCT_ID.QryTraderOffer, req as Record<string, unknown>), id), false);
495
+ return this.request((id) => this.native._req(42, this.encode(STRUCT_ID.QryTraderOffer, req as Record<string, unknown>), id), false);
445
496
  }
446
497
  reqQrySettlementInfo(req: Partial<S.QrySettlementInfo> = {}): Promise<unknown[]> {
447
- return this.request((id) => this.native._req(42, this.encode(STRUCT_ID.QrySettlementInfo, req as Record<string, unknown>), id), false);
498
+ return this.request((id) => this.native._req(43, this.encode(STRUCT_ID.QrySettlementInfo, req as Record<string, unknown>), id), false);
448
499
  }
449
500
  reqQryTransferBank(req: Partial<S.QryTransferBank> = {}): Promise<unknown[]> {
450
- return this.request((id) => this.native._req(43, this.encode(STRUCT_ID.QryTransferBank, req as Record<string, unknown>), id), false);
501
+ return this.request((id) => this.native._req(44, this.encode(STRUCT_ID.QryTransferBank, req as Record<string, unknown>), id), false);
451
502
  }
452
503
  reqQryInvestorPositionDetail(req: Partial<S.QryInvestorPositionDetail> = {}): Promise<unknown[]> {
453
- return this.request((id) => this.native._req(44, this.encode(STRUCT_ID.QryInvestorPositionDetail, req as Record<string, unknown>), id), false);
504
+ return this.request((id) => this.native._req(45, this.encode(STRUCT_ID.QryInvestorPositionDetail, req as Record<string, unknown>), id), false);
454
505
  }
455
506
  reqQryNotice(req: Partial<S.QryNotice> = {}): Promise<unknown[]> {
456
- return this.request((id) => this.native._req(45, this.encode(STRUCT_ID.QryNotice, req as Record<string, unknown>), id), false);
507
+ return this.request((id) => this.native._req(46, this.encode(STRUCT_ID.QryNotice, req as Record<string, unknown>), id), false);
457
508
  }
458
509
  reqQrySettlementInfoConfirm(req: Partial<S.QrySettlementInfoConfirm> = {}): Promise<unknown[]> {
459
- return this.request((id) => this.native._req(46, this.encode(STRUCT_ID.QrySettlementInfoConfirm, req as Record<string, unknown>), id), false);
510
+ return this.request((id) => this.native._req(47, this.encode(STRUCT_ID.QrySettlementInfoConfirm, req as Record<string, unknown>), id), false);
460
511
  }
461
512
  reqQryInvestorPositionCombineDetail(req: Partial<S.QryInvestorPositionCombineDetail> = {}): Promise<unknown[]> {
462
- return this.request((id) => this.native._req(47, this.encode(STRUCT_ID.QryInvestorPositionCombineDetail, req as Record<string, unknown>), id), false);
513
+ return this.request((id) => this.native._req(48, this.encode(STRUCT_ID.QryInvestorPositionCombineDetail, req as Record<string, unknown>), id), false);
463
514
  }
464
515
  reqQryCfmmcTradingAccountKey(req: Partial<S.QryCFMMCTradingAccountKey> = {}): Promise<unknown[]> {
465
- return this.request((id) => this.native._req(48, this.encode(STRUCT_ID.QryCFMMCTradingAccountKey, req as Record<string, unknown>), id), false);
516
+ return this.request((id) => this.native._req(49, this.encode(STRUCT_ID.QryCFMMCTradingAccountKey, req as Record<string, unknown>), id), false);
466
517
  }
467
518
  reqQryEWarrantOffset(req: Partial<S.QryEWarrantOffset> = {}): Promise<unknown[]> {
468
- return this.request((id) => this.native._req(49, this.encode(STRUCT_ID.QryEWarrantOffset, req as Record<string, unknown>), id), false);
519
+ return this.request((id) => this.native._req(50, this.encode(STRUCT_ID.QryEWarrantOffset, req as Record<string, unknown>), id), false);
469
520
  }
470
521
  reqQryInvestorProductGroupMargin(req: Partial<S.QryInvestorProductGroupMargin> = {}): Promise<unknown[]> {
471
- return this.request((id) => this.native._req(50, this.encode(STRUCT_ID.QryInvestorProductGroupMargin, req as Record<string, unknown>), id), false);
522
+ return this.request((id) => this.native._req(51, this.encode(STRUCT_ID.QryInvestorProductGroupMargin, req as Record<string, unknown>), id), false);
472
523
  }
473
524
  reqQryExchangeMarginRate(req: Partial<S.QryExchangeMarginRate> = {}): Promise<unknown[]> {
474
- return this.request((id) => this.native._req(51, this.encode(STRUCT_ID.QryExchangeMarginRate, req as Record<string, unknown>), id), false);
525
+ return this.request((id) => this.native._req(52, this.encode(STRUCT_ID.QryExchangeMarginRate, req as Record<string, unknown>), id), false);
475
526
  }
476
527
  reqQryExchangeMarginRateAdjust(req: Partial<S.QryExchangeMarginRateAdjust> = {}): Promise<unknown[]> {
477
- return this.request((id) => this.native._req(52, this.encode(STRUCT_ID.QryExchangeMarginRateAdjust, req as Record<string, unknown>), id), false);
528
+ return this.request((id) => this.native._req(53, this.encode(STRUCT_ID.QryExchangeMarginRateAdjust, req as Record<string, unknown>), id), false);
478
529
  }
479
530
  reqQryExchangeRate(req: Partial<S.QryExchangeRate> = {}): Promise<unknown[]> {
480
- return this.request((id) => this.native._req(53, this.encode(STRUCT_ID.QryExchangeRate, req as Record<string, unknown>), id), false);
531
+ return this.request((id) => this.native._req(54, this.encode(STRUCT_ID.QryExchangeRate, req as Record<string, unknown>), id), false);
481
532
  }
482
533
  reqQrySecAgentAcidMap(req: Partial<S.QrySecAgentACIDMap> = {}): Promise<unknown[]> {
483
- return this.request((id) => this.native._req(54, this.encode(STRUCT_ID.QrySecAgentACIDMap, req as Record<string, unknown>), id), false);
534
+ return this.request((id) => this.native._req(55, this.encode(STRUCT_ID.QrySecAgentACIDMap, req as Record<string, unknown>), id), false);
484
535
  }
485
536
  reqQryProductExchRate(req: Partial<S.QryProductExchRate> = {}): Promise<unknown[]> {
486
- return this.request((id) => this.native._req(55, this.encode(STRUCT_ID.QryProductExchRate, req as Record<string, unknown>), id), false);
537
+ return this.request((id) => this.native._req(56, this.encode(STRUCT_ID.QryProductExchRate, req as Record<string, unknown>), id), false);
487
538
  }
488
539
  reqQryProductGroup(req: Partial<S.QryProductGroup> = {}): Promise<unknown[]> {
489
- return this.request((id) => this.native._req(56, this.encode(STRUCT_ID.QryProductGroup, req as Record<string, unknown>), id), false);
540
+ return this.request((id) => this.native._req(57, this.encode(STRUCT_ID.QryProductGroup, req as Record<string, unknown>), id), false);
490
541
  }
491
542
  reqQryMmInstrumentCommissionRate(req: Partial<S.QryMMInstrumentCommissionRate> = {}): Promise<unknown[]> {
492
- return this.request((id) => this.native._req(57, this.encode(STRUCT_ID.QryMMInstrumentCommissionRate, req as Record<string, unknown>), id), false);
543
+ return this.request((id) => this.native._req(58, this.encode(STRUCT_ID.QryMMInstrumentCommissionRate, req as Record<string, unknown>), id), false);
493
544
  }
494
545
  reqQryMmOptionInstrCommRate(req: Partial<S.QryMMOptionInstrCommRate> = {}): Promise<unknown[]> {
495
- return this.request((id) => this.native._req(58, this.encode(STRUCT_ID.QryMMOptionInstrCommRate, req as Record<string, unknown>), id), false);
546
+ return this.request((id) => this.native._req(59, this.encode(STRUCT_ID.QryMMOptionInstrCommRate, req as Record<string, unknown>), id), false);
496
547
  }
497
548
  reqQryInstrumentOrderCommRate(req: Partial<S.QryInstrumentOrderCommRate> = {}): Promise<unknown[]> {
498
- return this.request((id) => this.native._req(59, this.encode(STRUCT_ID.QryInstrumentOrderCommRate, req as Record<string, unknown>), id), false);
549
+ return this.request((id) => this.native._req(60, this.encode(STRUCT_ID.QryInstrumentOrderCommRate, req as Record<string, unknown>), id), false);
499
550
  }
500
551
  reqQrySecAgentTradingAccount(req: Partial<S.QryTradingAccount> = {}): Promise<unknown[]> {
501
- return this.request((id) => this.native._req(60, this.encode(STRUCT_ID.QryTradingAccount, req as Record<string, unknown>), id), false);
552
+ return this.request((id) => this.native._req(61, this.encode(STRUCT_ID.QryTradingAccount, req as Record<string, unknown>), id), false);
502
553
  }
503
554
  reqQrySecAgentCheckMode(req: Partial<S.QrySecAgentCheckMode> = {}): Promise<unknown[]> {
504
- return this.request((id) => this.native._req(61, this.encode(STRUCT_ID.QrySecAgentCheckMode, req as Record<string, unknown>), id), false);
555
+ return this.request((id) => this.native._req(62, this.encode(STRUCT_ID.QrySecAgentCheckMode, req as Record<string, unknown>), id), false);
505
556
  }
506
557
  reqQrySecAgentTradeInfo(req: Partial<S.QrySecAgentTradeInfo> = {}): Promise<unknown[]> {
507
- return this.request((id) => this.native._req(62, this.encode(STRUCT_ID.QrySecAgentTradeInfo, req as Record<string, unknown>), id), false);
558
+ return this.request((id) => this.native._req(63, this.encode(STRUCT_ID.QrySecAgentTradeInfo, req as Record<string, unknown>), id), false);
508
559
  }
509
560
  reqQryOptionInstrTradeCost(req: Partial<S.QryOptionInstrTradeCost> = {}): Promise<unknown[]> {
510
- return this.request((id) => this.native._req(63, this.encode(STRUCT_ID.QryOptionInstrTradeCost, req as Record<string, unknown>), id), false);
561
+ return this.request((id) => this.native._req(64, this.encode(STRUCT_ID.QryOptionInstrTradeCost, req as Record<string, unknown>), id), false);
511
562
  }
512
563
  reqQryOptionInstrCommRate(req: Partial<S.QryOptionInstrCommRate> = {}): Promise<unknown[]> {
513
- return this.request((id) => this.native._req(64, this.encode(STRUCT_ID.QryOptionInstrCommRate, req as Record<string, unknown>), id), false);
564
+ return this.request((id) => this.native._req(65, this.encode(STRUCT_ID.QryOptionInstrCommRate, req as Record<string, unknown>), id), false);
514
565
  }
515
566
  reqQryExecOrder(req: Partial<S.QryExecOrder> = {}): Promise<unknown[]> {
516
- return this.request((id) => this.native._req(65, this.encode(STRUCT_ID.QryExecOrder, req as Record<string, unknown>), id), false);
567
+ return this.request((id) => this.native._req(66, this.encode(STRUCT_ID.QryExecOrder, req as Record<string, unknown>), id), false);
517
568
  }
518
569
  reqQryForQuote(req: Partial<S.QryForQuote> = {}): Promise<unknown[]> {
519
- return this.request((id) => this.native._req(66, this.encode(STRUCT_ID.QryForQuote, req as Record<string, unknown>), id), false);
570
+ return this.request((id) => this.native._req(67, this.encode(STRUCT_ID.QryForQuote, req as Record<string, unknown>), id), false);
520
571
  }
521
572
  reqQryQuote(req: Partial<S.QryQuote> = {}): Promise<unknown[]> {
522
- return this.request((id) => this.native._req(67, this.encode(STRUCT_ID.QryQuote, req as Record<string, unknown>), id), false);
573
+ return this.request((id) => this.native._req(68, this.encode(STRUCT_ID.QryQuote, req as Record<string, unknown>), id), false);
523
574
  }
524
575
  reqQryOptionSelfClose(req: Partial<S.QryOptionSelfClose> = {}): Promise<unknown[]> {
525
- return this.request((id) => this.native._req(68, this.encode(STRUCT_ID.QryOptionSelfClose, req as Record<string, unknown>), id), false);
576
+ return this.request((id) => this.native._req(69, this.encode(STRUCT_ID.QryOptionSelfClose, req as Record<string, unknown>), id), false);
526
577
  }
527
578
  reqQryInvestUnit(req: Partial<S.QryInvestUnit> = {}): Promise<unknown[]> {
528
- return this.request((id) => this.native._req(69, this.encode(STRUCT_ID.QryInvestUnit, req as Record<string, unknown>), id), false);
579
+ return this.request((id) => this.native._req(70, this.encode(STRUCT_ID.QryInvestUnit, req as Record<string, unknown>), id), false);
529
580
  }
530
581
  reqQryCombInstrumentGuard(req: Partial<S.QryCombInstrumentGuard> = {}): Promise<unknown[]> {
531
- return this.request((id) => this.native._req(70, this.encode(STRUCT_ID.QryCombInstrumentGuard, req as Record<string, unknown>), id), false);
582
+ return this.request((id) => this.native._req(71, this.encode(STRUCT_ID.QryCombInstrumentGuard, req as Record<string, unknown>), id), false);
532
583
  }
533
584
  reqQryCombAction(req: Partial<S.QryCombAction> = {}): Promise<unknown[]> {
534
- return this.request((id) => this.native._req(71, this.encode(STRUCT_ID.QryCombAction, req as Record<string, unknown>), id), false);
585
+ return this.request((id) => this.native._req(72, this.encode(STRUCT_ID.QryCombAction, req as Record<string, unknown>), id), false);
535
586
  }
536
587
  reqQryTransferSerial(req: Partial<S.QryTransferSerial> = {}): Promise<unknown[]> {
537
- return this.request((id) => this.native._req(72, this.encode(STRUCT_ID.QryTransferSerial, req as Record<string, unknown>), id), false);
588
+ return this.request((id) => this.native._req(73, this.encode(STRUCT_ID.QryTransferSerial, req as Record<string, unknown>), id), false);
538
589
  }
539
590
  reqQryAccountregister(req: Partial<S.QryAccountregister> = {}): Promise<unknown[]> {
540
- return this.request((id) => this.native._req(73, this.encode(STRUCT_ID.QryAccountregister, req as Record<string, unknown>), id), false);
591
+ return this.request((id) => this.native._req(74, this.encode(STRUCT_ID.QryAccountregister, req as Record<string, unknown>), id), false);
541
592
  }
542
593
  reqQryContractBank(req: Partial<S.QryContractBank> = {}): Promise<unknown[]> {
543
- return this.request((id) => this.native._req(74, this.encode(STRUCT_ID.QryContractBank, req as Record<string, unknown>), id), false);
594
+ return this.request((id) => this.native._req(75, this.encode(STRUCT_ID.QryContractBank, req as Record<string, unknown>), id), false);
544
595
  }
545
596
  reqQryParkedOrder(req: Partial<S.QryParkedOrder> = {}): Promise<unknown[]> {
546
- return this.request((id) => this.native._req(75, this.encode(STRUCT_ID.QryParkedOrder, req as Record<string, unknown>), id), false);
597
+ return this.request((id) => this.native._req(76, this.encode(STRUCT_ID.QryParkedOrder, req as Record<string, unknown>), id), false);
547
598
  }
548
599
  reqQryParkedOrderAction(req: Partial<S.QryParkedOrderAction> = {}): Promise<unknown[]> {
549
- return this.request((id) => this.native._req(76, this.encode(STRUCT_ID.QryParkedOrderAction, req as Record<string, unknown>), id), false);
600
+ return this.request((id) => this.native._req(77, this.encode(STRUCT_ID.QryParkedOrderAction, req as Record<string, unknown>), id), false);
550
601
  }
551
602
  reqQryTradingNotice(req: Partial<S.QryTradingNotice> = {}): Promise<unknown[]> {
552
- return this.request((id) => this.native._req(77, this.encode(STRUCT_ID.QryTradingNotice, req as Record<string, unknown>), id), false);
603
+ return this.request((id) => this.native._req(78, this.encode(STRUCT_ID.QryTradingNotice, req as Record<string, unknown>), id), false);
553
604
  }
554
605
  reqQryBrokerTradingParams(req: Partial<S.QryBrokerTradingParams> = {}): Promise<unknown[]> {
555
- return this.request((id) => this.native._req(78, this.encode(STRUCT_ID.QryBrokerTradingParams, req as Record<string, unknown>), id), false);
606
+ return this.request((id) => this.native._req(79, this.encode(STRUCT_ID.QryBrokerTradingParams, req as Record<string, unknown>), id), false);
556
607
  }
557
608
  reqQryBrokerTradingAlgos(req: Partial<S.QryBrokerTradingAlgos> = {}): Promise<unknown[]> {
558
- return this.request((id) => this.native._req(79, this.encode(STRUCT_ID.QryBrokerTradingAlgos, req as Record<string, unknown>), id), false);
609
+ return this.request((id) => this.native._req(80, this.encode(STRUCT_ID.QryBrokerTradingAlgos, req as Record<string, unknown>), id), false);
559
610
  }
560
611
  reqQueryCfmmcTradingAccountToken(req: Partial<S.QueryCFMMCTradingAccountToken> = {}): Promise<unknown> {
561
- return this.request((id) => this.native._req(80, this.encode(STRUCT_ID.QueryCFMMCTradingAccountToken, req as Record<string, unknown>), id), true);
612
+ return this.request((id) => this.native._req(81, this.encode(STRUCT_ID.QueryCFMMCTradingAccountToken, req as Record<string, unknown>), id), true);
562
613
  }
563
614
  reqFromBankToFutureByFuture(req: Partial<S.ReqTransfer> = {}): Promise<unknown> {
564
- return this.request((id) => this.native._req(81, this.encode(STRUCT_ID.ReqTransfer, req as Record<string, unknown>), id), true);
615
+ return this.request((id) => this.native._req(82, this.encode(STRUCT_ID.ReqTransfer, req as Record<string, unknown>), id), true);
565
616
  }
566
617
  reqFromFutureToBankByFuture(req: Partial<S.ReqTransfer> = {}): Promise<unknown> {
567
- return this.request((id) => this.native._req(82, this.encode(STRUCT_ID.ReqTransfer, req as Record<string, unknown>), id), true);
618
+ return this.request((id) => this.native._req(83, this.encode(STRUCT_ID.ReqTransfer, req as Record<string, unknown>), id), true);
568
619
  }
569
620
  reqQueryBankAccountMoneyByFuture(req: Partial<S.ReqQueryAccount> = {}): Promise<unknown> {
570
- return this.request((id) => this.native._req(83, this.encode(STRUCT_ID.ReqQueryAccount, req as Record<string, unknown>), id), true);
621
+ return this.request((id) => this.native._req(84, this.encode(STRUCT_ID.ReqQueryAccount, req as Record<string, unknown>), id), true);
571
622
  }
572
623
  reqQryClassifiedInstrument(req: Partial<S.QryClassifiedInstrument> = {}): Promise<unknown[]> {
573
- return this.request((id) => this.native._req(84, this.encode(STRUCT_ID.QryClassifiedInstrument, req as Record<string, unknown>), id), false);
624
+ return this.request((id) => this.native._req(85, this.encode(STRUCT_ID.QryClassifiedInstrument, req as Record<string, unknown>), id), false);
574
625
  }
575
626
  reqQryCombPromotionParam(req: Partial<S.QryCombPromotionParam> = {}): Promise<unknown[]> {
576
- return this.request((id) => this.native._req(85, this.encode(STRUCT_ID.QryCombPromotionParam, req as Record<string, unknown>), id), false);
627
+ return this.request((id) => this.native._req(86, this.encode(STRUCT_ID.QryCombPromotionParam, req as Record<string, unknown>), id), false);
577
628
  }
578
629
  reqQryRiskSettleInvstPosition(req: Partial<S.QryRiskSettleInvstPosition> = {}): Promise<unknown[]> {
579
- return this.request((id) => this.native._req(86, this.encode(STRUCT_ID.QryRiskSettleInvstPosition, req as Record<string, unknown>), id), false);
630
+ return this.request((id) => this.native._req(87, this.encode(STRUCT_ID.QryRiskSettleInvstPosition, req as Record<string, unknown>), id), false);
580
631
  }
581
632
  reqQryRiskSettleProductStatus(req: Partial<S.QryRiskSettleProductStatus> = {}): Promise<unknown[]> {
582
- return this.request((id) => this.native._req(87, this.encode(STRUCT_ID.QryRiskSettleProductStatus, req as Record<string, unknown>), id), false);
633
+ return this.request((id) => this.native._req(88, this.encode(STRUCT_ID.QryRiskSettleProductStatus, req as Record<string, unknown>), id), false);
583
634
  }
584
635
  reqQrySpbmFutureParameter(req: Partial<S.QrySPBMFutureParameter> = {}): Promise<unknown[]> {
585
- return this.request((id) => this.native._req(88, this.encode(STRUCT_ID.QrySPBMFutureParameter, req as Record<string, unknown>), id), false);
636
+ return this.request((id) => this.native._req(89, this.encode(STRUCT_ID.QrySPBMFutureParameter, req as Record<string, unknown>), id), false);
586
637
  }
587
638
  reqQrySpbmOptionParameter(req: Partial<S.QrySPBMOptionParameter> = {}): Promise<unknown[]> {
588
- return this.request((id) => this.native._req(89, this.encode(STRUCT_ID.QrySPBMOptionParameter, req as Record<string, unknown>), id), false);
639
+ return this.request((id) => this.native._req(90, this.encode(STRUCT_ID.QrySPBMOptionParameter, req as Record<string, unknown>), id), false);
589
640
  }
590
641
  reqQrySpbmIntraParameter(req: Partial<S.QrySPBMIntraParameter> = {}): Promise<unknown[]> {
591
- return this.request((id) => this.native._req(90, this.encode(STRUCT_ID.QrySPBMIntraParameter, req as Record<string, unknown>), id), false);
642
+ return this.request((id) => this.native._req(91, this.encode(STRUCT_ID.QrySPBMIntraParameter, req as Record<string, unknown>), id), false);
592
643
  }
593
644
  reqQrySpbmInterParameter(req: Partial<S.QrySPBMInterParameter> = {}): Promise<unknown[]> {
594
- return this.request((id) => this.native._req(91, this.encode(STRUCT_ID.QrySPBMInterParameter, req as Record<string, unknown>), id), false);
645
+ return this.request((id) => this.native._req(92, this.encode(STRUCT_ID.QrySPBMInterParameter, req as Record<string, unknown>), id), false);
595
646
  }
596
647
  reqQrySpbmPortfDefinition(req: Partial<S.QrySPBMPortfDefinition> = {}): Promise<unknown[]> {
597
- return this.request((id) => this.native._req(92, this.encode(STRUCT_ID.QrySPBMPortfDefinition, req as Record<string, unknown>), id), false);
648
+ return this.request((id) => this.native._req(93, this.encode(STRUCT_ID.QrySPBMPortfDefinition, req as Record<string, unknown>), id), false);
598
649
  }
599
650
  reqQrySpbmInvestorPortfDef(req: Partial<S.QrySPBMInvestorPortfDef> = {}): Promise<unknown[]> {
600
- return this.request((id) => this.native._req(93, this.encode(STRUCT_ID.QrySPBMInvestorPortfDef, req as Record<string, unknown>), id), false);
651
+ return this.request((id) => this.native._req(94, this.encode(STRUCT_ID.QrySPBMInvestorPortfDef, req as Record<string, unknown>), id), false);
601
652
  }
602
653
  reqQryInvestorPortfMarginRatio(req: Partial<S.QryInvestorPortfMarginRatio> = {}): Promise<unknown[]> {
603
- return this.request((id) => this.native._req(94, this.encode(STRUCT_ID.QryInvestorPortfMarginRatio, req as Record<string, unknown>), id), false);
654
+ return this.request((id) => this.native._req(95, this.encode(STRUCT_ID.QryInvestorPortfMarginRatio, req as Record<string, unknown>), id), false);
604
655
  }
605
656
  reqQryInvestorProdSpbmDetail(req: Partial<S.QryInvestorProdSPBMDetail> = {}): Promise<unknown[]> {
606
- return this.request((id) => this.native._req(95, this.encode(STRUCT_ID.QryInvestorProdSPBMDetail, req as Record<string, unknown>), id), false);
657
+ return this.request((id) => this.native._req(96, this.encode(STRUCT_ID.QryInvestorProdSPBMDetail, req as Record<string, unknown>), id), false);
607
658
  }
608
659
  reqQryInvestorCommoditySpmmMargin(req: Partial<S.QryInvestorCommoditySPMMMargin> = {}): Promise<unknown[]> {
609
- return this.request((id) => this.native._req(96, this.encode(STRUCT_ID.QryInvestorCommoditySPMMMargin, req as Record<string, unknown>), id), false);
660
+ return this.request((id) => this.native._req(97, this.encode(STRUCT_ID.QryInvestorCommoditySPMMMargin, req as Record<string, unknown>), id), false);
610
661
  }
611
662
  reqQryInvestorCommodityGroupSpmmMargin(req: Partial<S.QryInvestorCommodityGroupSPMMMargin> = {}): Promise<unknown[]> {
612
- return this.request((id) => this.native._req(97, this.encode(STRUCT_ID.QryInvestorCommodityGroupSPMMMargin, req as Record<string, unknown>), id), false);
663
+ return this.request((id) => this.native._req(98, this.encode(STRUCT_ID.QryInvestorCommodityGroupSPMMMargin, req as Record<string, unknown>), id), false);
613
664
  }
614
665
  reqQrySpmmInstParam(req: Partial<S.QrySPMMInstParam> = {}): Promise<unknown[]> {
615
- return this.request((id) => this.native._req(98, this.encode(STRUCT_ID.QrySPMMInstParam, req as Record<string, unknown>), id), false);
666
+ return this.request((id) => this.native._req(99, this.encode(STRUCT_ID.QrySPMMInstParam, req as Record<string, unknown>), id), false);
616
667
  }
617
668
  reqQrySpmmProductParam(req: Partial<S.QrySPMMProductParam> = {}): Promise<unknown[]> {
618
- return this.request((id) => this.native._req(99, this.encode(STRUCT_ID.QrySPMMProductParam, req as Record<string, unknown>), id), false);
669
+ return this.request((id) => this.native._req(100, this.encode(STRUCT_ID.QrySPMMProductParam, req as Record<string, unknown>), id), false);
619
670
  }
620
671
  reqQrySpbmAddOnInterParameter(req: Partial<S.QrySPBMAddOnInterParameter> = {}): Promise<unknown[]> {
621
- return this.request((id) => this.native._req(100, this.encode(STRUCT_ID.QrySPBMAddOnInterParameter, req as Record<string, unknown>), id), false);
672
+ return this.request((id) => this.native._req(101, this.encode(STRUCT_ID.QrySPBMAddOnInterParameter, req as Record<string, unknown>), id), false);
622
673
  }
623
674
  reqQryRcamsCombProductInfo(req: Partial<S.QryRCAMSCombProductInfo> = {}): Promise<unknown[]> {
624
- return this.request((id) => this.native._req(101, this.encode(STRUCT_ID.QryRCAMSCombProductInfo, req as Record<string, unknown>), id), false);
675
+ return this.request((id) => this.native._req(102, this.encode(STRUCT_ID.QryRCAMSCombProductInfo, req as Record<string, unknown>), id), false);
625
676
  }
626
677
  reqQryRcamsInstrParameter(req: Partial<S.QryRCAMSInstrParameter> = {}): Promise<unknown[]> {
627
- return this.request((id) => this.native._req(102, this.encode(STRUCT_ID.QryRCAMSInstrParameter, req as Record<string, unknown>), id), false);
678
+ return this.request((id) => this.native._req(103, this.encode(STRUCT_ID.QryRCAMSInstrParameter, req as Record<string, unknown>), id), false);
628
679
  }
629
680
  reqQryRcamsIntraParameter(req: Partial<S.QryRCAMSIntraParameter> = {}): Promise<unknown[]> {
630
- return this.request((id) => this.native._req(103, this.encode(STRUCT_ID.QryRCAMSIntraParameter, req as Record<string, unknown>), id), false);
681
+ return this.request((id) => this.native._req(104, this.encode(STRUCT_ID.QryRCAMSIntraParameter, req as Record<string, unknown>), id), false);
631
682
  }
632
683
  reqQryRcamsInterParameter(req: Partial<S.QryRCAMSInterParameter> = {}): Promise<unknown[]> {
633
- return this.request((id) => this.native._req(104, this.encode(STRUCT_ID.QryRCAMSInterParameter, req as Record<string, unknown>), id), false);
684
+ return this.request((id) => this.native._req(105, this.encode(STRUCT_ID.QryRCAMSInterParameter, req as Record<string, unknown>), id), false);
634
685
  }
635
686
  reqQryRcamsShortOptAdjustParam(req: Partial<S.QryRCAMSShortOptAdjustParam> = {}): Promise<unknown[]> {
636
- return this.request((id) => this.native._req(105, this.encode(STRUCT_ID.QryRCAMSShortOptAdjustParam, req as Record<string, unknown>), id), false);
687
+ return this.request((id) => this.native._req(106, this.encode(STRUCT_ID.QryRCAMSShortOptAdjustParam, req as Record<string, unknown>), id), false);
637
688
  }
638
689
  reqQryRcamsInvestorCombPosition(req: Partial<S.QryRCAMSInvestorCombPosition> = {}): Promise<unknown[]> {
639
- return this.request((id) => this.native._req(106, this.encode(STRUCT_ID.QryRCAMSInvestorCombPosition, req as Record<string, unknown>), id), false);
690
+ return this.request((id) => this.native._req(107, this.encode(STRUCT_ID.QryRCAMSInvestorCombPosition, req as Record<string, unknown>), id), false);
640
691
  }
641
692
  reqQryInvestorProdRcamsMargin(req: Partial<S.QryInvestorProdRCAMSMargin> = {}): Promise<unknown[]> {
642
- return this.request((id) => this.native._req(107, this.encode(STRUCT_ID.QryInvestorProdRCAMSMargin, req as Record<string, unknown>), id), false);
693
+ return this.request((id) => this.native._req(108, this.encode(STRUCT_ID.QryInvestorProdRCAMSMargin, req as Record<string, unknown>), id), false);
643
694
  }
644
695
  reqQryRuleInstrParameter(req: Partial<S.QryRULEInstrParameter> = {}): Promise<unknown[]> {
645
- return this.request((id) => this.native._req(108, this.encode(STRUCT_ID.QryRULEInstrParameter, req as Record<string, unknown>), id), false);
696
+ return this.request((id) => this.native._req(109, this.encode(STRUCT_ID.QryRULEInstrParameter, req as Record<string, unknown>), id), false);
646
697
  }
647
698
  reqQryRuleIntraParameter(req: Partial<S.QryRULEIntraParameter> = {}): Promise<unknown[]> {
648
- return this.request((id) => this.native._req(109, this.encode(STRUCT_ID.QryRULEIntraParameter, req as Record<string, unknown>), id), false);
699
+ return this.request((id) => this.native._req(110, this.encode(STRUCT_ID.QryRULEIntraParameter, req as Record<string, unknown>), id), false);
649
700
  }
650
701
  reqQryRuleInterParameter(req: Partial<S.QryRULEInterParameter> = {}): Promise<unknown[]> {
651
- return this.request((id) => this.native._req(110, this.encode(STRUCT_ID.QryRULEInterParameter, req as Record<string, unknown>), id), false);
702
+ return this.request((id) => this.native._req(111, this.encode(STRUCT_ID.QryRULEInterParameter, req as Record<string, unknown>), id), false);
652
703
  }
653
704
  reqQryInvestorProdRuleMargin(req: Partial<S.QryInvestorProdRULEMargin> = {}): Promise<unknown[]> {
654
- return this.request((id) => this.native._req(111, this.encode(STRUCT_ID.QryInvestorProdRULEMargin, req as Record<string, unknown>), id), false);
705
+ return this.request((id) => this.native._req(112, this.encode(STRUCT_ID.QryInvestorProdRULEMargin, req as Record<string, unknown>), id), false);
706
+ }
707
+ reqQryInvestorPortfSetting(req: Partial<S.QryInvestorPortfSetting> = {}): Promise<unknown[]> {
708
+ return this.request((id) => this.native._req(113, this.encode(STRUCT_ID.QryInvestorPortfSetting, req as Record<string, unknown>), id), false);
709
+ }
710
+ reqQryInvestorInfoCommRec(req: Partial<S.QryInvestorInfoCommRec> = {}): Promise<unknown[]> {
711
+ return this.request((id) => this.native._req(114, this.encode(STRUCT_ID.QryInvestorInfoCommRec, req as Record<string, unknown>), id), false);
712
+ }
713
+ reqQryCombLeg(req: Partial<S.QryCombLeg> = {}): Promise<unknown[]> {
714
+ return this.request((id) => this.native._req(115, this.encode(STRUCT_ID.QryCombLeg, req as Record<string, unknown>), id), false);
715
+ }
716
+ reqOffsetSetting(req: Partial<S.InputOffsetSetting> = {}): Promise<unknown> {
717
+ return this.request((id) => this.native._req(116, this.encode(STRUCT_ID.InputOffsetSetting, req as Record<string, unknown>), id), true);
718
+ }
719
+ reqCancelOffsetSetting(req: Partial<S.InputOffsetSetting> = {}): Promise<unknown> {
720
+ return this.request((id) => this.native._req(117, this.encode(STRUCT_ID.InputOffsetSetting, req as Record<string, unknown>), id), true);
721
+ }
722
+ reqQryOffsetSetting(req: Partial<S.QryOffsetSetting> = {}): Promise<unknown[]> {
723
+ return this.request((id) => this.native._req(118, this.encode(STRUCT_ID.QryOffsetSetting, req as Record<string, unknown>), id), false);
724
+ }
725
+ reqGenSmsCode(req: Partial<S.ReqGenSMSCode> = {}): Promise<unknown> {
726
+ return this.request((id) => this.native._req(119, this.encode(STRUCT_ID.ReqGenSMSCode, req as Record<string, unknown>), id), true);
727
+ }
728
+ reqSpdApply(req: Partial<S.InputSpdApply> = {}): Promise<unknown> {
729
+ return this.request((id) => this.native._req(120, this.encode(STRUCT_ID.InputSpdApply, req as Record<string, unknown>), id), true);
730
+ }
731
+ reqSpdApplyAction(req: Partial<S.InputSpdApplyAction> = {}): Promise<unknown> {
732
+ return this.request((id) => this.native._req(121, this.encode(STRUCT_ID.InputSpdApplyAction, req as Record<string, unknown>), id), true);
733
+ }
734
+ reqQrySpdApply(req: Partial<S.QrySpdApply> = {}): Promise<unknown[]> {
735
+ return this.request((id) => this.native._req(122, this.encode(STRUCT_ID.QrySpdApply, req as Record<string, unknown>), id), false);
736
+ }
737
+ reqHedgeCfm(req: Partial<S.InputHedgeCfm> = {}): Promise<unknown> {
738
+ return this.request((id) => this.native._req(123, this.encode(STRUCT_ID.InputHedgeCfm, req as Record<string, unknown>), id), true);
739
+ }
740
+ reqHedgeCfmAction(req: Partial<S.InputHedgeCfmAction> = {}): Promise<unknown> {
741
+ return this.request((id) => this.native._req(124, this.encode(STRUCT_ID.InputHedgeCfmAction, req as Record<string, unknown>), id), true);
742
+ }
743
+ reqQryHedgeCfm(req: Partial<S.QryHedgeCfm> = {}): Promise<unknown[]> {
744
+ return this.request((id) => this.native._req(125, this.encode(STRUCT_ID.QryHedgeCfm, req as Record<string, unknown>), id), false);
655
745
  }
656
746
  }