@binance/wallet 12.0.3 → 13.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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.3";
6
+ var version = "13.0.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,50 @@ 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,
309
+ timeUnit: _timeUnit
310
+ };
311
+ },
312
+ dustConvert: async (asset, clientId, targetAsset, thirdPartyClientId, dustQuotaAssetToTargetAssetPrice) => {
313
+ assertParamExists("dustConvert", "asset", asset);
314
+ const localVarQueryParameter = {};
315
+ const localVarBodyParameter = {};
316
+ if (asset !== void 0 && asset !== null) localVarQueryParameter["asset"] = asset;
317
+ if (clientId !== void 0 && clientId !== null) localVarQueryParameter["clientId"] = clientId;
318
+ if (targetAsset !== void 0 && targetAsset !== null) localVarQueryParameter["targetAsset"] = targetAsset;
319
+ if (thirdPartyClientId !== void 0 && thirdPartyClientId !== null) localVarQueryParameter["thirdPartyClientId"] = thirdPartyClientId;
320
+ if (dustQuotaAssetToTargetAssetPrice !== void 0 && dustQuotaAssetToTargetAssetPrice !== null) localVarQueryParameter["dustQuotaAssetToTargetAssetPrice"] = dustQuotaAssetToTargetAssetPrice;
321
+ let _timeUnit;
322
+ if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
323
+ return {
324
+ endpoint: "/sapi/v1/asset/dust-convert/convert",
325
+ method: "POST",
326
+ queryParams: localVarQueryParameter,
327
+ bodyParams: localVarBodyParameter,
328
+ timeUnit: _timeUnit
329
+ };
330
+ },
331
+ dustConvertibleAssets: async (targetAsset, dustQuotaAssetToTargetAssetPrice) => {
332
+ assertParamExists("dustConvertibleAssets", "targetAsset", targetAsset);
333
+ const localVarQueryParameter = {};
334
+ const localVarBodyParameter = {};
335
+ if (targetAsset !== void 0 && targetAsset !== null) localVarQueryParameter["targetAsset"] = targetAsset;
336
+ if (dustQuotaAssetToTargetAssetPrice !== void 0 && dustQuotaAssetToTargetAssetPrice !== null) localVarQueryParameter["dustQuotaAssetToTargetAssetPrice"] = dustQuotaAssetToTargetAssetPrice;
337
+ let _timeUnit;
338
+ if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
339
+ return {
340
+ endpoint: "/sapi/v1/asset/dust-convert/query-convertible-assets",
341
+ method: "POST",
342
+ queryParams: localVarQueryParameter,
343
+ bodyParams: localVarBodyParameter,
291
344
  timeUnit: _timeUnit
292
345
  };
293
346
  },
294
347
  dustTransfer: async (asset, accountType, recvWindow) => {
295
348
  assertParamExists("dustTransfer", "asset", asset);
296
349
  const localVarQueryParameter = {};
350
+ const localVarBodyParameter = {};
297
351
  if (asset !== void 0 && asset !== null) localVarQueryParameter["asset"] = asset;
298
352
  if (accountType !== void 0 && accountType !== null) localVarQueryParameter["accountType"] = accountType;
299
353
  if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
@@ -302,12 +356,14 @@ const AssetApiAxiosParamCreator = function(configuration) {
302
356
  return {
303
357
  endpoint: "/sapi/v1/asset/dust",
304
358
  method: "POST",
305
- params: localVarQueryParameter,
359
+ queryParams: localVarQueryParameter,
360
+ bodyParams: localVarBodyParameter,
306
361
  timeUnit: _timeUnit
307
362
  };
308
363
  },
309
364
  dustlog: async (startTime, endTime, recvWindow) => {
310
365
  const localVarQueryParameter = {};
366
+ const localVarBodyParameter = {};
311
367
  if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
312
368
  if (endTime !== void 0 && endTime !== null) localVarQueryParameter["endTime"] = endTime;
313
369
  if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
@@ -316,12 +372,14 @@ const AssetApiAxiosParamCreator = function(configuration) {
316
372
  return {
317
373
  endpoint: "/sapi/v1/asset/dribblet",
318
374
  method: "GET",
319
- params: localVarQueryParameter,
375
+ queryParams: localVarQueryParameter,
376
+ bodyParams: localVarBodyParameter,
320
377
  timeUnit: _timeUnit
321
378
  };
322
379
  },
323
380
  fundingWallet: async (asset, needBtcValuation, recvWindow) => {
324
381
  const localVarQueryParameter = {};
382
+ const localVarBodyParameter = {};
325
383
  if (asset !== void 0 && asset !== null) localVarQueryParameter["asset"] = asset;
326
384
  if (needBtcValuation !== void 0 && needBtcValuation !== null) localVarQueryParameter["needBtcValuation"] = needBtcValuation;
327
385
  if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
@@ -330,12 +388,14 @@ const AssetApiAxiosParamCreator = function(configuration) {
330
388
  return {
331
389
  endpoint: "/sapi/v1/asset/get-funding-asset",
332
390
  method: "POST",
333
- params: localVarQueryParameter,
391
+ queryParams: localVarQueryParameter,
392
+ bodyParams: localVarBodyParameter,
334
393
  timeUnit: _timeUnit
335
394
  };
336
395
  },
337
396
  getAssetsThatCanBeConvertedIntoBnb: async (accountType, recvWindow) => {
338
397
  const localVarQueryParameter = {};
398
+ const localVarBodyParameter = {};
339
399
  if (accountType !== void 0 && accountType !== null) localVarQueryParameter["accountType"] = accountType;
340
400
  if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
341
401
  let _timeUnit;
@@ -343,7 +403,8 @@ const AssetApiAxiosParamCreator = function(configuration) {
343
403
  return {
344
404
  endpoint: "/sapi/v1/asset/dust-btc",
345
405
  method: "POST",
346
- params: localVarQueryParameter,
406
+ queryParams: localVarQueryParameter,
407
+ bodyParams: localVarBodyParameter,
347
408
  timeUnit: _timeUnit
348
409
  };
349
410
  },
@@ -351,6 +412,7 @@ const AssetApiAxiosParamCreator = function(configuration) {
351
412
  assertParamExists("getCloudMiningPaymentAndRefundHistory", "startTime", startTime);
352
413
  assertParamExists("getCloudMiningPaymentAndRefundHistory", "endTime", endTime);
353
414
  const localVarQueryParameter = {};
415
+ const localVarBodyParameter = {};
354
416
  if (tranId !== void 0 && tranId !== null) localVarQueryParameter["tranId"] = tranId;
355
417
  if (clientTranId !== void 0 && clientTranId !== null) localVarQueryParameter["clientTranId"] = clientTranId;
356
418
  if (asset !== void 0 && asset !== null) localVarQueryParameter["asset"] = asset;
@@ -363,18 +425,21 @@ const AssetApiAxiosParamCreator = function(configuration) {
363
425
  return {
364
426
  endpoint: "/sapi/v1/asset/ledger-transfer/cloud-mining/queryByPage",
365
427
  method: "GET",
366
- params: localVarQueryParameter,
428
+ queryParams: localVarQueryParameter,
429
+ bodyParams: localVarBodyParameter,
367
430
  timeUnit: _timeUnit
368
431
  };
369
432
  },
370
433
  getOpenSymbolList: async () => {
371
434
  const localVarQueryParameter = {};
435
+ const localVarBodyParameter = {};
372
436
  let _timeUnit;
373
437
  if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
374
438
  return {
375
439
  endpoint: "/sapi/v1/spot/open-symbol-list",
376
440
  method: "GET",
377
- params: localVarQueryParameter,
441
+ queryParams: localVarQueryParameter,
442
+ bodyParams: localVarBodyParameter,
378
443
  timeUnit: _timeUnit
379
444
  };
380
445
  },
@@ -383,6 +448,7 @@ const AssetApiAxiosParamCreator = function(configuration) {
383
448
  assertParamExists("queryUserDelegationHistory", "startTime", startTime);
384
449
  assertParamExists("queryUserDelegationHistory", "endTime", endTime);
385
450
  const localVarQueryParameter = {};
451
+ const localVarBodyParameter = {};
386
452
  if (email !== void 0 && email !== null) localVarQueryParameter["email"] = email;
387
453
  if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
388
454
  if (endTime !== void 0 && endTime !== null) localVarQueryParameter["endTime"] = endTime;
@@ -396,13 +462,15 @@ const AssetApiAxiosParamCreator = function(configuration) {
396
462
  return {
397
463
  endpoint: "/sapi/v1/asset/custody/transfer-history",
398
464
  method: "GET",
399
- params: localVarQueryParameter,
465
+ queryParams: localVarQueryParameter,
466
+ bodyParams: localVarBodyParameter,
400
467
  timeUnit: _timeUnit
401
468
  };
402
469
  },
403
470
  queryUserUniversalTransferHistory: async (type, startTime, endTime, current, size, fromSymbol, toSymbol, recvWindow) => {
404
471
  assertParamExists("queryUserUniversalTransferHistory", "type", type);
405
472
  const localVarQueryParameter = {};
473
+ const localVarBodyParameter = {};
406
474
  if (type !== void 0 && type !== null) localVarQueryParameter["type"] = type;
407
475
  if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
408
476
  if (endTime !== void 0 && endTime !== null) localVarQueryParameter["endTime"] = endTime;
@@ -416,12 +484,14 @@ const AssetApiAxiosParamCreator = function(configuration) {
416
484
  return {
417
485
  endpoint: "/sapi/v1/asset/transfer",
418
486
  method: "GET",
419
- params: localVarQueryParameter,
487
+ queryParams: localVarQueryParameter,
488
+ bodyParams: localVarBodyParameter,
420
489
  timeUnit: _timeUnit
421
490
  };
422
491
  },
423
492
  queryUserWalletBalance: async (quoteAsset, recvWindow) => {
424
493
  const localVarQueryParameter = {};
494
+ const localVarBodyParameter = {};
425
495
  if (quoteAsset !== void 0 && quoteAsset !== null) localVarQueryParameter["quoteAsset"] = quoteAsset;
426
496
  if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
427
497
  let _timeUnit;
@@ -429,12 +499,14 @@ const AssetApiAxiosParamCreator = function(configuration) {
429
499
  return {
430
500
  endpoint: "/sapi/v1/asset/wallet/balance",
431
501
  method: "GET",
432
- params: localVarQueryParameter,
502
+ queryParams: localVarQueryParameter,
503
+ bodyParams: localVarBodyParameter,
433
504
  timeUnit: _timeUnit
434
505
  };
435
506
  },
436
507
  toggleBnbBurnOnSpotTradeAndMarginInterest: async (spotBNBBurn, interestBNBBurn, recvWindow) => {
437
508
  const localVarQueryParameter = {};
509
+ const localVarBodyParameter = {};
438
510
  if (spotBNBBurn !== void 0 && spotBNBBurn !== null) localVarQueryParameter["spotBNBBurn"] = spotBNBBurn;
439
511
  if (interestBNBBurn !== void 0 && interestBNBBurn !== null) localVarQueryParameter["interestBNBBurn"] = interestBNBBurn;
440
512
  if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
@@ -443,12 +515,14 @@ const AssetApiAxiosParamCreator = function(configuration) {
443
515
  return {
444
516
  endpoint: "/sapi/v1/bnbBurn",
445
517
  method: "POST",
446
- params: localVarQueryParameter,
518
+ queryParams: localVarQueryParameter,
519
+ bodyParams: localVarBodyParameter,
447
520
  timeUnit: _timeUnit
448
521
  };
449
522
  },
450
523
  tradeFee: async (symbol, recvWindow) => {
451
524
  const localVarQueryParameter = {};
525
+ const localVarBodyParameter = {};
452
526
  if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
453
527
  if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
454
528
  let _timeUnit;
@@ -456,12 +530,14 @@ const AssetApiAxiosParamCreator = function(configuration) {
456
530
  return {
457
531
  endpoint: "/sapi/v1/asset/tradeFee",
458
532
  method: "GET",
459
- params: localVarQueryParameter,
533
+ queryParams: localVarQueryParameter,
534
+ bodyParams: localVarBodyParameter,
460
535
  timeUnit: _timeUnit
461
536
  };
462
537
  },
463
538
  userAsset: async (asset, needBtcValuation, recvWindow) => {
464
539
  const localVarQueryParameter = {};
540
+ const localVarBodyParameter = {};
465
541
  if (asset !== void 0 && asset !== null) localVarQueryParameter["asset"] = asset;
466
542
  if (needBtcValuation !== void 0 && needBtcValuation !== null) localVarQueryParameter["needBtcValuation"] = needBtcValuation;
467
543
  if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
@@ -470,7 +546,8 @@ const AssetApiAxiosParamCreator = function(configuration) {
470
546
  return {
471
547
  endpoint: "/sapi/v3/asset/getUserAsset",
472
548
  method: "POST",
473
- params: localVarQueryParameter,
549
+ queryParams: localVarQueryParameter,
550
+ bodyParams: localVarBodyParameter,
474
551
  timeUnit: _timeUnit
475
552
  };
476
553
  },
@@ -479,6 +556,7 @@ const AssetApiAxiosParamCreator = function(configuration) {
479
556
  assertParamExists("userUniversalTransfer", "asset", asset);
480
557
  assertParamExists("userUniversalTransfer", "amount", amount);
481
558
  const localVarQueryParameter = {};
559
+ const localVarBodyParameter = {};
482
560
  if (type !== void 0 && type !== null) localVarQueryParameter["type"] = type;
483
561
  if (asset !== void 0 && asset !== null) localVarQueryParameter["asset"] = asset;
484
562
  if (amount !== void 0 && amount !== null) localVarQueryParameter["amount"] = amount;
@@ -490,7 +568,8 @@ const AssetApiAxiosParamCreator = function(configuration) {
490
568
  return {
491
569
  endpoint: "/sapi/v1/asset/transfer",
492
570
  method: "POST",
493
- params: localVarQueryParameter,
571
+ queryParams: localVarQueryParameter,
572
+ bodyParams: localVarBodyParameter,
494
573
  timeUnit: _timeUnit
495
574
  };
496
575
  }
@@ -522,7 +601,7 @@ var AssetApi = class {
522
601
  */
523
602
  async assetDetail(requestParameters = {}) {
524
603
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.assetDetail(requestParameters?.recvWindow);
525
- return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.params, localVarAxiosArgs?.timeUnit, { isSigned: true });
604
+ return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
526
605
  }
527
606
  /**
528
607
  * Query asset dividend record.
@@ -541,7 +620,39 @@ var AssetApi = class {
541
620
  */
542
621
  async assetDividendRecord(requestParameters = {}) {
543
622
  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 });
623
+ return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
624
+ }
625
+ /**
626
+ * Convert dust assets
627
+ *
628
+ * Weight: 10
629
+ *
630
+ * @summary Dust Convert (USER_DATA)
631
+ * @param {DustConvertRequest} requestParameters Request parameters.
632
+ * @returns {Promise<RestApiResponse<DustConvertResponse>>}
633
+ * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
634
+ * @memberof AssetApi
635
+ * @see {@link https://developers.binance.com/docs/wallet/asset/Dust-Convert Binance API Documentation}
636
+ */
637
+ async dustConvert(requestParameters) {
638
+ const localVarAxiosArgs = await this.localVarAxiosParamCreator.dustConvert(requestParameters?.asset, requestParameters?.clientId, requestParameters?.targetAsset, requestParameters?.thirdPartyClientId, requestParameters?.dustQuotaAssetToTargetAssetPrice);
639
+ return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
640
+ }
641
+ /**
642
+ * Query dust convertible assets
643
+ *
644
+ * Weight: 1
645
+ *
646
+ * @summary Dust Convertible Assets (USER_DATA)
647
+ * @param {DustConvertibleAssetsRequest} requestParameters Request parameters.
648
+ * @returns {Promise<RestApiResponse<DustConvertibleAssetsResponse>>}
649
+ * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
650
+ * @memberof AssetApi
651
+ * @see {@link https://developers.binance.com/docs/wallet/asset/Dust-Convertible-Assets Binance API Documentation}
652
+ */
653
+ async dustConvertibleAssets(requestParameters) {
654
+ const localVarAxiosArgs = await this.localVarAxiosParamCreator.dustConvertibleAssets(requestParameters?.targetAsset, requestParameters?.dustQuotaAssetToTargetAssetPrice);
655
+ return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
545
656
  }
546
657
  /**
547
658
  * Convert dust assets to BNB.
@@ -559,7 +670,7 @@ var AssetApi = class {
559
670
  */
560
671
  async dustTransfer(requestParameters) {
561
672
  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 });
673
+ return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
563
674
  }
564
675
  /**
565
676
  * Dustlog
@@ -578,7 +689,7 @@ var AssetApi = class {
578
689
  */
579
690
  async dustlog(requestParameters = {}) {
580
691
  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 });
692
+ return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
582
693
  }
583
694
  /**
584
695
  * Query Funding Wallet
@@ -597,7 +708,7 @@ var AssetApi = class {
597
708
  */
598
709
  async fundingWallet(requestParameters = {}) {
599
710
  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 });
711
+ return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
601
712
  }
602
713
  /**
603
714
  * Get Assets That Can Be Converted Into BNB
@@ -613,7 +724,7 @@ var AssetApi = class {
613
724
  */
614
725
  async getAssetsThatCanBeConvertedIntoBnb(requestParameters = {}) {
615
726
  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 });
727
+ return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
617
728
  }
618
729
  /**
619
730
  * The query of Cloud-Mining payment and refund history
@@ -632,7 +743,7 @@ var AssetApi = class {
632
743
  */
633
744
  async getCloudMiningPaymentAndRefundHistory(requestParameters) {
634
745
  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 });
746
+ return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
636
747
  }
637
748
  /**
638
749
  * Get the list of symbols that are scheduled to be opened for trading in the market.
@@ -647,7 +758,7 @@ var AssetApi = class {
647
758
  */
648
759
  async getOpenSymbolList() {
649
760
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.getOpenSymbolList();
650
- return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.params, localVarAxiosArgs?.timeUnit, { isSigned: false });
761
+ return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
651
762
  }
652
763
  /**
653
764
  * Query User Delegation History
@@ -665,7 +776,7 @@ var AssetApi = class {
665
776
  */
666
777
  async queryUserDelegationHistory(requestParameters) {
667
778
  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 });
779
+ return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
669
780
  }
670
781
  /**
671
782
  * Query User Universal Transfer History
@@ -687,7 +798,7 @@ var AssetApi = class {
687
798
  */
688
799
  async queryUserUniversalTransferHistory(requestParameters) {
689
800
  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 });
801
+ return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
691
802
  }
692
803
  /**
693
804
  * Query User Wallet Balance
@@ -703,7 +814,7 @@ var AssetApi = class {
703
814
  */
704
815
  async queryUserWalletBalance(requestParameters = {}) {
705
816
  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 });
817
+ return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
707
818
  }
708
819
  /**
709
820
  * Toggle BNB Burn On Spot Trade And Margin Interest
@@ -721,7 +832,7 @@ var AssetApi = class {
721
832
  */
722
833
  async toggleBnbBurnOnSpotTradeAndMarginInterest(requestParameters = {}) {
723
834
  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 });
835
+ return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
725
836
  }
726
837
  /**
727
838
  * Fetch trade fee
@@ -737,7 +848,7 @@ var AssetApi = class {
737
848
  */
738
849
  async tradeFee(requestParameters = {}) {
739
850
  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 });
851
+ return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
741
852
  }
742
853
  /**
743
854
  * Get user assets, just for positive data.
@@ -756,7 +867,7 @@ var AssetApi = class {
756
867
  */
757
868
  async userAsset(requestParameters = {}) {
758
869
  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 });
870
+ return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
760
871
  }
761
872
  /**
762
873
  * user universal transfer
@@ -807,7 +918,7 @@ var AssetApi = class {
807
918
  */
808
919
  async userUniversalTransfer(requestParameters) {
809
920
  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 });
921
+ return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
811
922
  }
812
923
  };
813
924
 
@@ -832,19 +943,22 @@ const CapitalApiAxiosParamCreator = function(configuration) {
832
943
  return {
833
944
  allCoinsInformation: async (recvWindow) => {
834
945
  const localVarQueryParameter = {};
946
+ const localVarBodyParameter = {};
835
947
  if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
836
948
  let _timeUnit;
837
949
  if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
838
950
  return {
839
951
  endpoint: "/sapi/v1/capital/config/getall",
840
952
  method: "GET",
841
- params: localVarQueryParameter,
953
+ queryParams: localVarQueryParameter,
954
+ bodyParams: localVarBodyParameter,
842
955
  timeUnit: _timeUnit
843
956
  };
844
957
  },
845
958
  depositAddress: async (coin, network, amount, recvWindow) => {
846
959
  assertParamExists("depositAddress", "coin", coin);
847
960
  const localVarQueryParameter = {};
961
+ const localVarBodyParameter = {};
848
962
  if (coin !== void 0 && coin !== null) localVarQueryParameter["coin"] = coin;
849
963
  if (network !== void 0 && network !== null) localVarQueryParameter["network"] = network;
850
964
  if (amount !== void 0 && amount !== null) localVarQueryParameter["amount"] = amount;
@@ -854,12 +968,14 @@ const CapitalApiAxiosParamCreator = function(configuration) {
854
968
  return {
855
969
  endpoint: "/sapi/v1/capital/deposit/address",
856
970
  method: "GET",
857
- params: localVarQueryParameter,
971
+ queryParams: localVarQueryParameter,
972
+ bodyParams: localVarBodyParameter,
858
973
  timeUnit: _timeUnit
859
974
  };
860
975
  },
861
976
  depositHistory: async (includeSource, coin, status, startTime, endTime, offset, limit, recvWindow, txId) => {
862
977
  const localVarQueryParameter = {};
978
+ const localVarBodyParameter = {};
863
979
  if (includeSource !== void 0 && includeSource !== null) localVarQueryParameter["includeSource"] = includeSource;
864
980
  if (coin !== void 0 && coin !== null) localVarQueryParameter["coin"] = coin;
865
981
  if (status !== void 0 && status !== null) localVarQueryParameter["status"] = status;
@@ -874,13 +990,15 @@ const CapitalApiAxiosParamCreator = function(configuration) {
874
990
  return {
875
991
  endpoint: "/sapi/v1/capital/deposit/hisrec",
876
992
  method: "GET",
877
- params: localVarQueryParameter,
993
+ queryParams: localVarQueryParameter,
994
+ bodyParams: localVarBodyParameter,
878
995
  timeUnit: _timeUnit
879
996
  };
880
997
  },
881
998
  fetchDepositAddressListWithNetwork: async (coin, network) => {
882
999
  assertParamExists("fetchDepositAddressListWithNetwork", "coin", coin);
883
1000
  const localVarQueryParameter = {};
1001
+ const localVarBodyParameter = {};
884
1002
  if (coin !== void 0 && coin !== null) localVarQueryParameter["coin"] = coin;
885
1003
  if (network !== void 0 && network !== null) localVarQueryParameter["network"] = network;
886
1004
  let _timeUnit;
@@ -888,34 +1006,40 @@ const CapitalApiAxiosParamCreator = function(configuration) {
888
1006
  return {
889
1007
  endpoint: "/sapi/v1/capital/deposit/address/list",
890
1008
  method: "GET",
891
- params: localVarQueryParameter,
1009
+ queryParams: localVarQueryParameter,
1010
+ bodyParams: localVarBodyParameter,
892
1011
  timeUnit: _timeUnit
893
1012
  };
894
1013
  },
895
1014
  fetchWithdrawAddressList: async () => {
896
1015
  const localVarQueryParameter = {};
1016
+ const localVarBodyParameter = {};
897
1017
  let _timeUnit;
898
1018
  if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
899
1019
  return {
900
1020
  endpoint: "/sapi/v1/capital/withdraw/address/list",
901
1021
  method: "GET",
902
- params: localVarQueryParameter,
1022
+ queryParams: localVarQueryParameter,
1023
+ bodyParams: localVarBodyParameter,
903
1024
  timeUnit: _timeUnit
904
1025
  };
905
1026
  },
906
1027
  fetchWithdrawQuota: async () => {
907
1028
  const localVarQueryParameter = {};
1029
+ const localVarBodyParameter = {};
908
1030
  let _timeUnit;
909
1031
  if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
910
1032
  return {
911
1033
  endpoint: "/sapi/v1/capital/withdraw/quota",
912
1034
  method: "GET",
913
- params: localVarQueryParameter,
1035
+ queryParams: localVarQueryParameter,
1036
+ bodyParams: localVarBodyParameter,
914
1037
  timeUnit: _timeUnit
915
1038
  };
916
1039
  },
917
1040
  oneClickArrivalDepositApply: async (depositId, txId, subAccountId, subUserId) => {
918
1041
  const localVarQueryParameter = {};
1042
+ const localVarBodyParameter = {};
919
1043
  if (depositId !== void 0 && depositId !== null) localVarQueryParameter["depositId"] = depositId;
920
1044
  if (txId !== void 0 && txId !== null) localVarQueryParameter["txId"] = txId;
921
1045
  if (subAccountId !== void 0 && subAccountId !== null) localVarQueryParameter["subAccountId"] = subAccountId;
@@ -925,7 +1049,8 @@ const CapitalApiAxiosParamCreator = function(configuration) {
925
1049
  return {
926
1050
  endpoint: "/sapi/v1/capital/deposit/credit-apply",
927
1051
  method: "POST",
928
- params: localVarQueryParameter,
1052
+ queryParams: localVarQueryParameter,
1053
+ bodyParams: localVarBodyParameter,
929
1054
  timeUnit: _timeUnit
930
1055
  };
931
1056
  },
@@ -934,6 +1059,7 @@ const CapitalApiAxiosParamCreator = function(configuration) {
934
1059
  assertParamExists("withdraw", "address", address);
935
1060
  assertParamExists("withdraw", "amount", amount);
936
1061
  const localVarQueryParameter = {};
1062
+ const localVarBodyParameter = {};
937
1063
  if (coin !== void 0 && coin !== null) localVarQueryParameter["coin"] = coin;
938
1064
  if (withdrawOrderId !== void 0 && withdrawOrderId !== null) localVarQueryParameter["withdrawOrderId"] = withdrawOrderId;
939
1065
  if (network !== void 0 && network !== null) localVarQueryParameter["network"] = network;
@@ -949,12 +1075,14 @@ const CapitalApiAxiosParamCreator = function(configuration) {
949
1075
  return {
950
1076
  endpoint: "/sapi/v1/capital/withdraw/apply",
951
1077
  method: "POST",
952
- params: localVarQueryParameter,
1078
+ queryParams: localVarQueryParameter,
1079
+ bodyParams: localVarBodyParameter,
953
1080
  timeUnit: _timeUnit
954
1081
  };
955
1082
  },
956
1083
  withdrawHistory: async (coin, withdrawOrderId, status, offset, limit, idList, startTime, endTime, recvWindow) => {
957
1084
  const localVarQueryParameter = {};
1085
+ const localVarBodyParameter = {};
958
1086
  if (coin !== void 0 && coin !== null) localVarQueryParameter["coin"] = coin;
959
1087
  if (withdrawOrderId !== void 0 && withdrawOrderId !== null) localVarQueryParameter["withdrawOrderId"] = withdrawOrderId;
960
1088
  if (status !== void 0 && status !== null) localVarQueryParameter["status"] = status;
@@ -969,7 +1097,8 @@ const CapitalApiAxiosParamCreator = function(configuration) {
969
1097
  return {
970
1098
  endpoint: "/sapi/v1/capital/withdraw/history",
971
1099
  method: "GET",
972
- params: localVarQueryParameter,
1100
+ queryParams: localVarQueryParameter,
1101
+ bodyParams: localVarBodyParameter,
973
1102
  timeUnit: _timeUnit
974
1103
  };
975
1104
  }
@@ -998,7 +1127,7 @@ var CapitalApi = class {
998
1127
  */
999
1128
  async allCoinsInformation(requestParameters = {}) {
1000
1129
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.allCoinsInformation(requestParameters?.recvWindow);
1001
- return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.params, localVarAxiosArgs?.timeUnit, { isSigned: true });
1130
+ return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
1002
1131
  }
1003
1132
  /**
1004
1133
  * Fetch deposit address with network.
@@ -1018,7 +1147,7 @@ var CapitalApi = class {
1018
1147
  */
1019
1148
  async depositAddress(requestParameters) {
1020
1149
  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 });
1150
+ return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
1022
1151
  }
1023
1152
  /**
1024
1153
  * Fetch deposit history.
@@ -1038,7 +1167,7 @@ var CapitalApi = class {
1038
1167
  */
1039
1168
  async depositHistory(requestParameters = {}) {
1040
1169
  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 });
1170
+ return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
1042
1171
  }
1043
1172
  /**
1044
1173
  * Fetch deposit address list with network.
@@ -1058,7 +1187,7 @@ var CapitalApi = class {
1058
1187
  */
1059
1188
  async fetchDepositAddressListWithNetwork(requestParameters) {
1060
1189
  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 });
1190
+ return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
1062
1191
  }
1063
1192
  /**
1064
1193
  * Fetch withdraw address list
@@ -1073,7 +1202,7 @@ var CapitalApi = class {
1073
1202
  */
1074
1203
  async fetchWithdrawAddressList() {
1075
1204
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.fetchWithdrawAddressList();
1076
- return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.params, localVarAxiosArgs?.timeUnit, { isSigned: true });
1205
+ return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
1077
1206
  }
1078
1207
  /**
1079
1208
  * Fetch withdraw quota
@@ -1088,7 +1217,7 @@ var CapitalApi = class {
1088
1217
  */
1089
1218
  async fetchWithdrawQuota() {
1090
1219
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.fetchWithdrawQuota();
1091
- return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.params, localVarAxiosArgs?.timeUnit, { isSigned: true });
1220
+ return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
1092
1221
  }
1093
1222
  /**
1094
1223
  * Apply deposit credit for expired address (One click arrival)
@@ -1106,7 +1235,7 @@ var CapitalApi = class {
1106
1235
  */
1107
1236
  async oneClickArrivalDepositApply(requestParameters = {}) {
1108
1237
  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 });
1238
+ return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
1110
1239
  }
1111
1240
  /**
1112
1241
  * Submit a withdraw request.
@@ -1127,7 +1256,7 @@ var CapitalApi = class {
1127
1256
  */
1128
1257
  async withdraw(requestParameters) {
1129
1258
  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 });
1259
+ return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
1131
1260
  }
1132
1261
  /**
1133
1262
  * Fetch withdraw history.
@@ -1151,7 +1280,7 @@ var CapitalApi = class {
1151
1280
  */
1152
1281
  async withdrawHistory(requestParameters = {}) {
1153
1282
  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 });
1283
+ return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
1155
1284
  }
1156
1285
  };
1157
1286
 
@@ -1176,24 +1305,28 @@ const OthersApiAxiosParamCreator = function(configuration) {
1176
1305
  return {
1177
1306
  getSymbolsDelistScheduleForSpot: async (recvWindow) => {
1178
1307
  const localVarQueryParameter = {};
1308
+ const localVarBodyParameter = {};
1179
1309
  if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
1180
1310
  let _timeUnit;
1181
1311
  if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
1182
1312
  return {
1183
1313
  endpoint: "/sapi/v1/spot/delist-schedule",
1184
1314
  method: "GET",
1185
- params: localVarQueryParameter,
1315
+ queryParams: localVarQueryParameter,
1316
+ bodyParams: localVarBodyParameter,
1186
1317
  timeUnit: _timeUnit
1187
1318
  };
1188
1319
  },
1189
1320
  systemStatus: async () => {
1190
1321
  const localVarQueryParameter = {};
1322
+ const localVarBodyParameter = {};
1191
1323
  let _timeUnit;
1192
1324
  if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
1193
1325
  return {
1194
1326
  endpoint: "/sapi/v1/system/status",
1195
1327
  method: "GET",
1196
- params: localVarQueryParameter,
1328
+ queryParams: localVarQueryParameter,
1329
+ bodyParams: localVarBodyParameter,
1197
1330
  timeUnit: _timeUnit
1198
1331
  };
1199
1332
  }
@@ -1222,7 +1355,7 @@ var OthersApi = class {
1222
1355
  */
1223
1356
  async getSymbolsDelistScheduleForSpot(requestParameters = {}) {
1224
1357
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.getSymbolsDelistScheduleForSpot(requestParameters?.recvWindow);
1225
- return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.params, localVarAxiosArgs?.timeUnit, { isSigned: false });
1358
+ return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
1226
1359
  }
1227
1360
  /**
1228
1361
  * Fetch system status.
@@ -1237,7 +1370,7 @@ var OthersApi = class {
1237
1370
  */
1238
1371
  async systemStatus() {
1239
1372
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.systemStatus();
1240
- return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.params, localVarAxiosArgs?.timeUnit, { isSigned: false });
1373
+ return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
1241
1374
  }
1242
1375
  };
1243
1376
 
@@ -1269,6 +1402,7 @@ const TravelRuleApiAxiosParamCreator = function(configuration) {
1269
1402
  assertParamExists("brokerWithdraw", "originatorPii", originatorPii);
1270
1403
  assertParamExists("brokerWithdraw", "signature", signature);
1271
1404
  const localVarQueryParameter = {};
1405
+ const localVarBodyParameter = {};
1272
1406
  if (address !== void 0 && address !== null) localVarQueryParameter["address"] = address;
1273
1407
  if (addressTag !== void 0 && addressTag !== null) localVarQueryParameter["addressTag"] = addressTag;
1274
1408
  if (network !== void 0 && network !== null) localVarQueryParameter["network"] = network;
@@ -1286,24 +1420,28 @@ const TravelRuleApiAxiosParamCreator = function(configuration) {
1286
1420
  return {
1287
1421
  endpoint: "/sapi/v1/localentity/broker/withdraw/apply",
1288
1422
  method: "POST",
1289
- params: localVarQueryParameter,
1423
+ queryParams: localVarQueryParameter,
1424
+ bodyParams: localVarBodyParameter,
1290
1425
  timeUnit: _timeUnit
1291
1426
  };
1292
1427
  },
1293
1428
  checkQuestionnaireRequirements: async (recvWindow) => {
1294
1429
  const localVarQueryParameter = {};
1430
+ const localVarBodyParameter = {};
1295
1431
  if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
1296
1432
  let _timeUnit;
1297
1433
  if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
1298
1434
  return {
1299
1435
  endpoint: "/sapi/v1/localentity/questionnaire-requirements",
1300
1436
  method: "GET",
1301
- params: localVarQueryParameter,
1437
+ queryParams: localVarQueryParameter,
1438
+ bodyParams: localVarBodyParameter,
1302
1439
  timeUnit: _timeUnit
1303
1440
  };
1304
1441
  },
1305
1442
  depositHistoryTravelRule: async (trId, txId, tranId, network, coin, travelRuleStatus, pendingQuestionnaire, startTime, endTime, offset, limit) => {
1306
1443
  const localVarQueryParameter = {};
1444
+ const localVarBodyParameter = {};
1307
1445
  if (trId !== void 0 && trId !== null) localVarQueryParameter["trId"] = trId;
1308
1446
  if (txId !== void 0 && txId !== null) localVarQueryParameter["txId"] = txId;
1309
1447
  if (tranId !== void 0 && tranId !== null) localVarQueryParameter["tranId"] = tranId;
@@ -1320,12 +1458,14 @@ const TravelRuleApiAxiosParamCreator = function(configuration) {
1320
1458
  return {
1321
1459
  endpoint: "/sapi/v1/localentity/deposit/history",
1322
1460
  method: "GET",
1323
- params: localVarQueryParameter,
1461
+ queryParams: localVarQueryParameter,
1462
+ bodyParams: localVarBodyParameter,
1324
1463
  timeUnit: _timeUnit
1325
1464
  };
1326
1465
  },
1327
1466
  depositHistoryV2: async (depositId, txId, network, coin, retrieveQuestionnaire, startTime, endTime, offset, limit) => {
1328
1467
  const localVarQueryParameter = {};
1468
+ const localVarBodyParameter = {};
1329
1469
  if (depositId !== void 0 && depositId !== null) localVarQueryParameter["depositId"] = depositId;
1330
1470
  if (txId !== void 0 && txId !== null) localVarQueryParameter["txId"] = txId;
1331
1471
  if (network !== void 0 && network !== null) localVarQueryParameter["network"] = network;
@@ -1340,19 +1480,22 @@ const TravelRuleApiAxiosParamCreator = function(configuration) {
1340
1480
  return {
1341
1481
  endpoint: "/sapi/v2/localentity/deposit/history",
1342
1482
  method: "GET",
1343
- params: localVarQueryParameter,
1483
+ queryParams: localVarQueryParameter,
1484
+ bodyParams: localVarBodyParameter,
1344
1485
  timeUnit: _timeUnit
1345
1486
  };
1346
1487
  },
1347
1488
  fetchAddressVerificationList: async (recvWindow) => {
1348
1489
  const localVarQueryParameter = {};
1490
+ const localVarBodyParameter = {};
1349
1491
  if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
1350
1492
  let _timeUnit;
1351
1493
  if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
1352
1494
  return {
1353
1495
  endpoint: "/sapi/v1/addressVerify/list",
1354
1496
  method: "GET",
1355
- params: localVarQueryParameter,
1497
+ queryParams: localVarQueryParameter,
1498
+ bodyParams: localVarBodyParameter,
1356
1499
  timeUnit: _timeUnit
1357
1500
  };
1358
1501
  },
@@ -1363,6 +1506,7 @@ const TravelRuleApiAxiosParamCreator = function(configuration) {
1363
1506
  assertParamExists("submitDepositQuestionnaire", "beneficiaryPii", beneficiaryPii);
1364
1507
  assertParamExists("submitDepositQuestionnaire", "signature", signature);
1365
1508
  const localVarQueryParameter = {};
1509
+ const localVarBodyParameter = {};
1366
1510
  if (subAccountId !== void 0 && subAccountId !== null) localVarQueryParameter["subAccountId"] = subAccountId;
1367
1511
  if (depositId !== void 0 && depositId !== null) localVarQueryParameter["depositId"] = depositId;
1368
1512
  if (questionnaire !== void 0 && questionnaire !== null) localVarQueryParameter["questionnaire"] = questionnaire;
@@ -1378,7 +1522,8 @@ const TravelRuleApiAxiosParamCreator = function(configuration) {
1378
1522
  return {
1379
1523
  endpoint: "/sapi/v1/localentity/broker/deposit/provide-info",
1380
1524
  method: "PUT",
1381
- params: localVarQueryParameter,
1525
+ queryParams: localVarQueryParameter,
1526
+ bodyParams: localVarBodyParameter,
1382
1527
  timeUnit: _timeUnit
1383
1528
  };
1384
1529
  },
@@ -1386,6 +1531,7 @@ const TravelRuleApiAxiosParamCreator = function(configuration) {
1386
1531
  assertParamExists("submitDepositQuestionnaireTravelRule", "tranId", tranId);
1387
1532
  assertParamExists("submitDepositQuestionnaireTravelRule", "questionnaire", questionnaire);
1388
1533
  const localVarQueryParameter = {};
1534
+ const localVarBodyParameter = {};
1389
1535
  if (tranId !== void 0 && tranId !== null) localVarQueryParameter["tranId"] = tranId;
1390
1536
  if (questionnaire !== void 0 && questionnaire !== null) localVarQueryParameter["questionnaire"] = questionnaire;
1391
1537
  let _timeUnit;
@@ -1393,24 +1539,28 @@ const TravelRuleApiAxiosParamCreator = function(configuration) {
1393
1539
  return {
1394
1540
  endpoint: "/sapi/v1/localentity/deposit/provide-info",
1395
1541
  method: "PUT",
1396
- params: localVarQueryParameter,
1542
+ queryParams: localVarQueryParameter,
1543
+ bodyParams: localVarBodyParameter,
1397
1544
  timeUnit: _timeUnit
1398
1545
  };
1399
1546
  },
1400
1547
  vaspList: async (recvWindow) => {
1401
1548
  const localVarQueryParameter = {};
1549
+ const localVarBodyParameter = {};
1402
1550
  if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
1403
1551
  let _timeUnit;
1404
1552
  if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
1405
1553
  return {
1406
1554
  endpoint: "/sapi/v1/localentity/vasp",
1407
1555
  method: "GET",
1408
- params: localVarQueryParameter,
1556
+ queryParams: localVarQueryParameter,
1557
+ bodyParams: localVarBodyParameter,
1409
1558
  timeUnit: _timeUnit
1410
1559
  };
1411
1560
  },
1412
1561
  withdrawHistoryV1: async (trId, txId, withdrawOrderId, network, coin, travelRuleStatus, offset, limit, startTime, endTime, recvWindow) => {
1413
1562
  const localVarQueryParameter = {};
1563
+ const localVarBodyParameter = {};
1414
1564
  if (trId !== void 0 && trId !== null) localVarQueryParameter["trId"] = trId;
1415
1565
  if (txId !== void 0 && txId !== null) localVarQueryParameter["txId"] = txId;
1416
1566
  if (withdrawOrderId !== void 0 && withdrawOrderId !== null) localVarQueryParameter["withdrawOrderId"] = withdrawOrderId;
@@ -1427,12 +1577,14 @@ const TravelRuleApiAxiosParamCreator = function(configuration) {
1427
1577
  return {
1428
1578
  endpoint: "/sapi/v1/localentity/withdraw/history",
1429
1579
  method: "GET",
1430
- params: localVarQueryParameter,
1580
+ queryParams: localVarQueryParameter,
1581
+ bodyParams: localVarBodyParameter,
1431
1582
  timeUnit: _timeUnit
1432
1583
  };
1433
1584
  },
1434
1585
  withdrawHistoryV2: async (trId, txId, withdrawOrderId, network, coin, travelRuleStatus, offset, limit, startTime, endTime, recvWindow) => {
1435
1586
  const localVarQueryParameter = {};
1587
+ const localVarBodyParameter = {};
1436
1588
  if (trId !== void 0 && trId !== null) localVarQueryParameter["trId"] = trId;
1437
1589
  if (txId !== void 0 && txId !== null) localVarQueryParameter["txId"] = txId;
1438
1590
  if (withdrawOrderId !== void 0 && withdrawOrderId !== null) localVarQueryParameter["withdrawOrderId"] = withdrawOrderId;
@@ -1449,7 +1601,8 @@ const TravelRuleApiAxiosParamCreator = function(configuration) {
1449
1601
  return {
1450
1602
  endpoint: "/sapi/v2/localentity/withdraw/history",
1451
1603
  method: "GET",
1452
- params: localVarQueryParameter,
1604
+ queryParams: localVarQueryParameter,
1605
+ bodyParams: localVarBodyParameter,
1453
1606
  timeUnit: _timeUnit
1454
1607
  };
1455
1608
  },
@@ -1459,6 +1612,7 @@ const TravelRuleApiAxiosParamCreator = function(configuration) {
1459
1612
  assertParamExists("withdrawTravelRule", "amount", amount);
1460
1613
  assertParamExists("withdrawTravelRule", "questionnaire", questionnaire);
1461
1614
  const localVarQueryParameter = {};
1615
+ const localVarBodyParameter = {};
1462
1616
  if (coin !== void 0 && coin !== null) localVarQueryParameter["coin"] = coin;
1463
1617
  if (withdrawOrderId !== void 0 && withdrawOrderId !== null) localVarQueryParameter["withdrawOrderId"] = withdrawOrderId;
1464
1618
  if (network !== void 0 && network !== null) localVarQueryParameter["network"] = network;
@@ -1475,7 +1629,8 @@ const TravelRuleApiAxiosParamCreator = function(configuration) {
1475
1629
  return {
1476
1630
  endpoint: "/sapi/v1/localentity/withdraw/apply",
1477
1631
  method: "POST",
1478
- params: localVarQueryParameter,
1632
+ queryParams: localVarQueryParameter,
1633
+ bodyParams: localVarBodyParameter,
1479
1634
  timeUnit: _timeUnit
1480
1635
  };
1481
1636
  }
@@ -1509,7 +1664,7 @@ var TravelRuleApi = class {
1509
1664
  */
1510
1665
  async brokerWithdraw(requestParameters) {
1511
1666
  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 });
1667
+ return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
1513
1668
  }
1514
1669
  /**
1515
1670
  * This API will return user-specific Travel Rule questionnaire requirement information in reference to the current API key.
@@ -1525,7 +1680,7 @@ var TravelRuleApi = class {
1525
1680
  */
1526
1681
  async checkQuestionnaireRequirements(requestParameters = {}) {
1527
1682
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.checkQuestionnaireRequirements(requestParameters?.recvWindow);
1528
- return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.params, localVarAxiosArgs?.timeUnit, { isSigned: true });
1683
+ return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
1529
1684
  }
1530
1685
  /**
1531
1686
  * Fetch deposit history for local entities that required travel rule.
@@ -1544,7 +1699,7 @@ var TravelRuleApi = class {
1544
1699
  */
1545
1700
  async depositHistoryTravelRule(requestParameters = {}) {
1546
1701
  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 });
1702
+ return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
1548
1703
  }
1549
1704
  /**
1550
1705
  * Fetch deposit history for local entities that with required travel rule information.
@@ -1563,7 +1718,7 @@ var TravelRuleApi = class {
1563
1718
  */
1564
1719
  async depositHistoryV2(requestParameters = {}) {
1565
1720
  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 });
1721
+ return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
1567
1722
  }
1568
1723
  /**
1569
1724
  * Fetch address verification list for user to check on status and other details for the addresses stored in Address Book.
@@ -1579,7 +1734,7 @@ var TravelRuleApi = class {
1579
1734
  */
1580
1735
  async fetchAddressVerificationList(requestParameters = {}) {
1581
1736
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.fetchAddressVerificationList(requestParameters?.recvWindow);
1582
- return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.params, localVarAxiosArgs?.timeUnit, { isSigned: true });
1737
+ return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
1583
1738
  }
1584
1739
  /**
1585
1740
  * Submit questionnaire for brokers of local entities that require travel rule.
@@ -1600,7 +1755,7 @@ var TravelRuleApi = class {
1600
1755
  */
1601
1756
  async submitDepositQuestionnaire(requestParameters) {
1602
1757
  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 });
1758
+ return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
1604
1759
  }
1605
1760
  /**
1606
1761
  * Submit questionnaire for local entities that require travel rule.
@@ -1621,7 +1776,7 @@ var TravelRuleApi = class {
1621
1776
  */
1622
1777
  async submitDepositQuestionnaireTravelRule(requestParameters) {
1623
1778
  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 });
1779
+ return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
1625
1780
  }
1626
1781
  /**
1627
1782
  * Fetch the VASP list for local entities.
@@ -1637,7 +1792,7 @@ var TravelRuleApi = class {
1637
1792
  */
1638
1793
  async vaspList(requestParameters = {}) {
1639
1794
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.vaspList(requestParameters?.recvWindow);
1640
- 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 });
1641
1796
  }
1642
1797
  /**
1643
1798
  * Fetch withdraw history for local entities that required travel rule.
@@ -1657,7 +1812,7 @@ var TravelRuleApi = class {
1657
1812
  */
1658
1813
  async withdrawHistoryV1(requestParameters = {}) {
1659
1814
  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 });
1815
+ return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
1661
1816
  }
1662
1817
  /**
1663
1818
  * Fetch withdraw history for local entities that required travel rule.
@@ -1683,7 +1838,7 @@ var TravelRuleApi = class {
1683
1838
  */
1684
1839
  async withdrawHistoryV2(requestParameters = {}) {
1685
1840
  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 });
1841
+ return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
1687
1842
  }
1688
1843
  /**
1689
1844
  * Submit a withdrawal request for local entities that required travel rule.
@@ -1704,7 +1859,7 @@ var TravelRuleApi = class {
1704
1859
  */
1705
1860
  async withdrawTravelRule(requestParameters) {
1706
1861
  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 });
1862
+ return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
1708
1863
  }
1709
1864
  };
1710
1865
 
@@ -1735,23 +1890,25 @@ var RestAPI = class {
1735
1890
  * Generic function to send a request.
1736
1891
  * @param endpoint - The API endpoint to call.
1737
1892
  * @param method - HTTP method to use (GET, POST, DELETE, etc.).
1738
- * @param params - Query parameters for the request.
1893
+ * @param queryParams - Query parameters for the request.
1894
+ * @param bodyParams - Body parameters for the request.
1739
1895
  *
1740
1896
  * @returns A promise resolving to the response data object.
1741
1897
  */
1742
- sendRequest(endpoint, method, params = {}) {
1743
- return sendRequest(this.configuration, endpoint, method, params, void 0);
1898
+ sendRequest(endpoint, method, queryParams = {}, bodyParams = {}) {
1899
+ return sendRequest(this.configuration, endpoint, method, queryParams, bodyParams, void 0);
1744
1900
  }
1745
1901
  /**
1746
1902
  * Generic function to send a signed request.
1747
1903
  * @param endpoint - The API endpoint to call.
1748
1904
  * @param method - HTTP method to use (GET, POST, DELETE, etc.).
1749
- * @param params - Query parameters for the request.
1905
+ * @param queryParams - Query parameters for the request.
1906
+ * @param bodyParams - Body parameters for the request.
1750
1907
  *
1751
1908
  * @returns A promise resolving to the response data object.
1752
1909
  */
1753
- sendSignedRequest(endpoint, method, params = {}) {
1754
- return sendRequest(this.configuration, endpoint, method, params, void 0, { isSigned: true });
1910
+ sendSignedRequest(endpoint, method, queryParams = {}, bodyParams = {}) {
1911
+ return sendRequest(this.configuration, endpoint, method, queryParams, bodyParams, void 0, { isSigned: true });
1755
1912
  }
1756
1913
  /**
1757
1914
  * Fetch account api trading status detail.
@@ -1901,6 +2058,36 @@ var RestAPI = class {
1901
2058
  return this.assetApi.assetDividendRecord(requestParameters);
1902
2059
  }
1903
2060
  /**
2061
+ * Convert dust assets
2062
+ *
2063
+ * Weight: 10
2064
+ *
2065
+ * @summary Dust Convert (USER_DATA)
2066
+ * @param {DustConvertRequest} requestParameters Request parameters.
2067
+ *
2068
+ * @returns {Promise<RestApiResponse<DustConvertResponse>>}
2069
+ * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
2070
+ * @see {@link https://developers.binance.com/docs/wallet/asset/Dust-Convert Binance API Documentation}
2071
+ */
2072
+ dustConvert(requestParameters) {
2073
+ return this.assetApi.dustConvert(requestParameters);
2074
+ }
2075
+ /**
2076
+ * Query dust convertible assets
2077
+ *
2078
+ * Weight: 1
2079
+ *
2080
+ * @summary Dust Convertible Assets (USER_DATA)
2081
+ * @param {DustConvertibleAssetsRequest} requestParameters Request parameters.
2082
+ *
2083
+ * @returns {Promise<RestApiResponse<DustConvertibleAssetsResponse>>}
2084
+ * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
2085
+ * @see {@link https://developers.binance.com/docs/wallet/asset/Dust-Convertible-Assets Binance API Documentation}
2086
+ */
2087
+ dustConvertibleAssets(requestParameters) {
2088
+ return this.assetApi.dustConvertibleAssets(requestParameters);
2089
+ }
2090
+ /**
1904
2091
  * Convert dust assets to BNB.
1905
2092
  *
1906
2093
  * You need to open`Enable Spot & Margin Trading` permission for the API Key which requests this endpoint.