@hitrading/ctp-node 1.1.0 → 1.2.0

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