@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.
- package/README.md +2 -1
- package/README.zh-CN.md +2 -1
- package/dist/generated/enums.gen.d.ts +76 -6
- package/dist/generated/enums.gen.d.ts.map +1 -1
- package/dist/generated/enums.gen.js +78 -0
- package/dist/generated/enums.gen.js.map +1 -1
- package/dist/generated/structs.gen.d.ts +6271 -4816
- package/dist/generated/structs.gen.d.ts.map +1 -1
- package/dist/generated/structs.gen.js +131 -25
- package/dist/generated/structs.gen.js.map +1 -1
- package/dist/generated/trader.gen.d.ts +39 -1
- package/dist/generated/trader.gen.d.ts.map +1 -1
- package/dist/generated/trader.gen.js +315 -225
- package/dist/generated/trader.gen.js.map +1 -1
- package/dist/index.cjs +534 -252
- package/package.json +6 -2
- package/prebuilds/linux-x64/@hitrading+ctp-node.node +0 -0
- package/prebuilds/linux-x64/thostmduserapi_se.so +0 -0
- package/prebuilds/linux-x64/thosttraderapi_se.so +0 -0
- package/prebuilds/win32-x64/@hitrading+ctp-node.node +0 -0
- package/prebuilds/win32-x64/thostmduserapi_se.dll +0 -0
- package/prebuilds/win32-x64/thosttraderapi_se.dll +0 -0
- package/src/generated/enums.gen.ts +78 -0
- package/src/generated/layout.gen.cc +794 -40
- package/src/generated/structids.gen.h +54 -1
- package/src/generated/structs.gen.ts +6455 -4841
- package/src/generated/trader.gen.ts +315 -225
- package/src/generated/traderreq.gen.cc +84 -0
- package/src/generated/traderreq.gen.h +89 -75
- package/src/generated/traderspi.gen.cc +96 -0
- package/src/generated/traderspi.gen.h +198 -150
- package/tradeapi/ThostFtdcMdApi.h +69 -68
- package/tradeapi/ThostFtdcTraderApi.h +450 -323
- package/tradeapi/ThostFtdcUserApiDataType.h +2288 -2092
- package/tradeapi/ThostFtdcUserApiStruct.h +7049 -5487
- package/tradeapi/error.xml +56 -11
- package/tradeapi/linux/thostmduserapi_se.so +0 -0
- package/tradeapi/linux/thosttraderapi_se.so +0 -0
- package/tradeapi/macos/thostmduserapi_se.framework/Versions/A/Headers/ThostFtdcMdApi.h +66 -66
- package/tradeapi/macos/thostmduserapi_se.framework/Versions/A/Headers/ThostFtdcUserApiDataType.h +2123 -2090
- package/tradeapi/macos/thostmduserapi_se.framework/Versions/A/Headers/ThostFtdcUserApiStruct.h +5596 -5486
- package/tradeapi/macos/thostmduserapi_se.framework/Versions/A/Resources/Info.plist +46 -46
- package/tradeapi/macos/thostmduserapi_se.framework/Versions/A/_CodeSignature/CodeResources +149 -149
- package/tradeapi/macos/thostmduserapi_se.framework/Versions/A/thostmduserapi_se +0 -0
- package/tradeapi/macos/thosttraderapi_se.framework/Versions/A/Headers/ThostFtdcTraderApi.h +333 -321
- package/tradeapi/macos/thosttraderapi_se.framework/Versions/A/Headers/ThostFtdcUserApiDataType.h +2123 -2090
- package/tradeapi/macos/thosttraderapi_se.framework/Versions/A/Headers/ThostFtdcUserApiStruct.h +5596 -5486
- package/tradeapi/macos/thosttraderapi_se.framework/Versions/A/Resources/Info.plist +46 -46
- package/tradeapi/macos/thosttraderapi_se.framework/Versions/A/_CodeSignature/CodeResources +149 -149
- package/tradeapi/macos/thosttraderapi_se.framework/Versions/A/thosttraderapi_se +0 -0
- package/tradeapi/windows/thostmduserapi_se.dll +0 -0
- package/tradeapi/windows/thostmduserapi_se.lib +0 -0
- package/tradeapi/windows/thosttraderapi_se.dll +0 -0
- package/tradeapi/windows/thosttraderapi_se.lib +0 -0
|
@@ -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, "
|
|
170
|
-
[8192 + 6, "rsp-user-
|
|
171
|
-
[8192 + 7, "rsp-user-
|
|
172
|
-
[8192 + 8, "rsp-
|
|
173
|
-
[8192 + 9, "rsp-
|
|
174
|
-
[8192 + 10, "rsp-
|
|
175
|
-
[8192 + 11, "rsp-gen-user-
|
|
176
|
-
[8192 + 12, "rsp-
|
|
177
|
-
[8192 + 13, "rsp-
|
|
178
|
-
[8192 + 14, "rsp-parked-order-
|
|
179
|
-
[8192 + 15, "rsp-order-action"],
|
|
180
|
-
[8192 + 16, "rsp-
|
|
181
|
-
[8192 + 17, "rsp-
|
|
182
|
-
[8192 + 18, "rsp-
|
|
183
|
-
[8192 + 19, "rsp-remove-parked-order
|
|
184
|
-
[8192 + 20, "rsp-
|
|
185
|
-
[8192 + 21, "rsp-exec-order-
|
|
186
|
-
[8192 + 22, "rsp-
|
|
187
|
-
[8192 + 23, "rsp-quote-insert"],
|
|
188
|
-
[8192 + 24, "rsp-quote-
|
|
189
|
-
[8192 + 25, "rsp-
|
|
190
|
-
[8192 + 26, "rsp-
|
|
191
|
-
[8192 + 27, "rsp-option-self-close-
|
|
192
|
-
[8192 + 28, "rsp-
|
|
193
|
-
[8192 + 29, "rsp-
|
|
194
|
-
[8192 + 30, "rsp-qry-
|
|
195
|
-
[8192 + 31, "rsp-qry-
|
|
196
|
-
[8192 + 32, "rsp-qry-
|
|
197
|
-
[8192 + 33, "rsp-qry-
|
|
198
|
-
[8192 + 34, "rsp-qry-
|
|
199
|
-
[8192 + 35, "rsp-qry-
|
|
200
|
-
[8192 + 36, "rsp-qry-instrument-
|
|
201
|
-
[8192 + 37, "rsp-qry-
|
|
202
|
-
[8192 + 38, "rsp-qry-
|
|
203
|
-
[8192 + 39, "rsp-qry-
|
|
204
|
-
[8192 + 40, "rsp-qry-
|
|
205
|
-
[8192 + 41, "rsp-qry-
|
|
206
|
-
[8192 + 42, "rsp-qry-
|
|
207
|
-
[8192 + 43, "rsp-qry-
|
|
208
|
-
[8192 + 44, "rsp-qry-
|
|
209
|
-
[8192 + 45, "rsp-qry-
|
|
210
|
-
[8192 + 46, "rsp-qry-
|
|
211
|
-
[8192 + 47, "rsp-qry-
|
|
212
|
-
[8192 + 48, "rsp-qry-
|
|
213
|
-
[8192 + 49, "rsp-qry-
|
|
214
|
-
[8192 + 50, "rsp-qry-
|
|
215
|
-
[8192 + 51, "rsp-qry-
|
|
216
|
-
[8192 + 52, "rsp-qry-
|
|
217
|
-
[8192 + 53, "rsp-qry-exchange-rate"],
|
|
218
|
-
[8192 + 54, "rsp-qry-
|
|
219
|
-
[8192 + 55, "rsp-qry-
|
|
220
|
-
[8192 + 56, "rsp-qry-
|
|
221
|
-
[8192 + 57, "rsp-qry-
|
|
222
|
-
[8192 + 58, "rsp-qry-
|
|
223
|
-
[8192 + 59, "rsp-qry-instrument-
|
|
224
|
-
[8192 + 60, "rsp-qry-
|
|
225
|
-
[8192 + 61, "rsp-qry-
|
|
226
|
-
[8192 + 62, "rsp-qry-sec-agent-
|
|
227
|
-
[8192 + 63, "rsp-qry-
|
|
228
|
-
[8192 + 64, "rsp-qry-
|
|
229
|
-
[8192 + 65, "rsp-qry-
|
|
230
|
-
[8192 + 66, "rsp-qry-
|
|
231
|
-
[8192 + 67, "rsp-qry-
|
|
232
|
-
[8192 + 68, "rsp-qry-
|
|
233
|
-
[8192 + 69, "rsp-qry-
|
|
234
|
-
[8192 + 70, "rsp-qry-
|
|
235
|
-
[8192 + 71, "rsp-qry-
|
|
236
|
-
[8192 + 72, "rsp-qry-
|
|
237
|
-
[8192 + 73, "rsp-qry-
|
|
238
|
-
[8192 + 74, "rsp-
|
|
239
|
-
[8192 + 75, "
|
|
240
|
-
[8192 + 76, "
|
|
241
|
-
[8192 + 77, "
|
|
242
|
-
[8192 + 78, "
|
|
243
|
-
[8192 + 79, "rtn-
|
|
244
|
-
[8192 + 80, "rtn-
|
|
245
|
-
[8192 + 81, "rtn-
|
|
246
|
-
[8192 + 82, "rtn-
|
|
247
|
-
[8192 + 83, "rtn-
|
|
248
|
-
[8192 + 84, "
|
|
249
|
-
[8192 + 85, "
|
|
250
|
-
[8192 + 86, "err-rtn-
|
|
251
|
-
[8192 + 87, "rtn-
|
|
252
|
-
[8192 + 88, "err-rtn-quote-insert"],
|
|
253
|
-
[8192 + 89, "
|
|
254
|
-
[8192 + 90, "rtn-
|
|
255
|
-
[8192 + 91, "rtn-
|
|
256
|
-
[8192 + 92, "
|
|
257
|
-
[8192 + 93, "rtn-
|
|
258
|
-
[8192 + 94, "err-rtn-
|
|
259
|
-
[8192 + 95, "
|
|
260
|
-
[8192 + 96, "rtn-
|
|
261
|
-
[8192 + 97, "err-rtn-
|
|
262
|
-
[8192 + 98, "
|
|
263
|
-
[8192 + 99, "
|
|
264
|
-
[8192 + 100, "rsp-qry-
|
|
265
|
-
[8192 + 101, "rsp-qry-
|
|
266
|
-
[8192 + 102, "rsp-qry-
|
|
267
|
-
[8192 + 103, "rsp-qry-
|
|
268
|
-
[8192 + 104, "rsp-
|
|
269
|
-
[8192 + 105, "
|
|
270
|
-
[8192 + 106, "
|
|
271
|
-
[8192 + 107, "rtn-
|
|
272
|
-
[8192 + 108, "rtn-
|
|
273
|
-
[8192 + 109, "rtn-from-bank-to-future-by-
|
|
274
|
-
[8192 + 110, "rtn-from-future-to-bank-by-
|
|
275
|
-
[8192 + 111, "rtn-
|
|
276
|
-
[8192 + 112, "rtn-
|
|
277
|
-
[8192 + 113, "rtn-
|
|
278
|
-
[8192 + 114, "
|
|
279
|
-
[8192 + 115, "
|
|
280
|
-
[8192 + 116, "err-rtn-
|
|
281
|
-
[8192 + 117, "err-rtn-
|
|
282
|
-
[8192 + 118, "err-rtn-
|
|
283
|
-
[8192 + 119, "rtn-repeal-
|
|
284
|
-
[8192 + 120, "rtn-
|
|
285
|
-
[8192 + 121, "
|
|
286
|
-
[8192 + 122, "
|
|
287
|
-
[8192 + 123, "rsp-
|
|
288
|
-
[8192 + 124, "
|
|
289
|
-
[8192 + 125, "
|
|
290
|
-
[8192 + 126, "rtn-
|
|
291
|
-
[8192 + 127, "
|
|
292
|
-
[8192 + 128, "
|
|
293
|
-
[8192 + 129, "rsp-qry-
|
|
294
|
-
[8192 + 130, "rsp-qry-
|
|
295
|
-
[8192 + 131, "rsp-qry-
|
|
296
|
-
[8192 + 132, "rsp-qry-
|
|
297
|
-
[8192 + 133, "rsp-qry-spbm-
|
|
298
|
-
[8192 + 134, "rsp-qry-spbm-
|
|
299
|
-
[8192 + 135, "rsp-qry-spbm-
|
|
300
|
-
[8192 + 136, "rsp-qry-spbm-
|
|
301
|
-
[8192 + 137, "rsp-qry-
|
|
302
|
-
[8192 + 138, "rsp-qry-investor-
|
|
303
|
-
[8192 + 139, "rsp-qry-investor-
|
|
304
|
-
[8192 + 140, "rsp-qry-investor-
|
|
305
|
-
[8192 + 141, "rsp-qry-spmm-
|
|
306
|
-
[8192 + 142, "rsp-qry-spmm-
|
|
307
|
-
[8192 + 143, "rsp-qry-
|
|
308
|
-
[8192 + 144, "rsp-qry-
|
|
309
|
-
[8192 + 145, "rsp-qry-
|
|
310
|
-
[8192 + 146, "rsp-qry-rcams-
|
|
311
|
-
[8192 + 147, "rsp-qry-rcams-
|
|
312
|
-
[8192 + 148, "rsp-qry-rcams-
|
|
313
|
-
[8192 + 149, "rsp-qry-rcams-
|
|
314
|
-
[8192 + 150, "rsp-qry-
|
|
315
|
-
[8192 + 151, "rsp-qry-
|
|
316
|
-
[8192 + 152, "rsp-qry-
|
|
317
|
-
[8192 + 153, "rsp-qry-rule-
|
|
318
|
-
[8192 + 154, "rsp-qry-
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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
|
}
|