@hitrading/ctp-node 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (102) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +208 -0
  3. package/README.zh-CN.md +185 -0
  4. package/binding.gyp +90 -0
  5. package/dist/client.d.ts +115 -0
  6. package/dist/client.d.ts.map +1 -0
  7. package/dist/client.js +466 -0
  8. package/dist/client.js.map +1 -0
  9. package/dist/codec.d.ts +29 -0
  10. package/dist/codec.d.ts.map +1 -0
  11. package/dist/codec.js +131 -0
  12. package/dist/codec.js.map +1 -0
  13. package/dist/generated/enums.gen.d.ts +2257 -0
  14. package/dist/generated/enums.gen.d.ts.map +1 -0
  15. package/dist/generated/enums.gen.js +2576 -0
  16. package/dist/generated/enums.gen.js.map +1 -0
  17. package/dist/generated/structs.gen.d.ts +11041 -0
  18. package/dist/generated/structs.gen.d.ts.map +1 -0
  19. package/dist/generated/structs.gen.js +939 -0
  20. package/dist/generated/structs.gen.js.map +1 -0
  21. package/dist/generated/trader.gen.d.ts +273 -0
  22. package/dist/generated/trader.gen.d.ts.map +1 -0
  23. package/dist/generated/trader.gen.js +653 -0
  24. package/dist/generated/trader.gen.js.map +1 -0
  25. package/dist/index.d.ts +9 -0
  26. package/dist/index.d.ts.map +1 -0
  27. package/dist/index.js +9 -0
  28. package/dist/index.js.map +1 -0
  29. package/dist/market-data.d.ts +66 -0
  30. package/dist/market-data.d.ts.map +1 -0
  31. package/dist/market-data.js +105 -0
  32. package/dist/market-data.js.map +1 -0
  33. package/dist/native-binding.d.ts +2 -0
  34. package/dist/native-binding.d.ts.map +1 -0
  35. package/dist/native-binding.js +22 -0
  36. package/dist/native-binding.js.map +1 -0
  37. package/dist/trader.d.ts +234 -0
  38. package/dist/trader.d.ts.map +1 -0
  39. package/dist/trader.js +388 -0
  40. package/dist/trader.js.map +1 -0
  41. package/package.json +69 -0
  42. package/prebuilds/linux-x64/@hitrading+ctp-node.node +0 -0
  43. package/prebuilds/linux-x64/thostmduserapi_se.so +0 -0
  44. package/prebuilds/linux-x64/thosttraderapi_se.so +0 -0
  45. package/prebuilds/win32-x64/@hitrading+ctp-node.node +0 -0
  46. package/prebuilds/win32-x64/thostmduserapi_se.dll +0 -0
  47. package/prebuilds/win32-x64/thosttraderapi_se.dll +0 -0
  48. package/src/addon.cc +171 -0
  49. package/src/client.ts +539 -0
  50. package/src/codec.ts +160 -0
  51. package/src/generated/enums.gen.ts +2576 -0
  52. package/src/generated/layout.gen.cc +5771 -0
  53. package/src/generated/layout.gen.h +8 -0
  54. package/src/generated/structids.gen.h +470 -0
  55. package/src/generated/structs.gen.ts +12437 -0
  56. package/src/generated/trader.gen.ts +656 -0
  57. package/src/generated/traderreq.gen.cc +706 -0
  58. package/src/generated/traderreq.gen.h +127 -0
  59. package/src/generated/traderspi.gen.cc +636 -0
  60. package/src/generated/traderspi.gen.h +334 -0
  61. package/src/index.ts +14 -0
  62. package/src/market-data.ts +145 -0
  63. package/src/native/arm.cc +77 -0
  64. package/src/native/arm.h +71 -0
  65. package/src/native/channel.cc +175 -0
  66. package/src/native/channel.h +117 -0
  67. package/src/native/gbk.cc +54 -0
  68. package/src/native/gbk.h +17 -0
  69. package/src/native/mdapi.cc +412 -0
  70. package/src/native/mdapi.h +14 -0
  71. package/src/native/mdspi.cc +103 -0
  72. package/src/native/mdspi.h +81 -0
  73. package/src/native/risk.cc +461 -0
  74. package/src/native/risk.h +183 -0
  75. package/src/native/traderapi.cc +533 -0
  76. package/src/native/traderapi.h +14 -0
  77. package/src/native-binding.ts +25 -0
  78. package/src/trader.ts +522 -0
  79. package/tradeapi/ThostFtdcMdApi.h +168 -0
  80. package/tradeapi/ThostFtdcTraderApi.h +914 -0
  81. package/tradeapi/ThostFtdcUserApiDataType.h +7068 -0
  82. package/tradeapi/ThostFtdcUserApiStruct.h +12386 -0
  83. package/tradeapi/error.dtd +9 -0
  84. package/tradeapi/error.xml +284 -0
  85. package/tradeapi/linux/thostmduserapi_se.so +0 -0
  86. package/tradeapi/linux/thosttraderapi_se.so +0 -0
  87. package/tradeapi/macos/thostmduserapi_se.framework/Versions/A/Headers/ThostFtdcMdApi.h +168 -0
  88. package/tradeapi/macos/thostmduserapi_se.framework/Versions/A/Headers/ThostFtdcUserApiDataType.h +7068 -0
  89. package/tradeapi/macos/thostmduserapi_se.framework/Versions/A/Headers/ThostFtdcUserApiStruct.h +12386 -0
  90. package/tradeapi/macos/thostmduserapi_se.framework/Versions/A/Resources/Info.plist +46 -0
  91. package/tradeapi/macos/thostmduserapi_se.framework/Versions/A/_CodeSignature/CodeResources +149 -0
  92. package/tradeapi/macos/thostmduserapi_se.framework/Versions/A/thostmduserapi_se +0 -0
  93. package/tradeapi/macos/thosttraderapi_se.framework/Versions/A/Headers/ThostFtdcTraderApi.h +914 -0
  94. package/tradeapi/macos/thosttraderapi_se.framework/Versions/A/Headers/ThostFtdcUserApiDataType.h +7068 -0
  95. package/tradeapi/macos/thosttraderapi_se.framework/Versions/A/Headers/ThostFtdcUserApiStruct.h +12386 -0
  96. package/tradeapi/macos/thosttraderapi_se.framework/Versions/A/Resources/Info.plist +46 -0
  97. package/tradeapi/macos/thosttraderapi_se.framework/Versions/A/_CodeSignature/CodeResources +149 -0
  98. package/tradeapi/macos/thosttraderapi_se.framework/Versions/A/thosttraderapi_se +0 -0
  99. package/tradeapi/windows/thostmduserapi_se.dll +0 -0
  100. package/tradeapi/windows/thostmduserapi_se.lib +0 -0
  101. package/tradeapi/windows/thosttraderapi_se.dll +0 -0
  102. package/tradeapi/windows/thosttraderapi_se.lib +0 -0
@@ -0,0 +1,653 @@
1
+ /* AUTO-GENERATED by scripts/codegen/generate-trader.mjs. Do not edit. */
2
+ import { CtpClient } from "../client.js";
3
+ import { STRUCT_ID } from "./structs.gen.js";
4
+ export var TraderEvent;
5
+ (function (TraderEvent) {
6
+ TraderEvent["FrontConnected"] = "front-connected";
7
+ TraderEvent["FrontDisconnected"] = "front-disconnected";
8
+ TraderEvent["HeartBeatWarning"] = "heart-beat-warning";
9
+ TraderEvent["RspAuthenticate"] = "rsp-authenticate";
10
+ TraderEvent["RspUserLogin"] = "rsp-user-login";
11
+ TraderEvent["RspUserLogout"] = "rsp-user-logout";
12
+ TraderEvent["RspUserPasswordUpdate"] = "rsp-user-password-update";
13
+ TraderEvent["RspTradingAccountPasswordUpdate"] = "rsp-trading-account-password-update";
14
+ TraderEvent["RspUserAuthMethod"] = "rsp-user-auth-method";
15
+ TraderEvent["RspGenUserCaptcha"] = "rsp-gen-user-captcha";
16
+ TraderEvent["RspGenUserText"] = "rsp-gen-user-text";
17
+ TraderEvent["RspOrderInsert"] = "rsp-order-insert";
18
+ TraderEvent["RspParkedOrderInsert"] = "rsp-parked-order-insert";
19
+ TraderEvent["RspParkedOrderAction"] = "rsp-parked-order-action";
20
+ TraderEvent["RspOrderAction"] = "rsp-order-action";
21
+ TraderEvent["RspQryMaxOrderVolume"] = "rsp-qry-max-order-volume";
22
+ TraderEvent["RspSettlementInfoConfirm"] = "rsp-settlement-info-confirm";
23
+ TraderEvent["RspRemoveParkedOrder"] = "rsp-remove-parked-order";
24
+ TraderEvent["RspRemoveParkedOrderAction"] = "rsp-remove-parked-order-action";
25
+ TraderEvent["RspExecOrderInsert"] = "rsp-exec-order-insert";
26
+ TraderEvent["RspExecOrderAction"] = "rsp-exec-order-action";
27
+ TraderEvent["RspForQuoteInsert"] = "rsp-for-quote-insert";
28
+ TraderEvent["RspQuoteInsert"] = "rsp-quote-insert";
29
+ TraderEvent["RspQuoteAction"] = "rsp-quote-action";
30
+ TraderEvent["RspBatchOrderAction"] = "rsp-batch-order-action";
31
+ TraderEvent["RspOptionSelfCloseInsert"] = "rsp-option-self-close-insert";
32
+ TraderEvent["RspOptionSelfCloseAction"] = "rsp-option-self-close-action";
33
+ TraderEvent["RspCombActionInsert"] = "rsp-comb-action-insert";
34
+ TraderEvent["RspQryOrder"] = "rsp-qry-order";
35
+ TraderEvent["RspQryTrade"] = "rsp-qry-trade";
36
+ TraderEvent["RspQryInvestorPosition"] = "rsp-qry-investor-position";
37
+ TraderEvent["RspQryTradingAccount"] = "rsp-qry-trading-account";
38
+ TraderEvent["RspQryInvestor"] = "rsp-qry-investor";
39
+ TraderEvent["RspQryTradingCode"] = "rsp-qry-trading-code";
40
+ TraderEvent["RspQryInstrumentMarginRate"] = "rsp-qry-instrument-margin-rate";
41
+ TraderEvent["RspQryInstrumentCommissionRate"] = "rsp-qry-instrument-commission-rate";
42
+ TraderEvent["RspQryExchange"] = "rsp-qry-exchange";
43
+ TraderEvent["RspQryProduct"] = "rsp-qry-product";
44
+ TraderEvent["RspQryInstrument"] = "rsp-qry-instrument";
45
+ TraderEvent["RspQryDepthMarketData"] = "rsp-qry-depth-market-data";
46
+ TraderEvent["RspQryTraderOffer"] = "rsp-qry-trader-offer";
47
+ TraderEvent["RspQrySettlementInfo"] = "rsp-qry-settlement-info";
48
+ TraderEvent["RspQryTransferBank"] = "rsp-qry-transfer-bank";
49
+ TraderEvent["RspQryInvestorPositionDetail"] = "rsp-qry-investor-position-detail";
50
+ TraderEvent["RspQryNotice"] = "rsp-qry-notice";
51
+ TraderEvent["RspQrySettlementInfoConfirm"] = "rsp-qry-settlement-info-confirm";
52
+ TraderEvent["RspQryInvestorPositionCombineDetail"] = "rsp-qry-investor-position-combine-detail";
53
+ TraderEvent["RspQryCFMMCTradingAccountKey"] = "rsp-qry-cfmmc-trading-account-key";
54
+ TraderEvent["RspQryEWarrantOffset"] = "rsp-qry-e-warrant-offset";
55
+ TraderEvent["RspQryInvestorProductGroupMargin"] = "rsp-qry-investor-product-group-margin";
56
+ TraderEvent["RspQryExchangeMarginRate"] = "rsp-qry-exchange-margin-rate";
57
+ TraderEvent["RspQryExchangeMarginRateAdjust"] = "rsp-qry-exchange-margin-rate-adjust";
58
+ TraderEvent["RspQryExchangeRate"] = "rsp-qry-exchange-rate";
59
+ TraderEvent["RspQrySecAgentACIDMap"] = "rsp-qry-sec-agent-acid-map";
60
+ TraderEvent["RspQryProductExchRate"] = "rsp-qry-product-exch-rate";
61
+ TraderEvent["RspQryProductGroup"] = "rsp-qry-product-group";
62
+ TraderEvent["RspQryMMInstrumentCommissionRate"] = "rsp-qry-mm-instrument-commission-rate";
63
+ TraderEvent["RspQryMMOptionInstrCommRate"] = "rsp-qry-mm-option-instr-comm-rate";
64
+ TraderEvent["RspQryInstrumentOrderCommRate"] = "rsp-qry-instrument-order-comm-rate";
65
+ TraderEvent["RspQrySecAgentTradingAccount"] = "rsp-qry-sec-agent-trading-account";
66
+ TraderEvent["RspQrySecAgentCheckMode"] = "rsp-qry-sec-agent-check-mode";
67
+ TraderEvent["RspQrySecAgentTradeInfo"] = "rsp-qry-sec-agent-trade-info";
68
+ TraderEvent["RspQryOptionInstrTradeCost"] = "rsp-qry-option-instr-trade-cost";
69
+ TraderEvent["RspQryOptionInstrCommRate"] = "rsp-qry-option-instr-comm-rate";
70
+ TraderEvent["RspQryExecOrder"] = "rsp-qry-exec-order";
71
+ TraderEvent["RspQryForQuote"] = "rsp-qry-for-quote";
72
+ TraderEvent["RspQryQuote"] = "rsp-qry-quote";
73
+ TraderEvent["RspQryOptionSelfClose"] = "rsp-qry-option-self-close";
74
+ TraderEvent["RspQryInvestUnit"] = "rsp-qry-invest-unit";
75
+ TraderEvent["RspQryCombInstrumentGuard"] = "rsp-qry-comb-instrument-guard";
76
+ TraderEvent["RspQryCombAction"] = "rsp-qry-comb-action";
77
+ TraderEvent["RspQryTransferSerial"] = "rsp-qry-transfer-serial";
78
+ TraderEvent["RspQryAccountregister"] = "rsp-qry-accountregister";
79
+ TraderEvent["RspError"] = "rsp-error";
80
+ TraderEvent["RtnOrder"] = "rtn-order";
81
+ TraderEvent["RtnTrade"] = "rtn-trade";
82
+ TraderEvent["ErrRtnOrderInsert"] = "err-rtn-order-insert";
83
+ TraderEvent["ErrRtnOrderAction"] = "err-rtn-order-action";
84
+ TraderEvent["RtnInstrumentStatus"] = "rtn-instrument-status";
85
+ TraderEvent["RtnBulletin"] = "rtn-bulletin";
86
+ TraderEvent["RtnTradingNotice"] = "rtn-trading-notice";
87
+ TraderEvent["RtnErrorConditionalOrder"] = "rtn-error-conditional-order";
88
+ TraderEvent["RtnExecOrder"] = "rtn-exec-order";
89
+ TraderEvent["ErrRtnExecOrderInsert"] = "err-rtn-exec-order-insert";
90
+ TraderEvent["ErrRtnExecOrderAction"] = "err-rtn-exec-order-action";
91
+ TraderEvent["ErrRtnForQuoteInsert"] = "err-rtn-for-quote-insert";
92
+ TraderEvent["RtnQuote"] = "rtn-quote";
93
+ TraderEvent["ErrRtnQuoteInsert"] = "err-rtn-quote-insert";
94
+ TraderEvent["ErrRtnQuoteAction"] = "err-rtn-quote-action";
95
+ TraderEvent["RtnForQuoteRsp"] = "rtn-for-quote-rsp";
96
+ TraderEvent["RtnCFMMCTradingAccountToken"] = "rtn-cfmmc-trading-account-token";
97
+ TraderEvent["ErrRtnBatchOrderAction"] = "err-rtn-batch-order-action";
98
+ TraderEvent["RtnOptionSelfClose"] = "rtn-option-self-close";
99
+ TraderEvent["ErrRtnOptionSelfCloseInsert"] = "err-rtn-option-self-close-insert";
100
+ TraderEvent["ErrRtnOptionSelfCloseAction"] = "err-rtn-option-self-close-action";
101
+ TraderEvent["RtnCombAction"] = "rtn-comb-action";
102
+ TraderEvent["ErrRtnCombActionInsert"] = "err-rtn-comb-action-insert";
103
+ TraderEvent["RspQryContractBank"] = "rsp-qry-contract-bank";
104
+ TraderEvent["RspQryParkedOrder"] = "rsp-qry-parked-order";
105
+ TraderEvent["RspQryParkedOrderAction"] = "rsp-qry-parked-order-action";
106
+ TraderEvent["RspQryTradingNotice"] = "rsp-qry-trading-notice";
107
+ TraderEvent["RspQryBrokerTradingParams"] = "rsp-qry-broker-trading-params";
108
+ TraderEvent["RspQryBrokerTradingAlgos"] = "rsp-qry-broker-trading-algos";
109
+ TraderEvent["RspQueryCFMMCTradingAccountToken"] = "rsp-query-cfmmc-trading-account-token";
110
+ TraderEvent["RtnFromBankToFutureByBank"] = "rtn-from-bank-to-future-by-bank";
111
+ TraderEvent["RtnFromFutureToBankByBank"] = "rtn-from-future-to-bank-by-bank";
112
+ TraderEvent["RtnRepealFromBankToFutureByBank"] = "rtn-repeal-from-bank-to-future-by-bank";
113
+ TraderEvent["RtnRepealFromFutureToBankByBank"] = "rtn-repeal-from-future-to-bank-by-bank";
114
+ TraderEvent["RtnFromBankToFutureByFuture"] = "rtn-from-bank-to-future-by-future";
115
+ TraderEvent["RtnFromFutureToBankByFuture"] = "rtn-from-future-to-bank-by-future";
116
+ TraderEvent["RtnRepealFromBankToFutureByFutureManual"] = "rtn-repeal-from-bank-to-future-by-future-manual";
117
+ TraderEvent["RtnRepealFromFutureToBankByFutureManual"] = "rtn-repeal-from-future-to-bank-by-future-manual";
118
+ TraderEvent["RtnQueryBankBalanceByFuture"] = "rtn-query-bank-balance-by-future";
119
+ TraderEvent["ErrRtnBankToFutureByFuture"] = "err-rtn-bank-to-future-by-future";
120
+ TraderEvent["ErrRtnFutureToBankByFuture"] = "err-rtn-future-to-bank-by-future";
121
+ TraderEvent["ErrRtnRepealBankToFutureByFutureManual"] = "err-rtn-repeal-bank-to-future-by-future-manual";
122
+ TraderEvent["ErrRtnRepealFutureToBankByFutureManual"] = "err-rtn-repeal-future-to-bank-by-future-manual";
123
+ TraderEvent["ErrRtnQueryBankBalanceByFuture"] = "err-rtn-query-bank-balance-by-future";
124
+ TraderEvent["RtnRepealFromBankToFutureByFuture"] = "rtn-repeal-from-bank-to-future-by-future";
125
+ TraderEvent["RtnRepealFromFutureToBankByFuture"] = "rtn-repeal-from-future-to-bank-by-future";
126
+ TraderEvent["RspFromBankToFutureByFuture"] = "rsp-from-bank-to-future-by-future";
127
+ TraderEvent["RspFromFutureToBankByFuture"] = "rsp-from-future-to-bank-by-future";
128
+ TraderEvent["RspQueryBankAccountMoneyByFuture"] = "rsp-query-bank-account-money-by-future";
129
+ TraderEvent["RtnOpenAccountByBank"] = "rtn-open-account-by-bank";
130
+ TraderEvent["RtnCancelAccountByBank"] = "rtn-cancel-account-by-bank";
131
+ TraderEvent["RtnChangeAccountByBank"] = "rtn-change-account-by-bank";
132
+ TraderEvent["RspQryClassifiedInstrument"] = "rsp-qry-classified-instrument";
133
+ TraderEvent["RspQryCombPromotionParam"] = "rsp-qry-comb-promotion-param";
134
+ TraderEvent["RspQryRiskSettleInvstPosition"] = "rsp-qry-risk-settle-invst-position";
135
+ TraderEvent["RspQryRiskSettleProductStatus"] = "rsp-qry-risk-settle-product-status";
136
+ TraderEvent["RspQrySPBMFutureParameter"] = "rsp-qry-spbm-future-parameter";
137
+ TraderEvent["RspQrySPBMOptionParameter"] = "rsp-qry-spbm-option-parameter";
138
+ TraderEvent["RspQrySPBMIntraParameter"] = "rsp-qry-spbm-intra-parameter";
139
+ TraderEvent["RspQrySPBMInterParameter"] = "rsp-qry-spbm-inter-parameter";
140
+ TraderEvent["RspQrySPBMPortfDefinition"] = "rsp-qry-spbm-portf-definition";
141
+ TraderEvent["RspQrySPBMInvestorPortfDef"] = "rsp-qry-spbm-investor-portf-def";
142
+ TraderEvent["RspQryInvestorPortfMarginRatio"] = "rsp-qry-investor-portf-margin-ratio";
143
+ TraderEvent["RspQryInvestorProdSPBMDetail"] = "rsp-qry-investor-prod-spbm-detail";
144
+ TraderEvent["RspQryInvestorCommoditySPMMMargin"] = "rsp-qry-investor-commodity-spmm-margin";
145
+ TraderEvent["RspQryInvestorCommodityGroupSPMMMargin"] = "rsp-qry-investor-commodity-group-spmm-margin";
146
+ TraderEvent["RspQrySPMMInstParam"] = "rsp-qry-spmm-inst-param";
147
+ TraderEvent["RspQrySPMMProductParam"] = "rsp-qry-spmm-product-param";
148
+ TraderEvent["RspQrySPBMAddOnInterParameter"] = "rsp-qry-spbm-add-on-inter-parameter";
149
+ TraderEvent["RspQryRCAMSCombProductInfo"] = "rsp-qry-rcams-comb-product-info";
150
+ TraderEvent["RspQryRCAMSInstrParameter"] = "rsp-qry-rcams-instr-parameter";
151
+ TraderEvent["RspQryRCAMSIntraParameter"] = "rsp-qry-rcams-intra-parameter";
152
+ TraderEvent["RspQryRCAMSInterParameter"] = "rsp-qry-rcams-inter-parameter";
153
+ TraderEvent["RspQryRCAMSShortOptAdjustParam"] = "rsp-qry-rcams-short-opt-adjust-param";
154
+ TraderEvent["RspQryRCAMSInvestorCombPosition"] = "rsp-qry-rcams-investor-comb-position";
155
+ TraderEvent["RspQryInvestorProdRCAMSMargin"] = "rsp-qry-investor-prod-rcams-margin";
156
+ TraderEvent["RspQryRULEInstrParameter"] = "rsp-qry-rule-instr-parameter";
157
+ TraderEvent["RspQryRULEIntraParameter"] = "rsp-qry-rule-intra-parameter";
158
+ TraderEvent["RspQryRULEInterParameter"] = "rsp-qry-rule-inter-parameter";
159
+ TraderEvent["RspQryInvestorProdRULEMargin"] = "rsp-qry-investor-prod-rule-margin";
160
+ })(TraderEvent || (TraderEvent = {}));
161
+ export const TRADER_EVENTS = new Map([
162
+ [8192 + 1, "front-connected"],
163
+ [8192 + 2, "front-disconnected"],
164
+ [8192 + 3, "heart-beat-warning"],
165
+ [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"],
316
+ ]);
317
+ /* eslint-disable @typescript-eslint/no-explicit-any */
318
+ export class TraderBase extends CtpClient {
319
+ reqAuthenticate(req = {}) {
320
+ return this.request((id) => this.native._req(1, this.encode(STRUCT_ID.ReqAuthenticate, req), id), true);
321
+ }
322
+ reqUserLogin(req = {}) {
323
+ return this.request((id) => this.native._req(2, this.encode(STRUCT_ID.ReqUserLogin, req), id), true);
324
+ }
325
+ reqUserLogout(req = {}) {
326
+ return this.request((id) => this.native._req(3, this.encode(STRUCT_ID.UserLogout, req), id), true);
327
+ }
328
+ reqUserPasswordUpdate(req = {}) {
329
+ return this.request((id) => this.native._req(4, this.encode(STRUCT_ID.UserPasswordUpdate, req), id), true);
330
+ }
331
+ reqTradingAccountPasswordUpdate(req = {}) {
332
+ return this.request((id) => this.native._req(5, this.encode(STRUCT_ID.TradingAccountPasswordUpdate, req), id), true);
333
+ }
334
+ reqUserAuthMethod(req = {}) {
335
+ return this.request((id) => this.native._req(6, this.encode(STRUCT_ID.ReqUserAuthMethod, req), id), true);
336
+ }
337
+ reqGenUserCaptcha(req = {}) {
338
+ return this.request((id) => this.native._req(7, this.encode(STRUCT_ID.ReqGenUserCaptcha, req), id), true);
339
+ }
340
+ reqGenUserText(req = {}) {
341
+ return this.request((id) => this.native._req(8, this.encode(STRUCT_ID.ReqGenUserText, req), id), true);
342
+ }
343
+ reqUserLoginWithCaptcha(req = {}) {
344
+ return this.request((id) => this.native._req(9, this.encode(STRUCT_ID.ReqUserLoginWithCaptcha, req), id), true);
345
+ }
346
+ reqUserLoginWithText(req = {}) {
347
+ return this.request((id) => this.native._req(10, this.encode(STRUCT_ID.ReqUserLoginWithText, req), id), true);
348
+ }
349
+ reqUserLoginWithOtp(req = {}) {
350
+ return this.request((id) => this.native._req(11, this.encode(STRUCT_ID.ReqUserLoginWithOTP, req), id), true);
351
+ }
352
+ reqOrderInsert(req = {}) {
353
+ return this.submit((id) => this.native._req(12, this.encode(STRUCT_ID.InputOrder, req), id));
354
+ }
355
+ reqParkedOrderInsert(req = {}) {
356
+ return this.request((id) => this.native._req(13, this.encode(STRUCT_ID.ParkedOrder, req), id), true);
357
+ }
358
+ reqParkedOrderAction(req = {}) {
359
+ return this.request((id) => this.native._req(14, this.encode(STRUCT_ID.ParkedOrderAction, req), id), true);
360
+ }
361
+ reqOrderAction(req = {}) {
362
+ return this.submit((id) => this.native._req(15, this.encode(STRUCT_ID.InputOrderAction, req), id));
363
+ }
364
+ reqQryMaxOrderVolume(req = {}) {
365
+ return this.request((id) => this.native._req(16, this.encode(STRUCT_ID.QryMaxOrderVolume, req), id), false);
366
+ }
367
+ reqSettlementInfoConfirm(req = {}) {
368
+ return this.request((id) => this.native._req(17, this.encode(STRUCT_ID.SettlementInfoConfirm, req), id), true);
369
+ }
370
+ reqRemoveParkedOrder(req = {}) {
371
+ return this.request((id) => this.native._req(18, this.encode(STRUCT_ID.RemoveParkedOrder, req), id), true);
372
+ }
373
+ reqRemoveParkedOrderAction(req = {}) {
374
+ return this.request((id) => this.native._req(19, this.encode(STRUCT_ID.RemoveParkedOrderAction, req), id), true);
375
+ }
376
+ reqExecOrderInsert(req = {}) {
377
+ return this.submit((id) => this.native._req(20, this.encode(STRUCT_ID.InputExecOrder, req), id));
378
+ }
379
+ reqExecOrderAction(req = {}) {
380
+ return this.submit((id) => this.native._req(21, this.encode(STRUCT_ID.InputExecOrderAction, req), id));
381
+ }
382
+ reqForQuoteInsert(req = {}) {
383
+ return this.submit((id) => this.native._req(22, this.encode(STRUCT_ID.InputForQuote, req), id));
384
+ }
385
+ reqQuoteInsert(req = {}) {
386
+ return this.submit((id) => this.native._req(23, this.encode(STRUCT_ID.InputQuote, req), id));
387
+ }
388
+ reqQuoteAction(req = {}) {
389
+ return this.submit((id) => this.native._req(24, this.encode(STRUCT_ID.InputQuoteAction, req), id));
390
+ }
391
+ reqBatchOrderAction(req = {}) {
392
+ return this.submit((id) => this.native._req(25, this.encode(STRUCT_ID.InputBatchOrderAction, req), id));
393
+ }
394
+ reqOptionSelfCloseInsert(req = {}) {
395
+ return this.submit((id) => this.native._req(26, this.encode(STRUCT_ID.InputOptionSelfClose, req), id));
396
+ }
397
+ reqOptionSelfCloseAction(req = {}) {
398
+ return this.submit((id) => this.native._req(27, this.encode(STRUCT_ID.InputOptionSelfCloseAction, req), id));
399
+ }
400
+ reqCombActionInsert(req = {}) {
401
+ return this.submit((id) => this.native._req(28, this.encode(STRUCT_ID.InputCombAction, req), id));
402
+ }
403
+ reqQryOrder(req = {}) {
404
+ return this.request((id) => this.native._req(29, this.encode(STRUCT_ID.QryOrder, req), id), false);
405
+ }
406
+ reqQryTrade(req = {}) {
407
+ return this.request((id) => this.native._req(30, this.encode(STRUCT_ID.QryTrade, req), id), false);
408
+ }
409
+ reqQryInvestorPosition(req = {}) {
410
+ return this.request((id) => this.native._req(31, this.encode(STRUCT_ID.QryInvestorPosition, req), id), false);
411
+ }
412
+ reqQryTradingAccount(req = {}) {
413
+ return this.request((id) => this.native._req(32, this.encode(STRUCT_ID.QryTradingAccount, req), id), false);
414
+ }
415
+ reqQryInvestor(req = {}) {
416
+ return this.request((id) => this.native._req(33, this.encode(STRUCT_ID.QryInvestor, req), id), false);
417
+ }
418
+ reqQryTradingCode(req = {}) {
419
+ return this.request((id) => this.native._req(34, this.encode(STRUCT_ID.QryTradingCode, req), id), false);
420
+ }
421
+ reqQryInstrumentMarginRate(req = {}) {
422
+ return this.request((id) => this.native._req(35, this.encode(STRUCT_ID.QryInstrumentMarginRate, req), id), false);
423
+ }
424
+ reqQryInstrumentCommissionRate(req = {}) {
425
+ return this.request((id) => this.native._req(36, this.encode(STRUCT_ID.QryInstrumentCommissionRate, req), id), false);
426
+ }
427
+ reqQryExchange(req = {}) {
428
+ return this.request((id) => this.native._req(37, this.encode(STRUCT_ID.QryExchange, req), id), false);
429
+ }
430
+ reqQryProduct(req = {}) {
431
+ return this.request((id) => this.native._req(38, this.encode(STRUCT_ID.QryProduct, req), id), false);
432
+ }
433
+ reqQryInstrument(req = {}) {
434
+ return this.request((id) => this.native._req(39, this.encode(STRUCT_ID.QryInstrument, req), id), false);
435
+ }
436
+ reqQryDepthMarketData(req = {}) {
437
+ return this.request((id) => this.native._req(40, this.encode(STRUCT_ID.QryDepthMarketData, req), id), false);
438
+ }
439
+ reqQryTraderOffer(req = {}) {
440
+ return this.request((id) => this.native._req(41, this.encode(STRUCT_ID.QryTraderOffer, req), id), false);
441
+ }
442
+ reqQrySettlementInfo(req = {}) {
443
+ return this.request((id) => this.native._req(42, this.encode(STRUCT_ID.QrySettlementInfo, req), id), false);
444
+ }
445
+ reqQryTransferBank(req = {}) {
446
+ return this.request((id) => this.native._req(43, this.encode(STRUCT_ID.QryTransferBank, req), id), false);
447
+ }
448
+ reqQryInvestorPositionDetail(req = {}) {
449
+ return this.request((id) => this.native._req(44, this.encode(STRUCT_ID.QryInvestorPositionDetail, req), id), false);
450
+ }
451
+ reqQryNotice(req = {}) {
452
+ return this.request((id) => this.native._req(45, this.encode(STRUCT_ID.QryNotice, req), id), false);
453
+ }
454
+ reqQrySettlementInfoConfirm(req = {}) {
455
+ return this.request((id) => this.native._req(46, this.encode(STRUCT_ID.QrySettlementInfoConfirm, req), id), false);
456
+ }
457
+ reqQryInvestorPositionCombineDetail(req = {}) {
458
+ return this.request((id) => this.native._req(47, this.encode(STRUCT_ID.QryInvestorPositionCombineDetail, req), id), false);
459
+ }
460
+ reqQryCfmmcTradingAccountKey(req = {}) {
461
+ return this.request((id) => this.native._req(48, this.encode(STRUCT_ID.QryCFMMCTradingAccountKey, req), id), false);
462
+ }
463
+ reqQryEWarrantOffset(req = {}) {
464
+ return this.request((id) => this.native._req(49, this.encode(STRUCT_ID.QryEWarrantOffset, req), id), false);
465
+ }
466
+ reqQryInvestorProductGroupMargin(req = {}) {
467
+ return this.request((id) => this.native._req(50, this.encode(STRUCT_ID.QryInvestorProductGroupMargin, req), id), false);
468
+ }
469
+ reqQryExchangeMarginRate(req = {}) {
470
+ return this.request((id) => this.native._req(51, this.encode(STRUCT_ID.QryExchangeMarginRate, req), id), false);
471
+ }
472
+ reqQryExchangeMarginRateAdjust(req = {}) {
473
+ return this.request((id) => this.native._req(52, this.encode(STRUCT_ID.QryExchangeMarginRateAdjust, req), id), false);
474
+ }
475
+ reqQryExchangeRate(req = {}) {
476
+ return this.request((id) => this.native._req(53, this.encode(STRUCT_ID.QryExchangeRate, req), id), false);
477
+ }
478
+ reqQrySecAgentAcidMap(req = {}) {
479
+ return this.request((id) => this.native._req(54, this.encode(STRUCT_ID.QrySecAgentACIDMap, req), id), false);
480
+ }
481
+ reqQryProductExchRate(req = {}) {
482
+ return this.request((id) => this.native._req(55, this.encode(STRUCT_ID.QryProductExchRate, req), id), false);
483
+ }
484
+ reqQryProductGroup(req = {}) {
485
+ return this.request((id) => this.native._req(56, this.encode(STRUCT_ID.QryProductGroup, req), id), false);
486
+ }
487
+ reqQryMmInstrumentCommissionRate(req = {}) {
488
+ return this.request((id) => this.native._req(57, this.encode(STRUCT_ID.QryMMInstrumentCommissionRate, req), id), false);
489
+ }
490
+ reqQryMmOptionInstrCommRate(req = {}) {
491
+ return this.request((id) => this.native._req(58, this.encode(STRUCT_ID.QryMMOptionInstrCommRate, req), id), false);
492
+ }
493
+ reqQryInstrumentOrderCommRate(req = {}) {
494
+ return this.request((id) => this.native._req(59, this.encode(STRUCT_ID.QryInstrumentOrderCommRate, req), id), false);
495
+ }
496
+ reqQrySecAgentTradingAccount(req = {}) {
497
+ return this.request((id) => this.native._req(60, this.encode(STRUCT_ID.QryTradingAccount, req), id), false);
498
+ }
499
+ reqQrySecAgentCheckMode(req = {}) {
500
+ return this.request((id) => this.native._req(61, this.encode(STRUCT_ID.QrySecAgentCheckMode, req), id), false);
501
+ }
502
+ reqQrySecAgentTradeInfo(req = {}) {
503
+ return this.request((id) => this.native._req(62, this.encode(STRUCT_ID.QrySecAgentTradeInfo, req), id), false);
504
+ }
505
+ reqQryOptionInstrTradeCost(req = {}) {
506
+ return this.request((id) => this.native._req(63, this.encode(STRUCT_ID.QryOptionInstrTradeCost, req), id), false);
507
+ }
508
+ reqQryOptionInstrCommRate(req = {}) {
509
+ return this.request((id) => this.native._req(64, this.encode(STRUCT_ID.QryOptionInstrCommRate, req), id), false);
510
+ }
511
+ reqQryExecOrder(req = {}) {
512
+ return this.request((id) => this.native._req(65, this.encode(STRUCT_ID.QryExecOrder, req), id), false);
513
+ }
514
+ reqQryForQuote(req = {}) {
515
+ return this.request((id) => this.native._req(66, this.encode(STRUCT_ID.QryForQuote, req), id), false);
516
+ }
517
+ reqQryQuote(req = {}) {
518
+ return this.request((id) => this.native._req(67, this.encode(STRUCT_ID.QryQuote, req), id), false);
519
+ }
520
+ reqQryOptionSelfClose(req = {}) {
521
+ return this.request((id) => this.native._req(68, this.encode(STRUCT_ID.QryOptionSelfClose, req), id), false);
522
+ }
523
+ reqQryInvestUnit(req = {}) {
524
+ return this.request((id) => this.native._req(69, this.encode(STRUCT_ID.QryInvestUnit, req), id), false);
525
+ }
526
+ reqQryCombInstrumentGuard(req = {}) {
527
+ return this.request((id) => this.native._req(70, this.encode(STRUCT_ID.QryCombInstrumentGuard, req), id), false);
528
+ }
529
+ reqQryCombAction(req = {}) {
530
+ return this.request((id) => this.native._req(71, this.encode(STRUCT_ID.QryCombAction, req), id), false);
531
+ }
532
+ reqQryTransferSerial(req = {}) {
533
+ return this.request((id) => this.native._req(72, this.encode(STRUCT_ID.QryTransferSerial, req), id), false);
534
+ }
535
+ reqQryAccountregister(req = {}) {
536
+ return this.request((id) => this.native._req(73, this.encode(STRUCT_ID.QryAccountregister, req), id), false);
537
+ }
538
+ reqQryContractBank(req = {}) {
539
+ return this.request((id) => this.native._req(74, this.encode(STRUCT_ID.QryContractBank, req), id), false);
540
+ }
541
+ reqQryParkedOrder(req = {}) {
542
+ return this.request((id) => this.native._req(75, this.encode(STRUCT_ID.QryParkedOrder, req), id), false);
543
+ }
544
+ reqQryParkedOrderAction(req = {}) {
545
+ return this.request((id) => this.native._req(76, this.encode(STRUCT_ID.QryParkedOrderAction, req), id), false);
546
+ }
547
+ reqQryTradingNotice(req = {}) {
548
+ return this.request((id) => this.native._req(77, this.encode(STRUCT_ID.QryTradingNotice, req), id), false);
549
+ }
550
+ reqQryBrokerTradingParams(req = {}) {
551
+ return this.request((id) => this.native._req(78, this.encode(STRUCT_ID.QryBrokerTradingParams, req), id), false);
552
+ }
553
+ reqQryBrokerTradingAlgos(req = {}) {
554
+ return this.request((id) => this.native._req(79, this.encode(STRUCT_ID.QryBrokerTradingAlgos, req), id), false);
555
+ }
556
+ reqQueryCfmmcTradingAccountToken(req = {}) {
557
+ return this.request((id) => this.native._req(80, this.encode(STRUCT_ID.QueryCFMMCTradingAccountToken, req), id), true);
558
+ }
559
+ reqFromBankToFutureByFuture(req = {}) {
560
+ return this.request((id) => this.native._req(81, this.encode(STRUCT_ID.ReqTransfer, req), id), true);
561
+ }
562
+ reqFromFutureToBankByFuture(req = {}) {
563
+ return this.request((id) => this.native._req(82, this.encode(STRUCT_ID.ReqTransfer, req), id), true);
564
+ }
565
+ reqQueryBankAccountMoneyByFuture(req = {}) {
566
+ return this.request((id) => this.native._req(83, this.encode(STRUCT_ID.ReqQueryAccount, req), id), true);
567
+ }
568
+ reqQryClassifiedInstrument(req = {}) {
569
+ return this.request((id) => this.native._req(84, this.encode(STRUCT_ID.QryClassifiedInstrument, req), id), false);
570
+ }
571
+ reqQryCombPromotionParam(req = {}) {
572
+ return this.request((id) => this.native._req(85, this.encode(STRUCT_ID.QryCombPromotionParam, req), id), false);
573
+ }
574
+ reqQryRiskSettleInvstPosition(req = {}) {
575
+ return this.request((id) => this.native._req(86, this.encode(STRUCT_ID.QryRiskSettleInvstPosition, req), id), false);
576
+ }
577
+ reqQryRiskSettleProductStatus(req = {}) {
578
+ return this.request((id) => this.native._req(87, this.encode(STRUCT_ID.QryRiskSettleProductStatus, req), id), false);
579
+ }
580
+ reqQrySpbmFutureParameter(req = {}) {
581
+ return this.request((id) => this.native._req(88, this.encode(STRUCT_ID.QrySPBMFutureParameter, req), id), false);
582
+ }
583
+ reqQrySpbmOptionParameter(req = {}) {
584
+ return this.request((id) => this.native._req(89, this.encode(STRUCT_ID.QrySPBMOptionParameter, req), id), false);
585
+ }
586
+ reqQrySpbmIntraParameter(req = {}) {
587
+ return this.request((id) => this.native._req(90, this.encode(STRUCT_ID.QrySPBMIntraParameter, req), id), false);
588
+ }
589
+ reqQrySpbmInterParameter(req = {}) {
590
+ return this.request((id) => this.native._req(91, this.encode(STRUCT_ID.QrySPBMInterParameter, req), id), false);
591
+ }
592
+ reqQrySpbmPortfDefinition(req = {}) {
593
+ return this.request((id) => this.native._req(92, this.encode(STRUCT_ID.QrySPBMPortfDefinition, req), id), false);
594
+ }
595
+ reqQrySpbmInvestorPortfDef(req = {}) {
596
+ return this.request((id) => this.native._req(93, this.encode(STRUCT_ID.QrySPBMInvestorPortfDef, req), id), false);
597
+ }
598
+ reqQryInvestorPortfMarginRatio(req = {}) {
599
+ return this.request((id) => this.native._req(94, this.encode(STRUCT_ID.QryInvestorPortfMarginRatio, req), id), false);
600
+ }
601
+ reqQryInvestorProdSpbmDetail(req = {}) {
602
+ return this.request((id) => this.native._req(95, this.encode(STRUCT_ID.QryInvestorProdSPBMDetail, req), id), false);
603
+ }
604
+ reqQryInvestorCommoditySpmmMargin(req = {}) {
605
+ return this.request((id) => this.native._req(96, this.encode(STRUCT_ID.QryInvestorCommoditySPMMMargin, req), id), false);
606
+ }
607
+ reqQryInvestorCommodityGroupSpmmMargin(req = {}) {
608
+ return this.request((id) => this.native._req(97, this.encode(STRUCT_ID.QryInvestorCommodityGroupSPMMMargin, req), id), false);
609
+ }
610
+ reqQrySpmmInstParam(req = {}) {
611
+ return this.request((id) => this.native._req(98, this.encode(STRUCT_ID.QrySPMMInstParam, req), id), false);
612
+ }
613
+ reqQrySpmmProductParam(req = {}) {
614
+ return this.request((id) => this.native._req(99, this.encode(STRUCT_ID.QrySPMMProductParam, req), id), false);
615
+ }
616
+ reqQrySpbmAddOnInterParameter(req = {}) {
617
+ return this.request((id) => this.native._req(100, this.encode(STRUCT_ID.QrySPBMAddOnInterParameter, req), id), false);
618
+ }
619
+ reqQryRcamsCombProductInfo(req = {}) {
620
+ return this.request((id) => this.native._req(101, this.encode(STRUCT_ID.QryRCAMSCombProductInfo, req), id), false);
621
+ }
622
+ reqQryRcamsInstrParameter(req = {}) {
623
+ return this.request((id) => this.native._req(102, this.encode(STRUCT_ID.QryRCAMSInstrParameter, req), id), false);
624
+ }
625
+ reqQryRcamsIntraParameter(req = {}) {
626
+ return this.request((id) => this.native._req(103, this.encode(STRUCT_ID.QryRCAMSIntraParameter, req), id), false);
627
+ }
628
+ reqQryRcamsInterParameter(req = {}) {
629
+ return this.request((id) => this.native._req(104, this.encode(STRUCT_ID.QryRCAMSInterParameter, req), id), false);
630
+ }
631
+ reqQryRcamsShortOptAdjustParam(req = {}) {
632
+ return this.request((id) => this.native._req(105, this.encode(STRUCT_ID.QryRCAMSShortOptAdjustParam, req), id), false);
633
+ }
634
+ reqQryRcamsInvestorCombPosition(req = {}) {
635
+ return this.request((id) => this.native._req(106, this.encode(STRUCT_ID.QryRCAMSInvestorCombPosition, req), id), false);
636
+ }
637
+ reqQryInvestorProdRcamsMargin(req = {}) {
638
+ return this.request((id) => this.native._req(107, this.encode(STRUCT_ID.QryInvestorProdRCAMSMargin, req), id), false);
639
+ }
640
+ reqQryRuleInstrParameter(req = {}) {
641
+ return this.request((id) => this.native._req(108, this.encode(STRUCT_ID.QryRULEInstrParameter, req), id), false);
642
+ }
643
+ reqQryRuleIntraParameter(req = {}) {
644
+ return this.request((id) => this.native._req(109, this.encode(STRUCT_ID.QryRULEIntraParameter, req), id), false);
645
+ }
646
+ reqQryRuleInterParameter(req = {}) {
647
+ return this.request((id) => this.native._req(110, this.encode(STRUCT_ID.QryRULEInterParameter, req), id), false);
648
+ }
649
+ reqQryInvestorProdRuleMargin(req = {}) {
650
+ return this.request((id) => this.native._req(111, this.encode(STRUCT_ID.QryInvestorProdRULEMargin, req), id), false);
651
+ }
652
+ }
653
+ //# sourceMappingURL=trader.gen.js.map