@binance/wallet 12.0.2 → 12.1.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/dist/index.mjs CHANGED
@@ -3,7 +3,7 @@ import { BadRequestError, ConfigurationRestAPI, ConnectorClientError, ForbiddenE
3
3
 
4
4
  //#region package.json
5
5
  var name = "@binance/wallet";
6
- var version = "12.0.2";
6
+ var version = "12.1.0";
7
7
 
8
8
  //#endregion
9
9
  //#region src/rest-api/modules/account-api.ts
@@ -26,43 +26,50 @@ const AccountApiAxiosParamCreator = function(configuration) {
26
26
  return {
27
27
  accountApiTradingStatus: async (recvWindow) => {
28
28
  const localVarQueryParameter = {};
29
+ const localVarBodyParameter = {};
29
30
  if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
30
31
  let _timeUnit;
31
32
  if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
32
33
  return {
33
34
  endpoint: "/sapi/v1/account/apiTradingStatus",
34
35
  method: "GET",
35
- params: localVarQueryParameter,
36
+ queryParams: localVarQueryParameter,
37
+ bodyParams: localVarBodyParameter,
36
38
  timeUnit: _timeUnit
37
39
  };
38
40
  },
39
41
  accountInfo: async (recvWindow) => {
40
42
  const localVarQueryParameter = {};
43
+ const localVarBodyParameter = {};
41
44
  if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
42
45
  let _timeUnit;
43
46
  if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
44
47
  return {
45
48
  endpoint: "/sapi/v1/account/info",
46
49
  method: "GET",
47
- params: localVarQueryParameter,
50
+ queryParams: localVarQueryParameter,
51
+ bodyParams: localVarBodyParameter,
48
52
  timeUnit: _timeUnit
49
53
  };
50
54
  },
51
55
  accountStatus: async (recvWindow) => {
52
56
  const localVarQueryParameter = {};
57
+ const localVarBodyParameter = {};
53
58
  if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
54
59
  let _timeUnit;
55
60
  if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
56
61
  return {
57
62
  endpoint: "/sapi/v1/account/status",
58
63
  method: "GET",
59
- params: localVarQueryParameter,
64
+ queryParams: localVarQueryParameter,
65
+ bodyParams: localVarBodyParameter,
60
66
  timeUnit: _timeUnit
61
67
  };
62
68
  },
63
69
  dailyAccountSnapshot: async (type, startTime, endTime, limit, recvWindow) => {
64
70
  assertParamExists("dailyAccountSnapshot", "type", type);
65
71
  const localVarQueryParameter = {};
72
+ const localVarBodyParameter = {};
66
73
  if (type !== void 0 && type !== null) localVarQueryParameter["type"] = type;
67
74
  if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
68
75
  if (endTime !== void 0 && endTime !== null) localVarQueryParameter["endTime"] = endTime;
@@ -73,43 +80,50 @@ const AccountApiAxiosParamCreator = function(configuration) {
73
80
  return {
74
81
  endpoint: "/sapi/v1/accountSnapshot",
75
82
  method: "GET",
76
- params: localVarQueryParameter,
83
+ queryParams: localVarQueryParameter,
84
+ bodyParams: localVarBodyParameter,
77
85
  timeUnit: _timeUnit
78
86
  };
79
87
  },
80
88
  disableFastWithdrawSwitch: async (recvWindow) => {
81
89
  const localVarQueryParameter = {};
90
+ const localVarBodyParameter = {};
82
91
  if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
83
92
  let _timeUnit;
84
93
  if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
85
94
  return {
86
95
  endpoint: "/sapi/v1/account/disableFastWithdrawSwitch",
87
96
  method: "POST",
88
- params: localVarQueryParameter,
97
+ queryParams: localVarQueryParameter,
98
+ bodyParams: localVarBodyParameter,
89
99
  timeUnit: _timeUnit
90
100
  };
91
101
  },
92
102
  enableFastWithdrawSwitch: async (recvWindow) => {
93
103
  const localVarQueryParameter = {};
104
+ const localVarBodyParameter = {};
94
105
  if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
95
106
  let _timeUnit;
96
107
  if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
97
108
  return {
98
109
  endpoint: "/sapi/v1/account/enableFastWithdrawSwitch",
99
110
  method: "POST",
100
- params: localVarQueryParameter,
111
+ queryParams: localVarQueryParameter,
112
+ bodyParams: localVarBodyParameter,
101
113
  timeUnit: _timeUnit
102
114
  };
103
115
  },
104
116
  getApiKeyPermission: async (recvWindow) => {
105
117
  const localVarQueryParameter = {};
118
+ const localVarBodyParameter = {};
106
119
  if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
107
120
  let _timeUnit;
108
121
  if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
109
122
  return {
110
123
  endpoint: "/sapi/v1/account/apiRestrictions",
111
124
  method: "GET",
112
- params: localVarQueryParameter,
125
+ queryParams: localVarQueryParameter,
126
+ bodyParams: localVarBodyParameter,
113
127
  timeUnit: _timeUnit
114
128
  };
115
129
  }
@@ -138,7 +152,7 @@ var AccountApi = class {
138
152
  */
139
153
  async accountApiTradingStatus(requestParameters = {}) {
140
154
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.accountApiTradingStatus(requestParameters?.recvWindow);
141
- return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.params, localVarAxiosArgs?.timeUnit, { isSigned: true });
155
+ return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
142
156
  }
143
157
  /**
144
158
  * Fetch account info detail.
@@ -154,7 +168,7 @@ var AccountApi = class {
154
168
  */
155
169
  async accountInfo(requestParameters = {}) {
156
170
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.accountInfo(requestParameters?.recvWindow);
157
- return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.params, localVarAxiosArgs?.timeUnit, { isSigned: true });
171
+ return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
158
172
  }
159
173
  /**
160
174
  * Fetch account status detail.
@@ -170,7 +184,7 @@ var AccountApi = class {
170
184
  */
171
185
  async accountStatus(requestParameters = {}) {
172
186
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.accountStatus(requestParameters?.recvWindow);
173
- return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.params, localVarAxiosArgs?.timeUnit, { isSigned: true });
187
+ return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
174
188
  }
175
189
  /**
176
190
  * Daily account snapshot
@@ -190,7 +204,7 @@ var AccountApi = class {
190
204
  */
191
205
  async dailyAccountSnapshot(requestParameters) {
192
206
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.dailyAccountSnapshot(requestParameters?.type, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.limit, requestParameters?.recvWindow);
193
- return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.params, localVarAxiosArgs?.timeUnit, { isSigned: true });
207
+ return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
194
208
  }
195
209
  /**
196
210
  *
@@ -205,7 +219,7 @@ var AccountApi = class {
205
219
  */
206
220
  async disableFastWithdrawSwitch(requestParameters = {}) {
207
221
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.disableFastWithdrawSwitch(requestParameters?.recvWindow);
208
- return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.params, localVarAxiosArgs?.timeUnit, { isSigned: true });
222
+ return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
209
223
  }
210
224
  /**
211
225
  * Enable Fast Withdraw Switch (USER_DATA)
@@ -224,7 +238,7 @@ var AccountApi = class {
224
238
  */
225
239
  async enableFastWithdrawSwitch(requestParameters = {}) {
226
240
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.enableFastWithdrawSwitch(requestParameters?.recvWindow);
227
- return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.params, localVarAxiosArgs?.timeUnit, { isSigned: true });
241
+ return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
228
242
  }
229
243
  /**
230
244
  * Get API Key Permission
@@ -240,7 +254,7 @@ var AccountApi = class {
240
254
  */
241
255
  async getApiKeyPermission(requestParameters = {}) {
242
256
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.getApiKeyPermission(requestParameters?.recvWindow);
243
- return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.params, localVarAxiosArgs?.timeUnit, { isSigned: true });
257
+ return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
244
258
  }
245
259
  };
246
260
 
@@ -265,18 +279,21 @@ const AssetApiAxiosParamCreator = function(configuration) {
265
279
  return {
266
280
  assetDetail: async (recvWindow) => {
267
281
  const localVarQueryParameter = {};
282
+ const localVarBodyParameter = {};
268
283
  if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
269
284
  let _timeUnit;
270
285
  if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
271
286
  return {
272
287
  endpoint: "/sapi/v1/asset/assetDetail",
273
288
  method: "GET",
274
- params: localVarQueryParameter,
289
+ queryParams: localVarQueryParameter,
290
+ bodyParams: localVarBodyParameter,
275
291
  timeUnit: _timeUnit
276
292
  };
277
293
  },
278
294
  assetDividendRecord: async (asset, startTime, endTime, limit, recvWindow) => {
279
295
  const localVarQueryParameter = {};
296
+ const localVarBodyParameter = {};
280
297
  if (asset !== void 0 && asset !== null) localVarQueryParameter["asset"] = asset;
281
298
  if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
282
299
  if (endTime !== void 0 && endTime !== null) localVarQueryParameter["endTime"] = endTime;
@@ -287,13 +304,15 @@ const AssetApiAxiosParamCreator = function(configuration) {
287
304
  return {
288
305
  endpoint: "/sapi/v1/asset/assetDividend",
289
306
  method: "GET",
290
- params: localVarQueryParameter,
307
+ queryParams: localVarQueryParameter,
308
+ bodyParams: localVarBodyParameter,
291
309
  timeUnit: _timeUnit
292
310
  };
293
311
  },
294
312
  dustTransfer: async (asset, accountType, recvWindow) => {
295
313
  assertParamExists("dustTransfer", "asset", asset);
296
314
  const localVarQueryParameter = {};
315
+ const localVarBodyParameter = {};
297
316
  if (asset !== void 0 && asset !== null) localVarQueryParameter["asset"] = asset;
298
317
  if (accountType !== void 0 && accountType !== null) localVarQueryParameter["accountType"] = accountType;
299
318
  if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
@@ -302,12 +321,14 @@ const AssetApiAxiosParamCreator = function(configuration) {
302
321
  return {
303
322
  endpoint: "/sapi/v1/asset/dust",
304
323
  method: "POST",
305
- params: localVarQueryParameter,
324
+ queryParams: localVarQueryParameter,
325
+ bodyParams: localVarBodyParameter,
306
326
  timeUnit: _timeUnit
307
327
  };
308
328
  },
309
329
  dustlog: async (startTime, endTime, recvWindow) => {
310
330
  const localVarQueryParameter = {};
331
+ const localVarBodyParameter = {};
311
332
  if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
312
333
  if (endTime !== void 0 && endTime !== null) localVarQueryParameter["endTime"] = endTime;
313
334
  if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
@@ -316,12 +337,14 @@ const AssetApiAxiosParamCreator = function(configuration) {
316
337
  return {
317
338
  endpoint: "/sapi/v1/asset/dribblet",
318
339
  method: "GET",
319
- params: localVarQueryParameter,
340
+ queryParams: localVarQueryParameter,
341
+ bodyParams: localVarBodyParameter,
320
342
  timeUnit: _timeUnit
321
343
  };
322
344
  },
323
345
  fundingWallet: async (asset, needBtcValuation, recvWindow) => {
324
346
  const localVarQueryParameter = {};
347
+ const localVarBodyParameter = {};
325
348
  if (asset !== void 0 && asset !== null) localVarQueryParameter["asset"] = asset;
326
349
  if (needBtcValuation !== void 0 && needBtcValuation !== null) localVarQueryParameter["needBtcValuation"] = needBtcValuation;
327
350
  if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
@@ -330,12 +353,14 @@ const AssetApiAxiosParamCreator = function(configuration) {
330
353
  return {
331
354
  endpoint: "/sapi/v1/asset/get-funding-asset",
332
355
  method: "POST",
333
- params: localVarQueryParameter,
356
+ queryParams: localVarQueryParameter,
357
+ bodyParams: localVarBodyParameter,
334
358
  timeUnit: _timeUnit
335
359
  };
336
360
  },
337
361
  getAssetsThatCanBeConvertedIntoBnb: async (accountType, recvWindow) => {
338
362
  const localVarQueryParameter = {};
363
+ const localVarBodyParameter = {};
339
364
  if (accountType !== void 0 && accountType !== null) localVarQueryParameter["accountType"] = accountType;
340
365
  if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
341
366
  let _timeUnit;
@@ -343,7 +368,8 @@ const AssetApiAxiosParamCreator = function(configuration) {
343
368
  return {
344
369
  endpoint: "/sapi/v1/asset/dust-btc",
345
370
  method: "POST",
346
- params: localVarQueryParameter,
371
+ queryParams: localVarQueryParameter,
372
+ bodyParams: localVarBodyParameter,
347
373
  timeUnit: _timeUnit
348
374
  };
349
375
  },
@@ -351,6 +377,7 @@ const AssetApiAxiosParamCreator = function(configuration) {
351
377
  assertParamExists("getCloudMiningPaymentAndRefundHistory", "startTime", startTime);
352
378
  assertParamExists("getCloudMiningPaymentAndRefundHistory", "endTime", endTime);
353
379
  const localVarQueryParameter = {};
380
+ const localVarBodyParameter = {};
354
381
  if (tranId !== void 0 && tranId !== null) localVarQueryParameter["tranId"] = tranId;
355
382
  if (clientTranId !== void 0 && clientTranId !== null) localVarQueryParameter["clientTranId"] = clientTranId;
356
383
  if (asset !== void 0 && asset !== null) localVarQueryParameter["asset"] = asset;
@@ -363,18 +390,21 @@ const AssetApiAxiosParamCreator = function(configuration) {
363
390
  return {
364
391
  endpoint: "/sapi/v1/asset/ledger-transfer/cloud-mining/queryByPage",
365
392
  method: "GET",
366
- params: localVarQueryParameter,
393
+ queryParams: localVarQueryParameter,
394
+ bodyParams: localVarBodyParameter,
367
395
  timeUnit: _timeUnit
368
396
  };
369
397
  },
370
398
  getOpenSymbolList: async () => {
371
399
  const localVarQueryParameter = {};
400
+ const localVarBodyParameter = {};
372
401
  let _timeUnit;
373
402
  if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
374
403
  return {
375
404
  endpoint: "/sapi/v1/spot/open-symbol-list",
376
405
  method: "GET",
377
- params: localVarQueryParameter,
406
+ queryParams: localVarQueryParameter,
407
+ bodyParams: localVarBodyParameter,
378
408
  timeUnit: _timeUnit
379
409
  };
380
410
  },
@@ -383,6 +413,7 @@ const AssetApiAxiosParamCreator = function(configuration) {
383
413
  assertParamExists("queryUserDelegationHistory", "startTime", startTime);
384
414
  assertParamExists("queryUserDelegationHistory", "endTime", endTime);
385
415
  const localVarQueryParameter = {};
416
+ const localVarBodyParameter = {};
386
417
  if (email !== void 0 && email !== null) localVarQueryParameter["email"] = email;
387
418
  if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
388
419
  if (endTime !== void 0 && endTime !== null) localVarQueryParameter["endTime"] = endTime;
@@ -396,13 +427,15 @@ const AssetApiAxiosParamCreator = function(configuration) {
396
427
  return {
397
428
  endpoint: "/sapi/v1/asset/custody/transfer-history",
398
429
  method: "GET",
399
- params: localVarQueryParameter,
430
+ queryParams: localVarQueryParameter,
431
+ bodyParams: localVarBodyParameter,
400
432
  timeUnit: _timeUnit
401
433
  };
402
434
  },
403
435
  queryUserUniversalTransferHistory: async (type, startTime, endTime, current, size, fromSymbol, toSymbol, recvWindow) => {
404
436
  assertParamExists("queryUserUniversalTransferHistory", "type", type);
405
437
  const localVarQueryParameter = {};
438
+ const localVarBodyParameter = {};
406
439
  if (type !== void 0 && type !== null) localVarQueryParameter["type"] = type;
407
440
  if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
408
441
  if (endTime !== void 0 && endTime !== null) localVarQueryParameter["endTime"] = endTime;
@@ -416,12 +449,14 @@ const AssetApiAxiosParamCreator = function(configuration) {
416
449
  return {
417
450
  endpoint: "/sapi/v1/asset/transfer",
418
451
  method: "GET",
419
- params: localVarQueryParameter,
452
+ queryParams: localVarQueryParameter,
453
+ bodyParams: localVarBodyParameter,
420
454
  timeUnit: _timeUnit
421
455
  };
422
456
  },
423
457
  queryUserWalletBalance: async (quoteAsset, recvWindow) => {
424
458
  const localVarQueryParameter = {};
459
+ const localVarBodyParameter = {};
425
460
  if (quoteAsset !== void 0 && quoteAsset !== null) localVarQueryParameter["quoteAsset"] = quoteAsset;
426
461
  if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
427
462
  let _timeUnit;
@@ -429,12 +464,14 @@ const AssetApiAxiosParamCreator = function(configuration) {
429
464
  return {
430
465
  endpoint: "/sapi/v1/asset/wallet/balance",
431
466
  method: "GET",
432
- params: localVarQueryParameter,
467
+ queryParams: localVarQueryParameter,
468
+ bodyParams: localVarBodyParameter,
433
469
  timeUnit: _timeUnit
434
470
  };
435
471
  },
436
472
  toggleBnbBurnOnSpotTradeAndMarginInterest: async (spotBNBBurn, interestBNBBurn, recvWindow) => {
437
473
  const localVarQueryParameter = {};
474
+ const localVarBodyParameter = {};
438
475
  if (spotBNBBurn !== void 0 && spotBNBBurn !== null) localVarQueryParameter["spotBNBBurn"] = spotBNBBurn;
439
476
  if (interestBNBBurn !== void 0 && interestBNBBurn !== null) localVarQueryParameter["interestBNBBurn"] = interestBNBBurn;
440
477
  if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
@@ -443,12 +480,14 @@ const AssetApiAxiosParamCreator = function(configuration) {
443
480
  return {
444
481
  endpoint: "/sapi/v1/bnbBurn",
445
482
  method: "POST",
446
- params: localVarQueryParameter,
483
+ queryParams: localVarQueryParameter,
484
+ bodyParams: localVarBodyParameter,
447
485
  timeUnit: _timeUnit
448
486
  };
449
487
  },
450
488
  tradeFee: async (symbol, recvWindow) => {
451
489
  const localVarQueryParameter = {};
490
+ const localVarBodyParameter = {};
452
491
  if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
453
492
  if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
454
493
  let _timeUnit;
@@ -456,12 +495,14 @@ const AssetApiAxiosParamCreator = function(configuration) {
456
495
  return {
457
496
  endpoint: "/sapi/v1/asset/tradeFee",
458
497
  method: "GET",
459
- params: localVarQueryParameter,
498
+ queryParams: localVarQueryParameter,
499
+ bodyParams: localVarBodyParameter,
460
500
  timeUnit: _timeUnit
461
501
  };
462
502
  },
463
503
  userAsset: async (asset, needBtcValuation, recvWindow) => {
464
504
  const localVarQueryParameter = {};
505
+ const localVarBodyParameter = {};
465
506
  if (asset !== void 0 && asset !== null) localVarQueryParameter["asset"] = asset;
466
507
  if (needBtcValuation !== void 0 && needBtcValuation !== null) localVarQueryParameter["needBtcValuation"] = needBtcValuation;
467
508
  if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
@@ -470,7 +511,8 @@ const AssetApiAxiosParamCreator = function(configuration) {
470
511
  return {
471
512
  endpoint: "/sapi/v3/asset/getUserAsset",
472
513
  method: "POST",
473
- params: localVarQueryParameter,
514
+ queryParams: localVarQueryParameter,
515
+ bodyParams: localVarBodyParameter,
474
516
  timeUnit: _timeUnit
475
517
  };
476
518
  },
@@ -479,6 +521,7 @@ const AssetApiAxiosParamCreator = function(configuration) {
479
521
  assertParamExists("userUniversalTransfer", "asset", asset);
480
522
  assertParamExists("userUniversalTransfer", "amount", amount);
481
523
  const localVarQueryParameter = {};
524
+ const localVarBodyParameter = {};
482
525
  if (type !== void 0 && type !== null) localVarQueryParameter["type"] = type;
483
526
  if (asset !== void 0 && asset !== null) localVarQueryParameter["asset"] = asset;
484
527
  if (amount !== void 0 && amount !== null) localVarQueryParameter["amount"] = amount;
@@ -490,7 +533,8 @@ const AssetApiAxiosParamCreator = function(configuration) {
490
533
  return {
491
534
  endpoint: "/sapi/v1/asset/transfer",
492
535
  method: "POST",
493
- params: localVarQueryParameter,
536
+ queryParams: localVarQueryParameter,
537
+ bodyParams: localVarBodyParameter,
494
538
  timeUnit: _timeUnit
495
539
  };
496
540
  }
@@ -522,7 +566,7 @@ var AssetApi = class {
522
566
  */
523
567
  async assetDetail(requestParameters = {}) {
524
568
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.assetDetail(requestParameters?.recvWindow);
525
- return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.params, localVarAxiosArgs?.timeUnit, { isSigned: true });
569
+ return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
526
570
  }
527
571
  /**
528
572
  * Query asset dividend record.
@@ -541,7 +585,7 @@ var AssetApi = class {
541
585
  */
542
586
  async assetDividendRecord(requestParameters = {}) {
543
587
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.assetDividendRecord(requestParameters?.asset, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.limit, requestParameters?.recvWindow);
544
- return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.params, localVarAxiosArgs?.timeUnit, { isSigned: true });
588
+ return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
545
589
  }
546
590
  /**
547
591
  * Convert dust assets to BNB.
@@ -559,7 +603,7 @@ var AssetApi = class {
559
603
  */
560
604
  async dustTransfer(requestParameters) {
561
605
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.dustTransfer(requestParameters?.asset, requestParameters?.accountType, requestParameters?.recvWindow);
562
- return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.params, localVarAxiosArgs?.timeUnit, { isSigned: true });
606
+ return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
563
607
  }
564
608
  /**
565
609
  * Dustlog
@@ -578,7 +622,7 @@ var AssetApi = class {
578
622
  */
579
623
  async dustlog(requestParameters = {}) {
580
624
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.dustlog(requestParameters?.startTime, requestParameters?.endTime, requestParameters?.recvWindow);
581
- return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.params, localVarAxiosArgs?.timeUnit, { isSigned: true });
625
+ return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
582
626
  }
583
627
  /**
584
628
  * Query Funding Wallet
@@ -597,7 +641,7 @@ var AssetApi = class {
597
641
  */
598
642
  async fundingWallet(requestParameters = {}) {
599
643
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.fundingWallet(requestParameters?.asset, requestParameters?.needBtcValuation, requestParameters?.recvWindow);
600
- return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.params, localVarAxiosArgs?.timeUnit, { isSigned: true });
644
+ return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
601
645
  }
602
646
  /**
603
647
  * Get Assets That Can Be Converted Into BNB
@@ -613,7 +657,7 @@ var AssetApi = class {
613
657
  */
614
658
  async getAssetsThatCanBeConvertedIntoBnb(requestParameters = {}) {
615
659
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.getAssetsThatCanBeConvertedIntoBnb(requestParameters?.accountType, requestParameters?.recvWindow);
616
- return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.params, localVarAxiosArgs?.timeUnit, { isSigned: true });
660
+ return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
617
661
  }
618
662
  /**
619
663
  * The query of Cloud-Mining payment and refund history
@@ -632,7 +676,7 @@ var AssetApi = class {
632
676
  */
633
677
  async getCloudMiningPaymentAndRefundHistory(requestParameters) {
634
678
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.getCloudMiningPaymentAndRefundHistory(requestParameters?.startTime, requestParameters?.endTime, requestParameters?.tranId, requestParameters?.clientTranId, requestParameters?.asset, requestParameters?.current, requestParameters?.size);
635
- return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.params, localVarAxiosArgs?.timeUnit, { isSigned: true });
679
+ return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
636
680
  }
637
681
  /**
638
682
  * Get the list of symbols that are scheduled to be opened for trading in the market.
@@ -647,7 +691,7 @@ var AssetApi = class {
647
691
  */
648
692
  async getOpenSymbolList() {
649
693
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.getOpenSymbolList();
650
- return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.params, localVarAxiosArgs?.timeUnit, { isSigned: false });
694
+ return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
651
695
  }
652
696
  /**
653
697
  * Query User Delegation History
@@ -665,7 +709,7 @@ var AssetApi = class {
665
709
  */
666
710
  async queryUserDelegationHistory(requestParameters) {
667
711
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryUserDelegationHistory(requestParameters?.email, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.type, requestParameters?.asset, requestParameters?.current, requestParameters?.size, requestParameters?.recvWindow);
668
- return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.params, localVarAxiosArgs?.timeUnit, { isSigned: true });
712
+ return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
669
713
  }
670
714
  /**
671
715
  * Query User Universal Transfer History
@@ -687,7 +731,7 @@ var AssetApi = class {
687
731
  */
688
732
  async queryUserUniversalTransferHistory(requestParameters) {
689
733
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryUserUniversalTransferHistory(requestParameters?.type, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.current, requestParameters?.size, requestParameters?.fromSymbol, requestParameters?.toSymbol, requestParameters?.recvWindow);
690
- return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.params, localVarAxiosArgs?.timeUnit, { isSigned: true });
734
+ return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
691
735
  }
692
736
  /**
693
737
  * Query User Wallet Balance
@@ -703,7 +747,7 @@ var AssetApi = class {
703
747
  */
704
748
  async queryUserWalletBalance(requestParameters = {}) {
705
749
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryUserWalletBalance(requestParameters?.quoteAsset, requestParameters?.recvWindow);
706
- return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.params, localVarAxiosArgs?.timeUnit, { isSigned: true });
750
+ return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
707
751
  }
708
752
  /**
709
753
  * Toggle BNB Burn On Spot Trade And Margin Interest
@@ -721,7 +765,7 @@ var AssetApi = class {
721
765
  */
722
766
  async toggleBnbBurnOnSpotTradeAndMarginInterest(requestParameters = {}) {
723
767
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.toggleBnbBurnOnSpotTradeAndMarginInterest(requestParameters?.spotBNBBurn, requestParameters?.interestBNBBurn, requestParameters?.recvWindow);
724
- return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.params, localVarAxiosArgs?.timeUnit, { isSigned: true });
768
+ return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
725
769
  }
726
770
  /**
727
771
  * Fetch trade fee
@@ -737,7 +781,7 @@ var AssetApi = class {
737
781
  */
738
782
  async tradeFee(requestParameters = {}) {
739
783
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.tradeFee(requestParameters?.symbol, requestParameters?.recvWindow);
740
- return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.params, localVarAxiosArgs?.timeUnit, { isSigned: true });
784
+ return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
741
785
  }
742
786
  /**
743
787
  * Get user assets, just for positive data.
@@ -756,7 +800,7 @@ var AssetApi = class {
756
800
  */
757
801
  async userAsset(requestParameters = {}) {
758
802
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.userAsset(requestParameters?.asset, requestParameters?.needBtcValuation, requestParameters?.recvWindow);
759
- return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.params, localVarAxiosArgs?.timeUnit, { isSigned: true });
803
+ return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
760
804
  }
761
805
  /**
762
806
  * user universal transfer
@@ -807,7 +851,7 @@ var AssetApi = class {
807
851
  */
808
852
  async userUniversalTransfer(requestParameters) {
809
853
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.userUniversalTransfer(requestParameters?.type, requestParameters?.asset, requestParameters?.amount, requestParameters?.fromSymbol, requestParameters?.toSymbol, requestParameters?.recvWindow);
810
- return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.params, localVarAxiosArgs?.timeUnit, { isSigned: true });
854
+ return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
811
855
  }
812
856
  };
813
857
 
@@ -832,19 +876,22 @@ const CapitalApiAxiosParamCreator = function(configuration) {
832
876
  return {
833
877
  allCoinsInformation: async (recvWindow) => {
834
878
  const localVarQueryParameter = {};
879
+ const localVarBodyParameter = {};
835
880
  if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
836
881
  let _timeUnit;
837
882
  if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
838
883
  return {
839
884
  endpoint: "/sapi/v1/capital/config/getall",
840
885
  method: "GET",
841
- params: localVarQueryParameter,
886
+ queryParams: localVarQueryParameter,
887
+ bodyParams: localVarBodyParameter,
842
888
  timeUnit: _timeUnit
843
889
  };
844
890
  },
845
891
  depositAddress: async (coin, network, amount, recvWindow) => {
846
892
  assertParamExists("depositAddress", "coin", coin);
847
893
  const localVarQueryParameter = {};
894
+ const localVarBodyParameter = {};
848
895
  if (coin !== void 0 && coin !== null) localVarQueryParameter["coin"] = coin;
849
896
  if (network !== void 0 && network !== null) localVarQueryParameter["network"] = network;
850
897
  if (amount !== void 0 && amount !== null) localVarQueryParameter["amount"] = amount;
@@ -854,12 +901,14 @@ const CapitalApiAxiosParamCreator = function(configuration) {
854
901
  return {
855
902
  endpoint: "/sapi/v1/capital/deposit/address",
856
903
  method: "GET",
857
- params: localVarQueryParameter,
904
+ queryParams: localVarQueryParameter,
905
+ bodyParams: localVarBodyParameter,
858
906
  timeUnit: _timeUnit
859
907
  };
860
908
  },
861
909
  depositHistory: async (includeSource, coin, status, startTime, endTime, offset, limit, recvWindow, txId) => {
862
910
  const localVarQueryParameter = {};
911
+ const localVarBodyParameter = {};
863
912
  if (includeSource !== void 0 && includeSource !== null) localVarQueryParameter["includeSource"] = includeSource;
864
913
  if (coin !== void 0 && coin !== null) localVarQueryParameter["coin"] = coin;
865
914
  if (status !== void 0 && status !== null) localVarQueryParameter["status"] = status;
@@ -874,13 +923,15 @@ const CapitalApiAxiosParamCreator = function(configuration) {
874
923
  return {
875
924
  endpoint: "/sapi/v1/capital/deposit/hisrec",
876
925
  method: "GET",
877
- params: localVarQueryParameter,
926
+ queryParams: localVarQueryParameter,
927
+ bodyParams: localVarBodyParameter,
878
928
  timeUnit: _timeUnit
879
929
  };
880
930
  },
881
931
  fetchDepositAddressListWithNetwork: async (coin, network) => {
882
932
  assertParamExists("fetchDepositAddressListWithNetwork", "coin", coin);
883
933
  const localVarQueryParameter = {};
934
+ const localVarBodyParameter = {};
884
935
  if (coin !== void 0 && coin !== null) localVarQueryParameter["coin"] = coin;
885
936
  if (network !== void 0 && network !== null) localVarQueryParameter["network"] = network;
886
937
  let _timeUnit;
@@ -888,34 +939,40 @@ const CapitalApiAxiosParamCreator = function(configuration) {
888
939
  return {
889
940
  endpoint: "/sapi/v1/capital/deposit/address/list",
890
941
  method: "GET",
891
- params: localVarQueryParameter,
942
+ queryParams: localVarQueryParameter,
943
+ bodyParams: localVarBodyParameter,
892
944
  timeUnit: _timeUnit
893
945
  };
894
946
  },
895
947
  fetchWithdrawAddressList: async () => {
896
948
  const localVarQueryParameter = {};
949
+ const localVarBodyParameter = {};
897
950
  let _timeUnit;
898
951
  if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
899
952
  return {
900
953
  endpoint: "/sapi/v1/capital/withdraw/address/list",
901
954
  method: "GET",
902
- params: localVarQueryParameter,
955
+ queryParams: localVarQueryParameter,
956
+ bodyParams: localVarBodyParameter,
903
957
  timeUnit: _timeUnit
904
958
  };
905
959
  },
906
960
  fetchWithdrawQuota: async () => {
907
961
  const localVarQueryParameter = {};
962
+ const localVarBodyParameter = {};
908
963
  let _timeUnit;
909
964
  if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
910
965
  return {
911
966
  endpoint: "/sapi/v1/capital/withdraw/quota",
912
967
  method: "GET",
913
- params: localVarQueryParameter,
968
+ queryParams: localVarQueryParameter,
969
+ bodyParams: localVarBodyParameter,
914
970
  timeUnit: _timeUnit
915
971
  };
916
972
  },
917
973
  oneClickArrivalDepositApply: async (depositId, txId, subAccountId, subUserId) => {
918
974
  const localVarQueryParameter = {};
975
+ const localVarBodyParameter = {};
919
976
  if (depositId !== void 0 && depositId !== null) localVarQueryParameter["depositId"] = depositId;
920
977
  if (txId !== void 0 && txId !== null) localVarQueryParameter["txId"] = txId;
921
978
  if (subAccountId !== void 0 && subAccountId !== null) localVarQueryParameter["subAccountId"] = subAccountId;
@@ -925,7 +982,8 @@ const CapitalApiAxiosParamCreator = function(configuration) {
925
982
  return {
926
983
  endpoint: "/sapi/v1/capital/deposit/credit-apply",
927
984
  method: "POST",
928
- params: localVarQueryParameter,
985
+ queryParams: localVarQueryParameter,
986
+ bodyParams: localVarBodyParameter,
929
987
  timeUnit: _timeUnit
930
988
  };
931
989
  },
@@ -934,6 +992,7 @@ const CapitalApiAxiosParamCreator = function(configuration) {
934
992
  assertParamExists("withdraw", "address", address);
935
993
  assertParamExists("withdraw", "amount", amount);
936
994
  const localVarQueryParameter = {};
995
+ const localVarBodyParameter = {};
937
996
  if (coin !== void 0 && coin !== null) localVarQueryParameter["coin"] = coin;
938
997
  if (withdrawOrderId !== void 0 && withdrawOrderId !== null) localVarQueryParameter["withdrawOrderId"] = withdrawOrderId;
939
998
  if (network !== void 0 && network !== null) localVarQueryParameter["network"] = network;
@@ -949,12 +1008,14 @@ const CapitalApiAxiosParamCreator = function(configuration) {
949
1008
  return {
950
1009
  endpoint: "/sapi/v1/capital/withdraw/apply",
951
1010
  method: "POST",
952
- params: localVarQueryParameter,
1011
+ queryParams: localVarQueryParameter,
1012
+ bodyParams: localVarBodyParameter,
953
1013
  timeUnit: _timeUnit
954
1014
  };
955
1015
  },
956
1016
  withdrawHistory: async (coin, withdrawOrderId, status, offset, limit, idList, startTime, endTime, recvWindow) => {
957
1017
  const localVarQueryParameter = {};
1018
+ const localVarBodyParameter = {};
958
1019
  if (coin !== void 0 && coin !== null) localVarQueryParameter["coin"] = coin;
959
1020
  if (withdrawOrderId !== void 0 && withdrawOrderId !== null) localVarQueryParameter["withdrawOrderId"] = withdrawOrderId;
960
1021
  if (status !== void 0 && status !== null) localVarQueryParameter["status"] = status;
@@ -969,7 +1030,8 @@ const CapitalApiAxiosParamCreator = function(configuration) {
969
1030
  return {
970
1031
  endpoint: "/sapi/v1/capital/withdraw/history",
971
1032
  method: "GET",
972
- params: localVarQueryParameter,
1033
+ queryParams: localVarQueryParameter,
1034
+ bodyParams: localVarBodyParameter,
973
1035
  timeUnit: _timeUnit
974
1036
  };
975
1037
  }
@@ -998,7 +1060,7 @@ var CapitalApi = class {
998
1060
  */
999
1061
  async allCoinsInformation(requestParameters = {}) {
1000
1062
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.allCoinsInformation(requestParameters?.recvWindow);
1001
- return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.params, localVarAxiosArgs?.timeUnit, { isSigned: true });
1063
+ return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
1002
1064
  }
1003
1065
  /**
1004
1066
  * Fetch deposit address with network.
@@ -1018,7 +1080,7 @@ var CapitalApi = class {
1018
1080
  */
1019
1081
  async depositAddress(requestParameters) {
1020
1082
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.depositAddress(requestParameters?.coin, requestParameters?.network, requestParameters?.amount, requestParameters?.recvWindow);
1021
- return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.params, localVarAxiosArgs?.timeUnit, { isSigned: true });
1083
+ return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
1022
1084
  }
1023
1085
  /**
1024
1086
  * Fetch deposit history.
@@ -1038,7 +1100,7 @@ var CapitalApi = class {
1038
1100
  */
1039
1101
  async depositHistory(requestParameters = {}) {
1040
1102
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.depositHistory(requestParameters?.includeSource, requestParameters?.coin, requestParameters?.status, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.offset, requestParameters?.limit, requestParameters?.recvWindow, requestParameters?.txId);
1041
- return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.params, localVarAxiosArgs?.timeUnit, { isSigned: true });
1103
+ return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
1042
1104
  }
1043
1105
  /**
1044
1106
  * Fetch deposit address list with network.
@@ -1058,7 +1120,7 @@ var CapitalApi = class {
1058
1120
  */
1059
1121
  async fetchDepositAddressListWithNetwork(requestParameters) {
1060
1122
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.fetchDepositAddressListWithNetwork(requestParameters?.coin, requestParameters?.network);
1061
- return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.params, localVarAxiosArgs?.timeUnit, { isSigned: true });
1123
+ return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
1062
1124
  }
1063
1125
  /**
1064
1126
  * Fetch withdraw address list
@@ -1073,7 +1135,7 @@ var CapitalApi = class {
1073
1135
  */
1074
1136
  async fetchWithdrawAddressList() {
1075
1137
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.fetchWithdrawAddressList();
1076
- return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.params, localVarAxiosArgs?.timeUnit, { isSigned: true });
1138
+ return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
1077
1139
  }
1078
1140
  /**
1079
1141
  * Fetch withdraw quota
@@ -1088,7 +1150,7 @@ var CapitalApi = class {
1088
1150
  */
1089
1151
  async fetchWithdrawQuota() {
1090
1152
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.fetchWithdrawQuota();
1091
- return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.params, localVarAxiosArgs?.timeUnit, { isSigned: true });
1153
+ return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
1092
1154
  }
1093
1155
  /**
1094
1156
  * Apply deposit credit for expired address (One click arrival)
@@ -1106,7 +1168,7 @@ var CapitalApi = class {
1106
1168
  */
1107
1169
  async oneClickArrivalDepositApply(requestParameters = {}) {
1108
1170
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.oneClickArrivalDepositApply(requestParameters?.depositId, requestParameters?.txId, requestParameters?.subAccountId, requestParameters?.subUserId);
1109
- return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.params, localVarAxiosArgs?.timeUnit, { isSigned: true });
1171
+ return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
1110
1172
  }
1111
1173
  /**
1112
1174
  * Submit a withdraw request.
@@ -1127,7 +1189,7 @@ var CapitalApi = class {
1127
1189
  */
1128
1190
  async withdraw(requestParameters) {
1129
1191
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.withdraw(requestParameters?.coin, requestParameters?.address, requestParameters?.amount, requestParameters?.withdrawOrderId, requestParameters?.network, requestParameters?.addressTag, requestParameters?.transactionFeeFlag, requestParameters?.name, requestParameters?.walletType, requestParameters?.recvWindow);
1130
- return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.params, localVarAxiosArgs?.timeUnit, { isSigned: true });
1192
+ return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
1131
1193
  }
1132
1194
  /**
1133
1195
  * Fetch withdraw history.
@@ -1151,7 +1213,7 @@ var CapitalApi = class {
1151
1213
  */
1152
1214
  async withdrawHistory(requestParameters = {}) {
1153
1215
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.withdrawHistory(requestParameters?.coin, requestParameters?.withdrawOrderId, requestParameters?.status, requestParameters?.offset, requestParameters?.limit, requestParameters?.idList, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.recvWindow);
1154
- return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.params, localVarAxiosArgs?.timeUnit, { isSigned: true });
1216
+ return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
1155
1217
  }
1156
1218
  };
1157
1219
 
@@ -1176,24 +1238,28 @@ const OthersApiAxiosParamCreator = function(configuration) {
1176
1238
  return {
1177
1239
  getSymbolsDelistScheduleForSpot: async (recvWindow) => {
1178
1240
  const localVarQueryParameter = {};
1241
+ const localVarBodyParameter = {};
1179
1242
  if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
1180
1243
  let _timeUnit;
1181
1244
  if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
1182
1245
  return {
1183
1246
  endpoint: "/sapi/v1/spot/delist-schedule",
1184
1247
  method: "GET",
1185
- params: localVarQueryParameter,
1248
+ queryParams: localVarQueryParameter,
1249
+ bodyParams: localVarBodyParameter,
1186
1250
  timeUnit: _timeUnit
1187
1251
  };
1188
1252
  },
1189
1253
  systemStatus: async () => {
1190
1254
  const localVarQueryParameter = {};
1255
+ const localVarBodyParameter = {};
1191
1256
  let _timeUnit;
1192
1257
  if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
1193
1258
  return {
1194
1259
  endpoint: "/sapi/v1/system/status",
1195
1260
  method: "GET",
1196
- params: localVarQueryParameter,
1261
+ queryParams: localVarQueryParameter,
1262
+ bodyParams: localVarBodyParameter,
1197
1263
  timeUnit: _timeUnit
1198
1264
  };
1199
1265
  }
@@ -1222,7 +1288,7 @@ var OthersApi = class {
1222
1288
  */
1223
1289
  async getSymbolsDelistScheduleForSpot(requestParameters = {}) {
1224
1290
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.getSymbolsDelistScheduleForSpot(requestParameters?.recvWindow);
1225
- return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.params, localVarAxiosArgs?.timeUnit, { isSigned: false });
1291
+ return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
1226
1292
  }
1227
1293
  /**
1228
1294
  * Fetch system status.
@@ -1237,7 +1303,7 @@ var OthersApi = class {
1237
1303
  */
1238
1304
  async systemStatus() {
1239
1305
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.systemStatus();
1240
- return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.params, localVarAxiosArgs?.timeUnit, { isSigned: false });
1306
+ return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
1241
1307
  }
1242
1308
  };
1243
1309
 
@@ -1269,6 +1335,7 @@ const TravelRuleApiAxiosParamCreator = function(configuration) {
1269
1335
  assertParamExists("brokerWithdraw", "originatorPii", originatorPii);
1270
1336
  assertParamExists("brokerWithdraw", "signature", signature);
1271
1337
  const localVarQueryParameter = {};
1338
+ const localVarBodyParameter = {};
1272
1339
  if (address !== void 0 && address !== null) localVarQueryParameter["address"] = address;
1273
1340
  if (addressTag !== void 0 && addressTag !== null) localVarQueryParameter["addressTag"] = addressTag;
1274
1341
  if (network !== void 0 && network !== null) localVarQueryParameter["network"] = network;
@@ -1286,24 +1353,28 @@ const TravelRuleApiAxiosParamCreator = function(configuration) {
1286
1353
  return {
1287
1354
  endpoint: "/sapi/v1/localentity/broker/withdraw/apply",
1288
1355
  method: "POST",
1289
- params: localVarQueryParameter,
1356
+ queryParams: localVarQueryParameter,
1357
+ bodyParams: localVarBodyParameter,
1290
1358
  timeUnit: _timeUnit
1291
1359
  };
1292
1360
  },
1293
1361
  checkQuestionnaireRequirements: async (recvWindow) => {
1294
1362
  const localVarQueryParameter = {};
1363
+ const localVarBodyParameter = {};
1295
1364
  if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
1296
1365
  let _timeUnit;
1297
1366
  if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
1298
1367
  return {
1299
1368
  endpoint: "/sapi/v1/localentity/questionnaire-requirements",
1300
1369
  method: "GET",
1301
- params: localVarQueryParameter,
1370
+ queryParams: localVarQueryParameter,
1371
+ bodyParams: localVarBodyParameter,
1302
1372
  timeUnit: _timeUnit
1303
1373
  };
1304
1374
  },
1305
1375
  depositHistoryTravelRule: async (trId, txId, tranId, network, coin, travelRuleStatus, pendingQuestionnaire, startTime, endTime, offset, limit) => {
1306
1376
  const localVarQueryParameter = {};
1377
+ const localVarBodyParameter = {};
1307
1378
  if (trId !== void 0 && trId !== null) localVarQueryParameter["trId"] = trId;
1308
1379
  if (txId !== void 0 && txId !== null) localVarQueryParameter["txId"] = txId;
1309
1380
  if (tranId !== void 0 && tranId !== null) localVarQueryParameter["tranId"] = tranId;
@@ -1320,12 +1391,14 @@ const TravelRuleApiAxiosParamCreator = function(configuration) {
1320
1391
  return {
1321
1392
  endpoint: "/sapi/v1/localentity/deposit/history",
1322
1393
  method: "GET",
1323
- params: localVarQueryParameter,
1394
+ queryParams: localVarQueryParameter,
1395
+ bodyParams: localVarBodyParameter,
1324
1396
  timeUnit: _timeUnit
1325
1397
  };
1326
1398
  },
1327
1399
  depositHistoryV2: async (depositId, txId, network, coin, retrieveQuestionnaire, startTime, endTime, offset, limit) => {
1328
1400
  const localVarQueryParameter = {};
1401
+ const localVarBodyParameter = {};
1329
1402
  if (depositId !== void 0 && depositId !== null) localVarQueryParameter["depositId"] = depositId;
1330
1403
  if (txId !== void 0 && txId !== null) localVarQueryParameter["txId"] = txId;
1331
1404
  if (network !== void 0 && network !== null) localVarQueryParameter["network"] = network;
@@ -1340,19 +1413,22 @@ const TravelRuleApiAxiosParamCreator = function(configuration) {
1340
1413
  return {
1341
1414
  endpoint: "/sapi/v2/localentity/deposit/history",
1342
1415
  method: "GET",
1343
- params: localVarQueryParameter,
1416
+ queryParams: localVarQueryParameter,
1417
+ bodyParams: localVarBodyParameter,
1344
1418
  timeUnit: _timeUnit
1345
1419
  };
1346
1420
  },
1347
1421
  fetchAddressVerificationList: async (recvWindow) => {
1348
1422
  const localVarQueryParameter = {};
1423
+ const localVarBodyParameter = {};
1349
1424
  if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
1350
1425
  let _timeUnit;
1351
1426
  if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
1352
1427
  return {
1353
1428
  endpoint: "/sapi/v1/addressVerify/list",
1354
1429
  method: "GET",
1355
- params: localVarQueryParameter,
1430
+ queryParams: localVarQueryParameter,
1431
+ bodyParams: localVarBodyParameter,
1356
1432
  timeUnit: _timeUnit
1357
1433
  };
1358
1434
  },
@@ -1363,6 +1439,7 @@ const TravelRuleApiAxiosParamCreator = function(configuration) {
1363
1439
  assertParamExists("submitDepositQuestionnaire", "beneficiaryPii", beneficiaryPii);
1364
1440
  assertParamExists("submitDepositQuestionnaire", "signature", signature);
1365
1441
  const localVarQueryParameter = {};
1442
+ const localVarBodyParameter = {};
1366
1443
  if (subAccountId !== void 0 && subAccountId !== null) localVarQueryParameter["subAccountId"] = subAccountId;
1367
1444
  if (depositId !== void 0 && depositId !== null) localVarQueryParameter["depositId"] = depositId;
1368
1445
  if (questionnaire !== void 0 && questionnaire !== null) localVarQueryParameter["questionnaire"] = questionnaire;
@@ -1378,7 +1455,8 @@ const TravelRuleApiAxiosParamCreator = function(configuration) {
1378
1455
  return {
1379
1456
  endpoint: "/sapi/v1/localentity/broker/deposit/provide-info",
1380
1457
  method: "PUT",
1381
- params: localVarQueryParameter,
1458
+ queryParams: localVarQueryParameter,
1459
+ bodyParams: localVarBodyParameter,
1382
1460
  timeUnit: _timeUnit
1383
1461
  };
1384
1462
  },
@@ -1386,6 +1464,7 @@ const TravelRuleApiAxiosParamCreator = function(configuration) {
1386
1464
  assertParamExists("submitDepositQuestionnaireTravelRule", "tranId", tranId);
1387
1465
  assertParamExists("submitDepositQuestionnaireTravelRule", "questionnaire", questionnaire);
1388
1466
  const localVarQueryParameter = {};
1467
+ const localVarBodyParameter = {};
1389
1468
  if (tranId !== void 0 && tranId !== null) localVarQueryParameter["tranId"] = tranId;
1390
1469
  if (questionnaire !== void 0 && questionnaire !== null) localVarQueryParameter["questionnaire"] = questionnaire;
1391
1470
  let _timeUnit;
@@ -1393,24 +1472,28 @@ const TravelRuleApiAxiosParamCreator = function(configuration) {
1393
1472
  return {
1394
1473
  endpoint: "/sapi/v1/localentity/deposit/provide-info",
1395
1474
  method: "PUT",
1396
- params: localVarQueryParameter,
1475
+ queryParams: localVarQueryParameter,
1476
+ bodyParams: localVarBodyParameter,
1397
1477
  timeUnit: _timeUnit
1398
1478
  };
1399
1479
  },
1400
1480
  vaspList: async (recvWindow) => {
1401
1481
  const localVarQueryParameter = {};
1482
+ const localVarBodyParameter = {};
1402
1483
  if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
1403
1484
  let _timeUnit;
1404
1485
  if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
1405
1486
  return {
1406
1487
  endpoint: "/sapi/v1/localentity/vasp",
1407
1488
  method: "GET",
1408
- params: localVarQueryParameter,
1489
+ queryParams: localVarQueryParameter,
1490
+ bodyParams: localVarBodyParameter,
1409
1491
  timeUnit: _timeUnit
1410
1492
  };
1411
1493
  },
1412
1494
  withdrawHistoryV1: async (trId, txId, withdrawOrderId, network, coin, travelRuleStatus, offset, limit, startTime, endTime, recvWindow) => {
1413
1495
  const localVarQueryParameter = {};
1496
+ const localVarBodyParameter = {};
1414
1497
  if (trId !== void 0 && trId !== null) localVarQueryParameter["trId"] = trId;
1415
1498
  if (txId !== void 0 && txId !== null) localVarQueryParameter["txId"] = txId;
1416
1499
  if (withdrawOrderId !== void 0 && withdrawOrderId !== null) localVarQueryParameter["withdrawOrderId"] = withdrawOrderId;
@@ -1427,12 +1510,14 @@ const TravelRuleApiAxiosParamCreator = function(configuration) {
1427
1510
  return {
1428
1511
  endpoint: "/sapi/v1/localentity/withdraw/history",
1429
1512
  method: "GET",
1430
- params: localVarQueryParameter,
1513
+ queryParams: localVarQueryParameter,
1514
+ bodyParams: localVarBodyParameter,
1431
1515
  timeUnit: _timeUnit
1432
1516
  };
1433
1517
  },
1434
1518
  withdrawHistoryV2: async (trId, txId, withdrawOrderId, network, coin, travelRuleStatus, offset, limit, startTime, endTime, recvWindow) => {
1435
1519
  const localVarQueryParameter = {};
1520
+ const localVarBodyParameter = {};
1436
1521
  if (trId !== void 0 && trId !== null) localVarQueryParameter["trId"] = trId;
1437
1522
  if (txId !== void 0 && txId !== null) localVarQueryParameter["txId"] = txId;
1438
1523
  if (withdrawOrderId !== void 0 && withdrawOrderId !== null) localVarQueryParameter["withdrawOrderId"] = withdrawOrderId;
@@ -1449,7 +1534,8 @@ const TravelRuleApiAxiosParamCreator = function(configuration) {
1449
1534
  return {
1450
1535
  endpoint: "/sapi/v2/localentity/withdraw/history",
1451
1536
  method: "GET",
1452
- params: localVarQueryParameter,
1537
+ queryParams: localVarQueryParameter,
1538
+ bodyParams: localVarBodyParameter,
1453
1539
  timeUnit: _timeUnit
1454
1540
  };
1455
1541
  },
@@ -1459,6 +1545,7 @@ const TravelRuleApiAxiosParamCreator = function(configuration) {
1459
1545
  assertParamExists("withdrawTravelRule", "amount", amount);
1460
1546
  assertParamExists("withdrawTravelRule", "questionnaire", questionnaire);
1461
1547
  const localVarQueryParameter = {};
1548
+ const localVarBodyParameter = {};
1462
1549
  if (coin !== void 0 && coin !== null) localVarQueryParameter["coin"] = coin;
1463
1550
  if (withdrawOrderId !== void 0 && withdrawOrderId !== null) localVarQueryParameter["withdrawOrderId"] = withdrawOrderId;
1464
1551
  if (network !== void 0 && network !== null) localVarQueryParameter["network"] = network;
@@ -1475,7 +1562,8 @@ const TravelRuleApiAxiosParamCreator = function(configuration) {
1475
1562
  return {
1476
1563
  endpoint: "/sapi/v1/localentity/withdraw/apply",
1477
1564
  method: "POST",
1478
- params: localVarQueryParameter,
1565
+ queryParams: localVarQueryParameter,
1566
+ bodyParams: localVarBodyParameter,
1479
1567
  timeUnit: _timeUnit
1480
1568
  };
1481
1569
  }
@@ -1509,7 +1597,7 @@ var TravelRuleApi = class {
1509
1597
  */
1510
1598
  async brokerWithdraw(requestParameters) {
1511
1599
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.brokerWithdraw(requestParameters?.address, requestParameters?.coin, requestParameters?.amount, requestParameters?.withdrawOrderId, requestParameters?.questionnaire, requestParameters?.originatorPii, requestParameters?.signature, requestParameters?.addressTag, requestParameters?.network, requestParameters?.addressName, requestParameters?.transactionFeeFlag, requestParameters?.walletType);
1512
- return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.params, localVarAxiosArgs?.timeUnit, { isSigned: true });
1600
+ return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
1513
1601
  }
1514
1602
  /**
1515
1603
  * This API will return user-specific Travel Rule questionnaire requirement information in reference to the current API key.
@@ -1525,7 +1613,7 @@ var TravelRuleApi = class {
1525
1613
  */
1526
1614
  async checkQuestionnaireRequirements(requestParameters = {}) {
1527
1615
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.checkQuestionnaireRequirements(requestParameters?.recvWindow);
1528
- return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.params, localVarAxiosArgs?.timeUnit, { isSigned: true });
1616
+ return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
1529
1617
  }
1530
1618
  /**
1531
1619
  * Fetch deposit history for local entities that required travel rule.
@@ -1544,7 +1632,7 @@ var TravelRuleApi = class {
1544
1632
  */
1545
1633
  async depositHistoryTravelRule(requestParameters = {}) {
1546
1634
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.depositHistoryTravelRule(requestParameters?.trId, requestParameters?.txId, requestParameters?.tranId, requestParameters?.network, requestParameters?.coin, requestParameters?.travelRuleStatus, requestParameters?.pendingQuestionnaire, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.offset, requestParameters?.limit);
1547
- return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.params, localVarAxiosArgs?.timeUnit, { isSigned: true });
1635
+ return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
1548
1636
  }
1549
1637
  /**
1550
1638
  * Fetch deposit history for local entities that with required travel rule information.
@@ -1563,7 +1651,7 @@ var TravelRuleApi = class {
1563
1651
  */
1564
1652
  async depositHistoryV2(requestParameters = {}) {
1565
1653
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.depositHistoryV2(requestParameters?.depositId, requestParameters?.txId, requestParameters?.network, requestParameters?.coin, requestParameters?.retrieveQuestionnaire, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.offset, requestParameters?.limit);
1566
- return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.params, localVarAxiosArgs?.timeUnit, { isSigned: true });
1654
+ return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
1567
1655
  }
1568
1656
  /**
1569
1657
  * Fetch address verification list for user to check on status and other details for the addresses stored in Address Book.
@@ -1579,7 +1667,7 @@ var TravelRuleApi = class {
1579
1667
  */
1580
1668
  async fetchAddressVerificationList(requestParameters = {}) {
1581
1669
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.fetchAddressVerificationList(requestParameters?.recvWindow);
1582
- return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.params, localVarAxiosArgs?.timeUnit, { isSigned: true });
1670
+ return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
1583
1671
  }
1584
1672
  /**
1585
1673
  * Submit questionnaire for brokers of local entities that require travel rule.
@@ -1600,7 +1688,7 @@ var TravelRuleApi = class {
1600
1688
  */
1601
1689
  async submitDepositQuestionnaire(requestParameters) {
1602
1690
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.submitDepositQuestionnaire(requestParameters?.subAccountId, requestParameters?.depositId, requestParameters?.questionnaire, requestParameters?.beneficiaryPii, requestParameters?.signature, requestParameters?.network, requestParameters?.coin, requestParameters?.amount, requestParameters?.address, requestParameters?.addressTag);
1603
- return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.params, localVarAxiosArgs?.timeUnit, { isSigned: true });
1691
+ return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
1604
1692
  }
1605
1693
  /**
1606
1694
  * Submit questionnaire for local entities that require travel rule.
@@ -1621,7 +1709,7 @@ var TravelRuleApi = class {
1621
1709
  */
1622
1710
  async submitDepositQuestionnaireTravelRule(requestParameters) {
1623
1711
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.submitDepositQuestionnaireTravelRule(requestParameters?.tranId, requestParameters?.questionnaire);
1624
- return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.params, localVarAxiosArgs?.timeUnit, { isSigned: true });
1712
+ return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
1625
1713
  }
1626
1714
  /**
1627
1715
  * Fetch the VASP list for local entities.
@@ -1637,7 +1725,7 @@ var TravelRuleApi = class {
1637
1725
  */
1638
1726
  async vaspList(requestParameters = {}) {
1639
1727
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.vaspList(requestParameters?.recvWindow);
1640
- return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.params, localVarAxiosArgs?.timeUnit, { isSigned: true });
1728
+ return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
1641
1729
  }
1642
1730
  /**
1643
1731
  * Fetch withdraw history for local entities that required travel rule.
@@ -1657,7 +1745,7 @@ var TravelRuleApi = class {
1657
1745
  */
1658
1746
  async withdrawHistoryV1(requestParameters = {}) {
1659
1747
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.withdrawHistoryV1(requestParameters?.trId, requestParameters?.txId, requestParameters?.withdrawOrderId, requestParameters?.network, requestParameters?.coin, requestParameters?.travelRuleStatus, requestParameters?.offset, requestParameters?.limit, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.recvWindow);
1660
- return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.params, localVarAxiosArgs?.timeUnit, { isSigned: true });
1748
+ return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
1661
1749
  }
1662
1750
  /**
1663
1751
  * Fetch withdraw history for local entities that required travel rule.
@@ -1683,7 +1771,7 @@ var TravelRuleApi = class {
1683
1771
  */
1684
1772
  async withdrawHistoryV2(requestParameters = {}) {
1685
1773
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.withdrawHistoryV2(requestParameters?.trId, requestParameters?.txId, requestParameters?.withdrawOrderId, requestParameters?.network, requestParameters?.coin, requestParameters?.travelRuleStatus, requestParameters?.offset, requestParameters?.limit, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.recvWindow);
1686
- return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.params, localVarAxiosArgs?.timeUnit, { isSigned: true });
1774
+ return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
1687
1775
  }
1688
1776
  /**
1689
1777
  * Submit a withdrawal request for local entities that required travel rule.
@@ -1704,7 +1792,7 @@ var TravelRuleApi = class {
1704
1792
  */
1705
1793
  async withdrawTravelRule(requestParameters) {
1706
1794
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.withdrawTravelRule(requestParameters?.coin, requestParameters?.address, requestParameters?.amount, requestParameters?.questionnaire, requestParameters?.withdrawOrderId, requestParameters?.network, requestParameters?.addressTag, requestParameters?.transactionFeeFlag, requestParameters?.name, requestParameters?.walletType, requestParameters?.recvWindow);
1707
- return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.params, localVarAxiosArgs?.timeUnit, { isSigned: true });
1795
+ return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
1708
1796
  }
1709
1797
  };
1710
1798
 
@@ -1735,23 +1823,25 @@ var RestAPI = class {
1735
1823
  * Generic function to send a request.
1736
1824
  * @param endpoint - The API endpoint to call.
1737
1825
  * @param method - HTTP method to use (GET, POST, DELETE, etc.).
1738
- * @param params - Query parameters for the request.
1826
+ * @param queryParams - Query parameters for the request.
1827
+ * @param bodyParams - Body parameters for the request.
1739
1828
  *
1740
1829
  * @returns A promise resolving to the response data object.
1741
1830
  */
1742
- sendRequest(endpoint, method, params = {}) {
1743
- return sendRequest(this.configuration, endpoint, method, params, void 0);
1831
+ sendRequest(endpoint, method, queryParams = {}, bodyParams = {}) {
1832
+ return sendRequest(this.configuration, endpoint, method, queryParams, bodyParams, void 0);
1744
1833
  }
1745
1834
  /**
1746
1835
  * Generic function to send a signed request.
1747
1836
  * @param endpoint - The API endpoint to call.
1748
1837
  * @param method - HTTP method to use (GET, POST, DELETE, etc.).
1749
- * @param params - Query parameters for the request.
1838
+ * @param queryParams - Query parameters for the request.
1839
+ * @param bodyParams - Body parameters for the request.
1750
1840
  *
1751
1841
  * @returns A promise resolving to the response data object.
1752
1842
  */
1753
- sendSignedRequest(endpoint, method, params = {}) {
1754
- return sendRequest(this.configuration, endpoint, method, params, void 0, { isSigned: true });
1843
+ sendSignedRequest(endpoint, method, queryParams = {}, bodyParams = {}) {
1844
+ return sendRequest(this.configuration, endpoint, method, queryParams, bodyParams, void 0, { isSigned: true });
1755
1845
  }
1756
1846
  /**
1757
1847
  * Fetch account api trading status detail.
@@ -2579,5 +2669,5 @@ var Wallet = class {
2579
2669
  };
2580
2670
 
2581
2671
  //#endregion
2582
- export { BadRequestError, ConfigurationWallet, ConnectorClientError, ForbiddenError, NetworkError, NotFoundError, RateLimitBanError, RequiredError, ServerError, TooManyRequestsError, UnauthorizedError, WALLET_REST_API_PROD_URL, Wallet, rest_api_exports as WalletRestAPI };
2672
+ export { BadRequestError, ConnectorClientError, ForbiddenError, NetworkError, NotFoundError, RateLimitBanError, RequiredError, ServerError, TooManyRequestsError, UnauthorizedError, WALLET_REST_API_PROD_URL, Wallet, rest_api_exports as WalletRestAPI };
2583
2673
  //# sourceMappingURL=index.mjs.map