@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.js CHANGED
@@ -14,7 +14,7 @@ let __binance_common = require("@binance/common");
14
14
 
15
15
  //#region package.json
16
16
  var name = "@binance/wallet";
17
- var version = "12.0.3";
17
+ var version = "13.0.0";
18
18
 
19
19
  //#endregion
20
20
  //#region src/rest-api/modules/account-api.ts
@@ -37,43 +37,50 @@ const AccountApiAxiosParamCreator = function(configuration) {
37
37
  return {
38
38
  accountApiTradingStatus: async (recvWindow) => {
39
39
  const localVarQueryParameter = {};
40
+ const localVarBodyParameter = {};
40
41
  if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
41
42
  let _timeUnit;
42
43
  if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
43
44
  return {
44
45
  endpoint: "/sapi/v1/account/apiTradingStatus",
45
46
  method: "GET",
46
- params: localVarQueryParameter,
47
+ queryParams: localVarQueryParameter,
48
+ bodyParams: localVarBodyParameter,
47
49
  timeUnit: _timeUnit
48
50
  };
49
51
  },
50
52
  accountInfo: async (recvWindow) => {
51
53
  const localVarQueryParameter = {};
54
+ const localVarBodyParameter = {};
52
55
  if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
53
56
  let _timeUnit;
54
57
  if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
55
58
  return {
56
59
  endpoint: "/sapi/v1/account/info",
57
60
  method: "GET",
58
- params: localVarQueryParameter,
61
+ queryParams: localVarQueryParameter,
62
+ bodyParams: localVarBodyParameter,
59
63
  timeUnit: _timeUnit
60
64
  };
61
65
  },
62
66
  accountStatus: async (recvWindow) => {
63
67
  const localVarQueryParameter = {};
68
+ const localVarBodyParameter = {};
64
69
  if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
65
70
  let _timeUnit;
66
71
  if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
67
72
  return {
68
73
  endpoint: "/sapi/v1/account/status",
69
74
  method: "GET",
70
- params: localVarQueryParameter,
75
+ queryParams: localVarQueryParameter,
76
+ bodyParams: localVarBodyParameter,
71
77
  timeUnit: _timeUnit
72
78
  };
73
79
  },
74
80
  dailyAccountSnapshot: async (type, startTime, endTime, limit, recvWindow) => {
75
81
  (0, __binance_common.assertParamExists)("dailyAccountSnapshot", "type", type);
76
82
  const localVarQueryParameter = {};
83
+ const localVarBodyParameter = {};
77
84
  if (type !== void 0 && type !== null) localVarQueryParameter["type"] = type;
78
85
  if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
79
86
  if (endTime !== void 0 && endTime !== null) localVarQueryParameter["endTime"] = endTime;
@@ -84,43 +91,50 @@ const AccountApiAxiosParamCreator = function(configuration) {
84
91
  return {
85
92
  endpoint: "/sapi/v1/accountSnapshot",
86
93
  method: "GET",
87
- params: localVarQueryParameter,
94
+ queryParams: localVarQueryParameter,
95
+ bodyParams: localVarBodyParameter,
88
96
  timeUnit: _timeUnit
89
97
  };
90
98
  },
91
99
  disableFastWithdrawSwitch: async (recvWindow) => {
92
100
  const localVarQueryParameter = {};
101
+ const localVarBodyParameter = {};
93
102
  if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
94
103
  let _timeUnit;
95
104
  if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
96
105
  return {
97
106
  endpoint: "/sapi/v1/account/disableFastWithdrawSwitch",
98
107
  method: "POST",
99
- params: localVarQueryParameter,
108
+ queryParams: localVarQueryParameter,
109
+ bodyParams: localVarBodyParameter,
100
110
  timeUnit: _timeUnit
101
111
  };
102
112
  },
103
113
  enableFastWithdrawSwitch: async (recvWindow) => {
104
114
  const localVarQueryParameter = {};
115
+ const localVarBodyParameter = {};
105
116
  if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
106
117
  let _timeUnit;
107
118
  if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
108
119
  return {
109
120
  endpoint: "/sapi/v1/account/enableFastWithdrawSwitch",
110
121
  method: "POST",
111
- params: localVarQueryParameter,
122
+ queryParams: localVarQueryParameter,
123
+ bodyParams: localVarBodyParameter,
112
124
  timeUnit: _timeUnit
113
125
  };
114
126
  },
115
127
  getApiKeyPermission: async (recvWindow) => {
116
128
  const localVarQueryParameter = {};
129
+ const localVarBodyParameter = {};
117
130
  if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
118
131
  let _timeUnit;
119
132
  if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
120
133
  return {
121
134
  endpoint: "/sapi/v1/account/apiRestrictions",
122
135
  method: "GET",
123
- params: localVarQueryParameter,
136
+ queryParams: localVarQueryParameter,
137
+ bodyParams: localVarBodyParameter,
124
138
  timeUnit: _timeUnit
125
139
  };
126
140
  }
@@ -149,7 +163,7 @@ var AccountApi = class {
149
163
  */
150
164
  async accountApiTradingStatus(requestParameters = {}) {
151
165
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.accountApiTradingStatus(requestParameters?.recvWindow);
152
- return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.params, localVarAxiosArgs?.timeUnit, { isSigned: true });
166
+ return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
153
167
  }
154
168
  /**
155
169
  * Fetch account info detail.
@@ -165,7 +179,7 @@ var AccountApi = class {
165
179
  */
166
180
  async accountInfo(requestParameters = {}) {
167
181
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.accountInfo(requestParameters?.recvWindow);
168
- return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.params, localVarAxiosArgs?.timeUnit, { isSigned: true });
182
+ return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
169
183
  }
170
184
  /**
171
185
  * Fetch account status detail.
@@ -181,7 +195,7 @@ var AccountApi = class {
181
195
  */
182
196
  async accountStatus(requestParameters = {}) {
183
197
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.accountStatus(requestParameters?.recvWindow);
184
- return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.params, localVarAxiosArgs?.timeUnit, { isSigned: true });
198
+ return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
185
199
  }
186
200
  /**
187
201
  * Daily account snapshot
@@ -201,7 +215,7 @@ var AccountApi = class {
201
215
  */
202
216
  async dailyAccountSnapshot(requestParameters) {
203
217
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.dailyAccountSnapshot(requestParameters?.type, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.limit, requestParameters?.recvWindow);
204
- return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.params, localVarAxiosArgs?.timeUnit, { isSigned: true });
218
+ return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
205
219
  }
206
220
  /**
207
221
  *
@@ -216,7 +230,7 @@ var AccountApi = class {
216
230
  */
217
231
  async disableFastWithdrawSwitch(requestParameters = {}) {
218
232
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.disableFastWithdrawSwitch(requestParameters?.recvWindow);
219
- return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.params, localVarAxiosArgs?.timeUnit, { isSigned: true });
233
+ return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
220
234
  }
221
235
  /**
222
236
  * Enable Fast Withdraw Switch (USER_DATA)
@@ -235,7 +249,7 @@ var AccountApi = class {
235
249
  */
236
250
  async enableFastWithdrawSwitch(requestParameters = {}) {
237
251
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.enableFastWithdrawSwitch(requestParameters?.recvWindow);
238
- return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.params, localVarAxiosArgs?.timeUnit, { isSigned: true });
252
+ return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
239
253
  }
240
254
  /**
241
255
  * Get API Key Permission
@@ -251,7 +265,7 @@ var AccountApi = class {
251
265
  */
252
266
  async getApiKeyPermission(requestParameters = {}) {
253
267
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.getApiKeyPermission(requestParameters?.recvWindow);
254
- return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.params, localVarAxiosArgs?.timeUnit, { isSigned: true });
268
+ return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
255
269
  }
256
270
  };
257
271
 
@@ -276,18 +290,21 @@ const AssetApiAxiosParamCreator = function(configuration) {
276
290
  return {
277
291
  assetDetail: async (recvWindow) => {
278
292
  const localVarQueryParameter = {};
293
+ const localVarBodyParameter = {};
279
294
  if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
280
295
  let _timeUnit;
281
296
  if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
282
297
  return {
283
298
  endpoint: "/sapi/v1/asset/assetDetail",
284
299
  method: "GET",
285
- params: localVarQueryParameter,
300
+ queryParams: localVarQueryParameter,
301
+ bodyParams: localVarBodyParameter,
286
302
  timeUnit: _timeUnit
287
303
  };
288
304
  },
289
305
  assetDividendRecord: async (asset, startTime, endTime, limit, recvWindow) => {
290
306
  const localVarQueryParameter = {};
307
+ const localVarBodyParameter = {};
291
308
  if (asset !== void 0 && asset !== null) localVarQueryParameter["asset"] = asset;
292
309
  if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
293
310
  if (endTime !== void 0 && endTime !== null) localVarQueryParameter["endTime"] = endTime;
@@ -298,13 +315,50 @@ const AssetApiAxiosParamCreator = function(configuration) {
298
315
  return {
299
316
  endpoint: "/sapi/v1/asset/assetDividend",
300
317
  method: "GET",
301
- params: localVarQueryParameter,
318
+ queryParams: localVarQueryParameter,
319
+ bodyParams: localVarBodyParameter,
320
+ timeUnit: _timeUnit
321
+ };
322
+ },
323
+ dustConvert: async (asset, clientId, targetAsset, thirdPartyClientId, dustQuotaAssetToTargetAssetPrice) => {
324
+ (0, __binance_common.assertParamExists)("dustConvert", "asset", asset);
325
+ const localVarQueryParameter = {};
326
+ const localVarBodyParameter = {};
327
+ if (asset !== void 0 && asset !== null) localVarQueryParameter["asset"] = asset;
328
+ if (clientId !== void 0 && clientId !== null) localVarQueryParameter["clientId"] = clientId;
329
+ if (targetAsset !== void 0 && targetAsset !== null) localVarQueryParameter["targetAsset"] = targetAsset;
330
+ if (thirdPartyClientId !== void 0 && thirdPartyClientId !== null) localVarQueryParameter["thirdPartyClientId"] = thirdPartyClientId;
331
+ if (dustQuotaAssetToTargetAssetPrice !== void 0 && dustQuotaAssetToTargetAssetPrice !== null) localVarQueryParameter["dustQuotaAssetToTargetAssetPrice"] = dustQuotaAssetToTargetAssetPrice;
332
+ let _timeUnit;
333
+ if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
334
+ return {
335
+ endpoint: "/sapi/v1/asset/dust-convert/convert",
336
+ method: "POST",
337
+ queryParams: localVarQueryParameter,
338
+ bodyParams: localVarBodyParameter,
339
+ timeUnit: _timeUnit
340
+ };
341
+ },
342
+ dustConvertibleAssets: async (targetAsset, dustQuotaAssetToTargetAssetPrice) => {
343
+ (0, __binance_common.assertParamExists)("dustConvertibleAssets", "targetAsset", targetAsset);
344
+ const localVarQueryParameter = {};
345
+ const localVarBodyParameter = {};
346
+ if (targetAsset !== void 0 && targetAsset !== null) localVarQueryParameter["targetAsset"] = targetAsset;
347
+ if (dustQuotaAssetToTargetAssetPrice !== void 0 && dustQuotaAssetToTargetAssetPrice !== null) localVarQueryParameter["dustQuotaAssetToTargetAssetPrice"] = dustQuotaAssetToTargetAssetPrice;
348
+ let _timeUnit;
349
+ if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
350
+ return {
351
+ endpoint: "/sapi/v1/asset/dust-convert/query-convertible-assets",
352
+ method: "POST",
353
+ queryParams: localVarQueryParameter,
354
+ bodyParams: localVarBodyParameter,
302
355
  timeUnit: _timeUnit
303
356
  };
304
357
  },
305
358
  dustTransfer: async (asset, accountType, recvWindow) => {
306
359
  (0, __binance_common.assertParamExists)("dustTransfer", "asset", asset);
307
360
  const localVarQueryParameter = {};
361
+ const localVarBodyParameter = {};
308
362
  if (asset !== void 0 && asset !== null) localVarQueryParameter["asset"] = asset;
309
363
  if (accountType !== void 0 && accountType !== null) localVarQueryParameter["accountType"] = accountType;
310
364
  if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
@@ -313,12 +367,14 @@ const AssetApiAxiosParamCreator = function(configuration) {
313
367
  return {
314
368
  endpoint: "/sapi/v1/asset/dust",
315
369
  method: "POST",
316
- params: localVarQueryParameter,
370
+ queryParams: localVarQueryParameter,
371
+ bodyParams: localVarBodyParameter,
317
372
  timeUnit: _timeUnit
318
373
  };
319
374
  },
320
375
  dustlog: async (startTime, endTime, recvWindow) => {
321
376
  const localVarQueryParameter = {};
377
+ const localVarBodyParameter = {};
322
378
  if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
323
379
  if (endTime !== void 0 && endTime !== null) localVarQueryParameter["endTime"] = endTime;
324
380
  if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
@@ -327,12 +383,14 @@ const AssetApiAxiosParamCreator = function(configuration) {
327
383
  return {
328
384
  endpoint: "/sapi/v1/asset/dribblet",
329
385
  method: "GET",
330
- params: localVarQueryParameter,
386
+ queryParams: localVarQueryParameter,
387
+ bodyParams: localVarBodyParameter,
331
388
  timeUnit: _timeUnit
332
389
  };
333
390
  },
334
391
  fundingWallet: async (asset, needBtcValuation, recvWindow) => {
335
392
  const localVarQueryParameter = {};
393
+ const localVarBodyParameter = {};
336
394
  if (asset !== void 0 && asset !== null) localVarQueryParameter["asset"] = asset;
337
395
  if (needBtcValuation !== void 0 && needBtcValuation !== null) localVarQueryParameter["needBtcValuation"] = needBtcValuation;
338
396
  if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
@@ -341,12 +399,14 @@ const AssetApiAxiosParamCreator = function(configuration) {
341
399
  return {
342
400
  endpoint: "/sapi/v1/asset/get-funding-asset",
343
401
  method: "POST",
344
- params: localVarQueryParameter,
402
+ queryParams: localVarQueryParameter,
403
+ bodyParams: localVarBodyParameter,
345
404
  timeUnit: _timeUnit
346
405
  };
347
406
  },
348
407
  getAssetsThatCanBeConvertedIntoBnb: async (accountType, recvWindow) => {
349
408
  const localVarQueryParameter = {};
409
+ const localVarBodyParameter = {};
350
410
  if (accountType !== void 0 && accountType !== null) localVarQueryParameter["accountType"] = accountType;
351
411
  if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
352
412
  let _timeUnit;
@@ -354,7 +414,8 @@ const AssetApiAxiosParamCreator = function(configuration) {
354
414
  return {
355
415
  endpoint: "/sapi/v1/asset/dust-btc",
356
416
  method: "POST",
357
- params: localVarQueryParameter,
417
+ queryParams: localVarQueryParameter,
418
+ bodyParams: localVarBodyParameter,
358
419
  timeUnit: _timeUnit
359
420
  };
360
421
  },
@@ -362,6 +423,7 @@ const AssetApiAxiosParamCreator = function(configuration) {
362
423
  (0, __binance_common.assertParamExists)("getCloudMiningPaymentAndRefundHistory", "startTime", startTime);
363
424
  (0, __binance_common.assertParamExists)("getCloudMiningPaymentAndRefundHistory", "endTime", endTime);
364
425
  const localVarQueryParameter = {};
426
+ const localVarBodyParameter = {};
365
427
  if (tranId !== void 0 && tranId !== null) localVarQueryParameter["tranId"] = tranId;
366
428
  if (clientTranId !== void 0 && clientTranId !== null) localVarQueryParameter["clientTranId"] = clientTranId;
367
429
  if (asset !== void 0 && asset !== null) localVarQueryParameter["asset"] = asset;
@@ -374,18 +436,21 @@ const AssetApiAxiosParamCreator = function(configuration) {
374
436
  return {
375
437
  endpoint: "/sapi/v1/asset/ledger-transfer/cloud-mining/queryByPage",
376
438
  method: "GET",
377
- params: localVarQueryParameter,
439
+ queryParams: localVarQueryParameter,
440
+ bodyParams: localVarBodyParameter,
378
441
  timeUnit: _timeUnit
379
442
  };
380
443
  },
381
444
  getOpenSymbolList: async () => {
382
445
  const localVarQueryParameter = {};
446
+ const localVarBodyParameter = {};
383
447
  let _timeUnit;
384
448
  if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
385
449
  return {
386
450
  endpoint: "/sapi/v1/spot/open-symbol-list",
387
451
  method: "GET",
388
- params: localVarQueryParameter,
452
+ queryParams: localVarQueryParameter,
453
+ bodyParams: localVarBodyParameter,
389
454
  timeUnit: _timeUnit
390
455
  };
391
456
  },
@@ -394,6 +459,7 @@ const AssetApiAxiosParamCreator = function(configuration) {
394
459
  (0, __binance_common.assertParamExists)("queryUserDelegationHistory", "startTime", startTime);
395
460
  (0, __binance_common.assertParamExists)("queryUserDelegationHistory", "endTime", endTime);
396
461
  const localVarQueryParameter = {};
462
+ const localVarBodyParameter = {};
397
463
  if (email !== void 0 && email !== null) localVarQueryParameter["email"] = email;
398
464
  if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
399
465
  if (endTime !== void 0 && endTime !== null) localVarQueryParameter["endTime"] = endTime;
@@ -407,13 +473,15 @@ const AssetApiAxiosParamCreator = function(configuration) {
407
473
  return {
408
474
  endpoint: "/sapi/v1/asset/custody/transfer-history",
409
475
  method: "GET",
410
- params: localVarQueryParameter,
476
+ queryParams: localVarQueryParameter,
477
+ bodyParams: localVarBodyParameter,
411
478
  timeUnit: _timeUnit
412
479
  };
413
480
  },
414
481
  queryUserUniversalTransferHistory: async (type, startTime, endTime, current, size, fromSymbol, toSymbol, recvWindow) => {
415
482
  (0, __binance_common.assertParamExists)("queryUserUniversalTransferHistory", "type", type);
416
483
  const localVarQueryParameter = {};
484
+ const localVarBodyParameter = {};
417
485
  if (type !== void 0 && type !== null) localVarQueryParameter["type"] = type;
418
486
  if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
419
487
  if (endTime !== void 0 && endTime !== null) localVarQueryParameter["endTime"] = endTime;
@@ -427,12 +495,14 @@ const AssetApiAxiosParamCreator = function(configuration) {
427
495
  return {
428
496
  endpoint: "/sapi/v1/asset/transfer",
429
497
  method: "GET",
430
- params: localVarQueryParameter,
498
+ queryParams: localVarQueryParameter,
499
+ bodyParams: localVarBodyParameter,
431
500
  timeUnit: _timeUnit
432
501
  };
433
502
  },
434
503
  queryUserWalletBalance: async (quoteAsset, recvWindow) => {
435
504
  const localVarQueryParameter = {};
505
+ const localVarBodyParameter = {};
436
506
  if (quoteAsset !== void 0 && quoteAsset !== null) localVarQueryParameter["quoteAsset"] = quoteAsset;
437
507
  if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
438
508
  let _timeUnit;
@@ -440,12 +510,14 @@ const AssetApiAxiosParamCreator = function(configuration) {
440
510
  return {
441
511
  endpoint: "/sapi/v1/asset/wallet/balance",
442
512
  method: "GET",
443
- params: localVarQueryParameter,
513
+ queryParams: localVarQueryParameter,
514
+ bodyParams: localVarBodyParameter,
444
515
  timeUnit: _timeUnit
445
516
  };
446
517
  },
447
518
  toggleBnbBurnOnSpotTradeAndMarginInterest: async (spotBNBBurn, interestBNBBurn, recvWindow) => {
448
519
  const localVarQueryParameter = {};
520
+ const localVarBodyParameter = {};
449
521
  if (spotBNBBurn !== void 0 && spotBNBBurn !== null) localVarQueryParameter["spotBNBBurn"] = spotBNBBurn;
450
522
  if (interestBNBBurn !== void 0 && interestBNBBurn !== null) localVarQueryParameter["interestBNBBurn"] = interestBNBBurn;
451
523
  if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
@@ -454,12 +526,14 @@ const AssetApiAxiosParamCreator = function(configuration) {
454
526
  return {
455
527
  endpoint: "/sapi/v1/bnbBurn",
456
528
  method: "POST",
457
- params: localVarQueryParameter,
529
+ queryParams: localVarQueryParameter,
530
+ bodyParams: localVarBodyParameter,
458
531
  timeUnit: _timeUnit
459
532
  };
460
533
  },
461
534
  tradeFee: async (symbol, recvWindow) => {
462
535
  const localVarQueryParameter = {};
536
+ const localVarBodyParameter = {};
463
537
  if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
464
538
  if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
465
539
  let _timeUnit;
@@ -467,12 +541,14 @@ const AssetApiAxiosParamCreator = function(configuration) {
467
541
  return {
468
542
  endpoint: "/sapi/v1/asset/tradeFee",
469
543
  method: "GET",
470
- params: localVarQueryParameter,
544
+ queryParams: localVarQueryParameter,
545
+ bodyParams: localVarBodyParameter,
471
546
  timeUnit: _timeUnit
472
547
  };
473
548
  },
474
549
  userAsset: async (asset, needBtcValuation, recvWindow) => {
475
550
  const localVarQueryParameter = {};
551
+ const localVarBodyParameter = {};
476
552
  if (asset !== void 0 && asset !== null) localVarQueryParameter["asset"] = asset;
477
553
  if (needBtcValuation !== void 0 && needBtcValuation !== null) localVarQueryParameter["needBtcValuation"] = needBtcValuation;
478
554
  if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
@@ -481,7 +557,8 @@ const AssetApiAxiosParamCreator = function(configuration) {
481
557
  return {
482
558
  endpoint: "/sapi/v3/asset/getUserAsset",
483
559
  method: "POST",
484
- params: localVarQueryParameter,
560
+ queryParams: localVarQueryParameter,
561
+ bodyParams: localVarBodyParameter,
485
562
  timeUnit: _timeUnit
486
563
  };
487
564
  },
@@ -490,6 +567,7 @@ const AssetApiAxiosParamCreator = function(configuration) {
490
567
  (0, __binance_common.assertParamExists)("userUniversalTransfer", "asset", asset);
491
568
  (0, __binance_common.assertParamExists)("userUniversalTransfer", "amount", amount);
492
569
  const localVarQueryParameter = {};
570
+ const localVarBodyParameter = {};
493
571
  if (type !== void 0 && type !== null) localVarQueryParameter["type"] = type;
494
572
  if (asset !== void 0 && asset !== null) localVarQueryParameter["asset"] = asset;
495
573
  if (amount !== void 0 && amount !== null) localVarQueryParameter["amount"] = amount;
@@ -501,7 +579,8 @@ const AssetApiAxiosParamCreator = function(configuration) {
501
579
  return {
502
580
  endpoint: "/sapi/v1/asset/transfer",
503
581
  method: "POST",
504
- params: localVarQueryParameter,
582
+ queryParams: localVarQueryParameter,
583
+ bodyParams: localVarBodyParameter,
505
584
  timeUnit: _timeUnit
506
585
  };
507
586
  }
@@ -533,7 +612,7 @@ var AssetApi = class {
533
612
  */
534
613
  async assetDetail(requestParameters = {}) {
535
614
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.assetDetail(requestParameters?.recvWindow);
536
- return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.params, localVarAxiosArgs?.timeUnit, { isSigned: true });
615
+ return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
537
616
  }
538
617
  /**
539
618
  * Query asset dividend record.
@@ -552,7 +631,39 @@ var AssetApi = class {
552
631
  */
553
632
  async assetDividendRecord(requestParameters = {}) {
554
633
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.assetDividendRecord(requestParameters?.asset, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.limit, requestParameters?.recvWindow);
555
- return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.params, localVarAxiosArgs?.timeUnit, { isSigned: true });
634
+ return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
635
+ }
636
+ /**
637
+ * Convert dust assets
638
+ *
639
+ * Weight: 10
640
+ *
641
+ * @summary Dust Convert (USER_DATA)
642
+ * @param {DustConvertRequest} requestParameters Request parameters.
643
+ * @returns {Promise<RestApiResponse<DustConvertResponse>>}
644
+ * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
645
+ * @memberof AssetApi
646
+ * @see {@link https://developers.binance.com/docs/wallet/asset/Dust-Convert Binance API Documentation}
647
+ */
648
+ async dustConvert(requestParameters) {
649
+ const localVarAxiosArgs = await this.localVarAxiosParamCreator.dustConvert(requestParameters?.asset, requestParameters?.clientId, requestParameters?.targetAsset, requestParameters?.thirdPartyClientId, requestParameters?.dustQuotaAssetToTargetAssetPrice);
650
+ return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
651
+ }
652
+ /**
653
+ * Query dust convertible assets
654
+ *
655
+ * Weight: 1
656
+ *
657
+ * @summary Dust Convertible Assets (USER_DATA)
658
+ * @param {DustConvertibleAssetsRequest} requestParameters Request parameters.
659
+ * @returns {Promise<RestApiResponse<DustConvertibleAssetsResponse>>}
660
+ * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
661
+ * @memberof AssetApi
662
+ * @see {@link https://developers.binance.com/docs/wallet/asset/Dust-Convertible-Assets Binance API Documentation}
663
+ */
664
+ async dustConvertibleAssets(requestParameters) {
665
+ const localVarAxiosArgs = await this.localVarAxiosParamCreator.dustConvertibleAssets(requestParameters?.targetAsset, requestParameters?.dustQuotaAssetToTargetAssetPrice);
666
+ return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
556
667
  }
557
668
  /**
558
669
  * Convert dust assets to BNB.
@@ -570,7 +681,7 @@ var AssetApi = class {
570
681
  */
571
682
  async dustTransfer(requestParameters) {
572
683
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.dustTransfer(requestParameters?.asset, requestParameters?.accountType, requestParameters?.recvWindow);
573
- return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.params, localVarAxiosArgs?.timeUnit, { isSigned: true });
684
+ return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
574
685
  }
575
686
  /**
576
687
  * Dustlog
@@ -589,7 +700,7 @@ var AssetApi = class {
589
700
  */
590
701
  async dustlog(requestParameters = {}) {
591
702
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.dustlog(requestParameters?.startTime, requestParameters?.endTime, requestParameters?.recvWindow);
592
- return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.params, localVarAxiosArgs?.timeUnit, { isSigned: true });
703
+ return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
593
704
  }
594
705
  /**
595
706
  * Query Funding Wallet
@@ -608,7 +719,7 @@ var AssetApi = class {
608
719
  */
609
720
  async fundingWallet(requestParameters = {}) {
610
721
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.fundingWallet(requestParameters?.asset, requestParameters?.needBtcValuation, requestParameters?.recvWindow);
611
- return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.params, localVarAxiosArgs?.timeUnit, { isSigned: true });
722
+ return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
612
723
  }
613
724
  /**
614
725
  * Get Assets That Can Be Converted Into BNB
@@ -624,7 +735,7 @@ var AssetApi = class {
624
735
  */
625
736
  async getAssetsThatCanBeConvertedIntoBnb(requestParameters = {}) {
626
737
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.getAssetsThatCanBeConvertedIntoBnb(requestParameters?.accountType, requestParameters?.recvWindow);
627
- return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.params, localVarAxiosArgs?.timeUnit, { isSigned: true });
738
+ return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
628
739
  }
629
740
  /**
630
741
  * The query of Cloud-Mining payment and refund history
@@ -643,7 +754,7 @@ var AssetApi = class {
643
754
  */
644
755
  async getCloudMiningPaymentAndRefundHistory(requestParameters) {
645
756
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.getCloudMiningPaymentAndRefundHistory(requestParameters?.startTime, requestParameters?.endTime, requestParameters?.tranId, requestParameters?.clientTranId, requestParameters?.asset, requestParameters?.current, requestParameters?.size);
646
- return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.params, localVarAxiosArgs?.timeUnit, { isSigned: true });
757
+ return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
647
758
  }
648
759
  /**
649
760
  * Get the list of symbols that are scheduled to be opened for trading in the market.
@@ -658,7 +769,7 @@ var AssetApi = class {
658
769
  */
659
770
  async getOpenSymbolList() {
660
771
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.getOpenSymbolList();
661
- return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.params, localVarAxiosArgs?.timeUnit, { isSigned: false });
772
+ return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
662
773
  }
663
774
  /**
664
775
  * Query User Delegation History
@@ -676,7 +787,7 @@ var AssetApi = class {
676
787
  */
677
788
  async queryUserDelegationHistory(requestParameters) {
678
789
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryUserDelegationHistory(requestParameters?.email, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.type, requestParameters?.asset, requestParameters?.current, requestParameters?.size, requestParameters?.recvWindow);
679
- return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.params, localVarAxiosArgs?.timeUnit, { isSigned: true });
790
+ return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
680
791
  }
681
792
  /**
682
793
  * Query User Universal Transfer History
@@ -698,7 +809,7 @@ var AssetApi = class {
698
809
  */
699
810
  async queryUserUniversalTransferHistory(requestParameters) {
700
811
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryUserUniversalTransferHistory(requestParameters?.type, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.current, requestParameters?.size, requestParameters?.fromSymbol, requestParameters?.toSymbol, requestParameters?.recvWindow);
701
- return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.params, localVarAxiosArgs?.timeUnit, { isSigned: true });
812
+ return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
702
813
  }
703
814
  /**
704
815
  * Query User Wallet Balance
@@ -714,7 +825,7 @@ var AssetApi = class {
714
825
  */
715
826
  async queryUserWalletBalance(requestParameters = {}) {
716
827
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryUserWalletBalance(requestParameters?.quoteAsset, requestParameters?.recvWindow);
717
- return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.params, localVarAxiosArgs?.timeUnit, { isSigned: true });
828
+ return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
718
829
  }
719
830
  /**
720
831
  * Toggle BNB Burn On Spot Trade And Margin Interest
@@ -732,7 +843,7 @@ var AssetApi = class {
732
843
  */
733
844
  async toggleBnbBurnOnSpotTradeAndMarginInterest(requestParameters = {}) {
734
845
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.toggleBnbBurnOnSpotTradeAndMarginInterest(requestParameters?.spotBNBBurn, requestParameters?.interestBNBBurn, requestParameters?.recvWindow);
735
- return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.params, localVarAxiosArgs?.timeUnit, { isSigned: true });
846
+ return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
736
847
  }
737
848
  /**
738
849
  * Fetch trade fee
@@ -748,7 +859,7 @@ var AssetApi = class {
748
859
  */
749
860
  async tradeFee(requestParameters = {}) {
750
861
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.tradeFee(requestParameters?.symbol, requestParameters?.recvWindow);
751
- return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.params, localVarAxiosArgs?.timeUnit, { isSigned: true });
862
+ return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
752
863
  }
753
864
  /**
754
865
  * Get user assets, just for positive data.
@@ -767,7 +878,7 @@ var AssetApi = class {
767
878
  */
768
879
  async userAsset(requestParameters = {}) {
769
880
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.userAsset(requestParameters?.asset, requestParameters?.needBtcValuation, requestParameters?.recvWindow);
770
- return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.params, localVarAxiosArgs?.timeUnit, { isSigned: true });
881
+ return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
771
882
  }
772
883
  /**
773
884
  * user universal transfer
@@ -818,7 +929,7 @@ var AssetApi = class {
818
929
  */
819
930
  async userUniversalTransfer(requestParameters) {
820
931
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.userUniversalTransfer(requestParameters?.type, requestParameters?.asset, requestParameters?.amount, requestParameters?.fromSymbol, requestParameters?.toSymbol, requestParameters?.recvWindow);
821
- return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.params, localVarAxiosArgs?.timeUnit, { isSigned: true });
932
+ return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
822
933
  }
823
934
  };
824
935
 
@@ -843,19 +954,22 @@ const CapitalApiAxiosParamCreator = function(configuration) {
843
954
  return {
844
955
  allCoinsInformation: async (recvWindow) => {
845
956
  const localVarQueryParameter = {};
957
+ const localVarBodyParameter = {};
846
958
  if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
847
959
  let _timeUnit;
848
960
  if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
849
961
  return {
850
962
  endpoint: "/sapi/v1/capital/config/getall",
851
963
  method: "GET",
852
- params: localVarQueryParameter,
964
+ queryParams: localVarQueryParameter,
965
+ bodyParams: localVarBodyParameter,
853
966
  timeUnit: _timeUnit
854
967
  };
855
968
  },
856
969
  depositAddress: async (coin, network, amount, recvWindow) => {
857
970
  (0, __binance_common.assertParamExists)("depositAddress", "coin", coin);
858
971
  const localVarQueryParameter = {};
972
+ const localVarBodyParameter = {};
859
973
  if (coin !== void 0 && coin !== null) localVarQueryParameter["coin"] = coin;
860
974
  if (network !== void 0 && network !== null) localVarQueryParameter["network"] = network;
861
975
  if (amount !== void 0 && amount !== null) localVarQueryParameter["amount"] = amount;
@@ -865,12 +979,14 @@ const CapitalApiAxiosParamCreator = function(configuration) {
865
979
  return {
866
980
  endpoint: "/sapi/v1/capital/deposit/address",
867
981
  method: "GET",
868
- params: localVarQueryParameter,
982
+ queryParams: localVarQueryParameter,
983
+ bodyParams: localVarBodyParameter,
869
984
  timeUnit: _timeUnit
870
985
  };
871
986
  },
872
987
  depositHistory: async (includeSource, coin, status, startTime, endTime, offset, limit, recvWindow, txId) => {
873
988
  const localVarQueryParameter = {};
989
+ const localVarBodyParameter = {};
874
990
  if (includeSource !== void 0 && includeSource !== null) localVarQueryParameter["includeSource"] = includeSource;
875
991
  if (coin !== void 0 && coin !== null) localVarQueryParameter["coin"] = coin;
876
992
  if (status !== void 0 && status !== null) localVarQueryParameter["status"] = status;
@@ -885,13 +1001,15 @@ const CapitalApiAxiosParamCreator = function(configuration) {
885
1001
  return {
886
1002
  endpoint: "/sapi/v1/capital/deposit/hisrec",
887
1003
  method: "GET",
888
- params: localVarQueryParameter,
1004
+ queryParams: localVarQueryParameter,
1005
+ bodyParams: localVarBodyParameter,
889
1006
  timeUnit: _timeUnit
890
1007
  };
891
1008
  },
892
1009
  fetchDepositAddressListWithNetwork: async (coin, network) => {
893
1010
  (0, __binance_common.assertParamExists)("fetchDepositAddressListWithNetwork", "coin", coin);
894
1011
  const localVarQueryParameter = {};
1012
+ const localVarBodyParameter = {};
895
1013
  if (coin !== void 0 && coin !== null) localVarQueryParameter["coin"] = coin;
896
1014
  if (network !== void 0 && network !== null) localVarQueryParameter["network"] = network;
897
1015
  let _timeUnit;
@@ -899,34 +1017,40 @@ const CapitalApiAxiosParamCreator = function(configuration) {
899
1017
  return {
900
1018
  endpoint: "/sapi/v1/capital/deposit/address/list",
901
1019
  method: "GET",
902
- params: localVarQueryParameter,
1020
+ queryParams: localVarQueryParameter,
1021
+ bodyParams: localVarBodyParameter,
903
1022
  timeUnit: _timeUnit
904
1023
  };
905
1024
  },
906
1025
  fetchWithdrawAddressList: async () => {
907
1026
  const localVarQueryParameter = {};
1027
+ const localVarBodyParameter = {};
908
1028
  let _timeUnit;
909
1029
  if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
910
1030
  return {
911
1031
  endpoint: "/sapi/v1/capital/withdraw/address/list",
912
1032
  method: "GET",
913
- params: localVarQueryParameter,
1033
+ queryParams: localVarQueryParameter,
1034
+ bodyParams: localVarBodyParameter,
914
1035
  timeUnit: _timeUnit
915
1036
  };
916
1037
  },
917
1038
  fetchWithdrawQuota: async () => {
918
1039
  const localVarQueryParameter = {};
1040
+ const localVarBodyParameter = {};
919
1041
  let _timeUnit;
920
1042
  if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
921
1043
  return {
922
1044
  endpoint: "/sapi/v1/capital/withdraw/quota",
923
1045
  method: "GET",
924
- params: localVarQueryParameter,
1046
+ queryParams: localVarQueryParameter,
1047
+ bodyParams: localVarBodyParameter,
925
1048
  timeUnit: _timeUnit
926
1049
  };
927
1050
  },
928
1051
  oneClickArrivalDepositApply: async (depositId, txId, subAccountId, subUserId) => {
929
1052
  const localVarQueryParameter = {};
1053
+ const localVarBodyParameter = {};
930
1054
  if (depositId !== void 0 && depositId !== null) localVarQueryParameter["depositId"] = depositId;
931
1055
  if (txId !== void 0 && txId !== null) localVarQueryParameter["txId"] = txId;
932
1056
  if (subAccountId !== void 0 && subAccountId !== null) localVarQueryParameter["subAccountId"] = subAccountId;
@@ -936,7 +1060,8 @@ const CapitalApiAxiosParamCreator = function(configuration) {
936
1060
  return {
937
1061
  endpoint: "/sapi/v1/capital/deposit/credit-apply",
938
1062
  method: "POST",
939
- params: localVarQueryParameter,
1063
+ queryParams: localVarQueryParameter,
1064
+ bodyParams: localVarBodyParameter,
940
1065
  timeUnit: _timeUnit
941
1066
  };
942
1067
  },
@@ -945,6 +1070,7 @@ const CapitalApiAxiosParamCreator = function(configuration) {
945
1070
  (0, __binance_common.assertParamExists)("withdraw", "address", address);
946
1071
  (0, __binance_common.assertParamExists)("withdraw", "amount", amount);
947
1072
  const localVarQueryParameter = {};
1073
+ const localVarBodyParameter = {};
948
1074
  if (coin !== void 0 && coin !== null) localVarQueryParameter["coin"] = coin;
949
1075
  if (withdrawOrderId !== void 0 && withdrawOrderId !== null) localVarQueryParameter["withdrawOrderId"] = withdrawOrderId;
950
1076
  if (network !== void 0 && network !== null) localVarQueryParameter["network"] = network;
@@ -960,12 +1086,14 @@ const CapitalApiAxiosParamCreator = function(configuration) {
960
1086
  return {
961
1087
  endpoint: "/sapi/v1/capital/withdraw/apply",
962
1088
  method: "POST",
963
- params: localVarQueryParameter,
1089
+ queryParams: localVarQueryParameter,
1090
+ bodyParams: localVarBodyParameter,
964
1091
  timeUnit: _timeUnit
965
1092
  };
966
1093
  },
967
1094
  withdrawHistory: async (coin, withdrawOrderId, status, offset, limit, idList, startTime, endTime, recvWindow) => {
968
1095
  const localVarQueryParameter = {};
1096
+ const localVarBodyParameter = {};
969
1097
  if (coin !== void 0 && coin !== null) localVarQueryParameter["coin"] = coin;
970
1098
  if (withdrawOrderId !== void 0 && withdrawOrderId !== null) localVarQueryParameter["withdrawOrderId"] = withdrawOrderId;
971
1099
  if (status !== void 0 && status !== null) localVarQueryParameter["status"] = status;
@@ -980,7 +1108,8 @@ const CapitalApiAxiosParamCreator = function(configuration) {
980
1108
  return {
981
1109
  endpoint: "/sapi/v1/capital/withdraw/history",
982
1110
  method: "GET",
983
- params: localVarQueryParameter,
1111
+ queryParams: localVarQueryParameter,
1112
+ bodyParams: localVarBodyParameter,
984
1113
  timeUnit: _timeUnit
985
1114
  };
986
1115
  }
@@ -1009,7 +1138,7 @@ var CapitalApi = class {
1009
1138
  */
1010
1139
  async allCoinsInformation(requestParameters = {}) {
1011
1140
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.allCoinsInformation(requestParameters?.recvWindow);
1012
- return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.params, localVarAxiosArgs?.timeUnit, { isSigned: true });
1141
+ return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
1013
1142
  }
1014
1143
  /**
1015
1144
  * Fetch deposit address with network.
@@ -1029,7 +1158,7 @@ var CapitalApi = class {
1029
1158
  */
1030
1159
  async depositAddress(requestParameters) {
1031
1160
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.depositAddress(requestParameters?.coin, requestParameters?.network, requestParameters?.amount, requestParameters?.recvWindow);
1032
- return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.params, localVarAxiosArgs?.timeUnit, { isSigned: true });
1161
+ return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
1033
1162
  }
1034
1163
  /**
1035
1164
  * Fetch deposit history.
@@ -1049,7 +1178,7 @@ var CapitalApi = class {
1049
1178
  */
1050
1179
  async depositHistory(requestParameters = {}) {
1051
1180
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.depositHistory(requestParameters?.includeSource, requestParameters?.coin, requestParameters?.status, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.offset, requestParameters?.limit, requestParameters?.recvWindow, requestParameters?.txId);
1052
- return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.params, localVarAxiosArgs?.timeUnit, { isSigned: true });
1181
+ return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
1053
1182
  }
1054
1183
  /**
1055
1184
  * Fetch deposit address list with network.
@@ -1069,7 +1198,7 @@ var CapitalApi = class {
1069
1198
  */
1070
1199
  async fetchDepositAddressListWithNetwork(requestParameters) {
1071
1200
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.fetchDepositAddressListWithNetwork(requestParameters?.coin, requestParameters?.network);
1072
- return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.params, localVarAxiosArgs?.timeUnit, { isSigned: true });
1201
+ return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
1073
1202
  }
1074
1203
  /**
1075
1204
  * Fetch withdraw address list
@@ -1084,7 +1213,7 @@ var CapitalApi = class {
1084
1213
  */
1085
1214
  async fetchWithdrawAddressList() {
1086
1215
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.fetchWithdrawAddressList();
1087
- return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.params, localVarAxiosArgs?.timeUnit, { isSigned: true });
1216
+ return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
1088
1217
  }
1089
1218
  /**
1090
1219
  * Fetch withdraw quota
@@ -1099,7 +1228,7 @@ var CapitalApi = class {
1099
1228
  */
1100
1229
  async fetchWithdrawQuota() {
1101
1230
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.fetchWithdrawQuota();
1102
- return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.params, localVarAxiosArgs?.timeUnit, { isSigned: true });
1231
+ return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
1103
1232
  }
1104
1233
  /**
1105
1234
  * Apply deposit credit for expired address (One click arrival)
@@ -1117,7 +1246,7 @@ var CapitalApi = class {
1117
1246
  */
1118
1247
  async oneClickArrivalDepositApply(requestParameters = {}) {
1119
1248
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.oneClickArrivalDepositApply(requestParameters?.depositId, requestParameters?.txId, requestParameters?.subAccountId, requestParameters?.subUserId);
1120
- return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.params, localVarAxiosArgs?.timeUnit, { isSigned: true });
1249
+ return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
1121
1250
  }
1122
1251
  /**
1123
1252
  * Submit a withdraw request.
@@ -1138,7 +1267,7 @@ var CapitalApi = class {
1138
1267
  */
1139
1268
  async withdraw(requestParameters) {
1140
1269
  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);
1141
- return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.params, localVarAxiosArgs?.timeUnit, { isSigned: true });
1270
+ return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
1142
1271
  }
1143
1272
  /**
1144
1273
  * Fetch withdraw history.
@@ -1162,7 +1291,7 @@ var CapitalApi = class {
1162
1291
  */
1163
1292
  async withdrawHistory(requestParameters = {}) {
1164
1293
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.withdrawHistory(requestParameters?.coin, requestParameters?.withdrawOrderId, requestParameters?.status, requestParameters?.offset, requestParameters?.limit, requestParameters?.idList, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.recvWindow);
1165
- return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.params, localVarAxiosArgs?.timeUnit, { isSigned: true });
1294
+ return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
1166
1295
  }
1167
1296
  };
1168
1297
 
@@ -1187,24 +1316,28 @@ const OthersApiAxiosParamCreator = function(configuration) {
1187
1316
  return {
1188
1317
  getSymbolsDelistScheduleForSpot: async (recvWindow) => {
1189
1318
  const localVarQueryParameter = {};
1319
+ const localVarBodyParameter = {};
1190
1320
  if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
1191
1321
  let _timeUnit;
1192
1322
  if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
1193
1323
  return {
1194
1324
  endpoint: "/sapi/v1/spot/delist-schedule",
1195
1325
  method: "GET",
1196
- params: localVarQueryParameter,
1326
+ queryParams: localVarQueryParameter,
1327
+ bodyParams: localVarBodyParameter,
1197
1328
  timeUnit: _timeUnit
1198
1329
  };
1199
1330
  },
1200
1331
  systemStatus: async () => {
1201
1332
  const localVarQueryParameter = {};
1333
+ const localVarBodyParameter = {};
1202
1334
  let _timeUnit;
1203
1335
  if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
1204
1336
  return {
1205
1337
  endpoint: "/sapi/v1/system/status",
1206
1338
  method: "GET",
1207
- params: localVarQueryParameter,
1339
+ queryParams: localVarQueryParameter,
1340
+ bodyParams: localVarBodyParameter,
1208
1341
  timeUnit: _timeUnit
1209
1342
  };
1210
1343
  }
@@ -1233,7 +1366,7 @@ var OthersApi = class {
1233
1366
  */
1234
1367
  async getSymbolsDelistScheduleForSpot(requestParameters = {}) {
1235
1368
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.getSymbolsDelistScheduleForSpot(requestParameters?.recvWindow);
1236
- return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.params, localVarAxiosArgs?.timeUnit, { isSigned: false });
1369
+ return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
1237
1370
  }
1238
1371
  /**
1239
1372
  * Fetch system status.
@@ -1248,7 +1381,7 @@ var OthersApi = class {
1248
1381
  */
1249
1382
  async systemStatus() {
1250
1383
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.systemStatus();
1251
- return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.params, localVarAxiosArgs?.timeUnit, { isSigned: false });
1384
+ return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
1252
1385
  }
1253
1386
  };
1254
1387
 
@@ -1280,6 +1413,7 @@ const TravelRuleApiAxiosParamCreator = function(configuration) {
1280
1413
  (0, __binance_common.assertParamExists)("brokerWithdraw", "originatorPii", originatorPii);
1281
1414
  (0, __binance_common.assertParamExists)("brokerWithdraw", "signature", signature);
1282
1415
  const localVarQueryParameter = {};
1416
+ const localVarBodyParameter = {};
1283
1417
  if (address !== void 0 && address !== null) localVarQueryParameter["address"] = address;
1284
1418
  if (addressTag !== void 0 && addressTag !== null) localVarQueryParameter["addressTag"] = addressTag;
1285
1419
  if (network !== void 0 && network !== null) localVarQueryParameter["network"] = network;
@@ -1297,24 +1431,28 @@ const TravelRuleApiAxiosParamCreator = function(configuration) {
1297
1431
  return {
1298
1432
  endpoint: "/sapi/v1/localentity/broker/withdraw/apply",
1299
1433
  method: "POST",
1300
- params: localVarQueryParameter,
1434
+ queryParams: localVarQueryParameter,
1435
+ bodyParams: localVarBodyParameter,
1301
1436
  timeUnit: _timeUnit
1302
1437
  };
1303
1438
  },
1304
1439
  checkQuestionnaireRequirements: async (recvWindow) => {
1305
1440
  const localVarQueryParameter = {};
1441
+ const localVarBodyParameter = {};
1306
1442
  if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
1307
1443
  let _timeUnit;
1308
1444
  if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
1309
1445
  return {
1310
1446
  endpoint: "/sapi/v1/localentity/questionnaire-requirements",
1311
1447
  method: "GET",
1312
- params: localVarQueryParameter,
1448
+ queryParams: localVarQueryParameter,
1449
+ bodyParams: localVarBodyParameter,
1313
1450
  timeUnit: _timeUnit
1314
1451
  };
1315
1452
  },
1316
1453
  depositHistoryTravelRule: async (trId, txId, tranId, network, coin, travelRuleStatus, pendingQuestionnaire, startTime, endTime, offset, limit) => {
1317
1454
  const localVarQueryParameter = {};
1455
+ const localVarBodyParameter = {};
1318
1456
  if (trId !== void 0 && trId !== null) localVarQueryParameter["trId"] = trId;
1319
1457
  if (txId !== void 0 && txId !== null) localVarQueryParameter["txId"] = txId;
1320
1458
  if (tranId !== void 0 && tranId !== null) localVarQueryParameter["tranId"] = tranId;
@@ -1331,12 +1469,14 @@ const TravelRuleApiAxiosParamCreator = function(configuration) {
1331
1469
  return {
1332
1470
  endpoint: "/sapi/v1/localentity/deposit/history",
1333
1471
  method: "GET",
1334
- params: localVarQueryParameter,
1472
+ queryParams: localVarQueryParameter,
1473
+ bodyParams: localVarBodyParameter,
1335
1474
  timeUnit: _timeUnit
1336
1475
  };
1337
1476
  },
1338
1477
  depositHistoryV2: async (depositId, txId, network, coin, retrieveQuestionnaire, startTime, endTime, offset, limit) => {
1339
1478
  const localVarQueryParameter = {};
1479
+ const localVarBodyParameter = {};
1340
1480
  if (depositId !== void 0 && depositId !== null) localVarQueryParameter["depositId"] = depositId;
1341
1481
  if (txId !== void 0 && txId !== null) localVarQueryParameter["txId"] = txId;
1342
1482
  if (network !== void 0 && network !== null) localVarQueryParameter["network"] = network;
@@ -1351,19 +1491,22 @@ const TravelRuleApiAxiosParamCreator = function(configuration) {
1351
1491
  return {
1352
1492
  endpoint: "/sapi/v2/localentity/deposit/history",
1353
1493
  method: "GET",
1354
- params: localVarQueryParameter,
1494
+ queryParams: localVarQueryParameter,
1495
+ bodyParams: localVarBodyParameter,
1355
1496
  timeUnit: _timeUnit
1356
1497
  };
1357
1498
  },
1358
1499
  fetchAddressVerificationList: async (recvWindow) => {
1359
1500
  const localVarQueryParameter = {};
1501
+ const localVarBodyParameter = {};
1360
1502
  if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
1361
1503
  let _timeUnit;
1362
1504
  if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
1363
1505
  return {
1364
1506
  endpoint: "/sapi/v1/addressVerify/list",
1365
1507
  method: "GET",
1366
- params: localVarQueryParameter,
1508
+ queryParams: localVarQueryParameter,
1509
+ bodyParams: localVarBodyParameter,
1367
1510
  timeUnit: _timeUnit
1368
1511
  };
1369
1512
  },
@@ -1374,6 +1517,7 @@ const TravelRuleApiAxiosParamCreator = function(configuration) {
1374
1517
  (0, __binance_common.assertParamExists)("submitDepositQuestionnaire", "beneficiaryPii", beneficiaryPii);
1375
1518
  (0, __binance_common.assertParamExists)("submitDepositQuestionnaire", "signature", signature);
1376
1519
  const localVarQueryParameter = {};
1520
+ const localVarBodyParameter = {};
1377
1521
  if (subAccountId !== void 0 && subAccountId !== null) localVarQueryParameter["subAccountId"] = subAccountId;
1378
1522
  if (depositId !== void 0 && depositId !== null) localVarQueryParameter["depositId"] = depositId;
1379
1523
  if (questionnaire !== void 0 && questionnaire !== null) localVarQueryParameter["questionnaire"] = questionnaire;
@@ -1389,7 +1533,8 @@ const TravelRuleApiAxiosParamCreator = function(configuration) {
1389
1533
  return {
1390
1534
  endpoint: "/sapi/v1/localentity/broker/deposit/provide-info",
1391
1535
  method: "PUT",
1392
- params: localVarQueryParameter,
1536
+ queryParams: localVarQueryParameter,
1537
+ bodyParams: localVarBodyParameter,
1393
1538
  timeUnit: _timeUnit
1394
1539
  };
1395
1540
  },
@@ -1397,6 +1542,7 @@ const TravelRuleApiAxiosParamCreator = function(configuration) {
1397
1542
  (0, __binance_common.assertParamExists)("submitDepositQuestionnaireTravelRule", "tranId", tranId);
1398
1543
  (0, __binance_common.assertParamExists)("submitDepositQuestionnaireTravelRule", "questionnaire", questionnaire);
1399
1544
  const localVarQueryParameter = {};
1545
+ const localVarBodyParameter = {};
1400
1546
  if (tranId !== void 0 && tranId !== null) localVarQueryParameter["tranId"] = tranId;
1401
1547
  if (questionnaire !== void 0 && questionnaire !== null) localVarQueryParameter["questionnaire"] = questionnaire;
1402
1548
  let _timeUnit;
@@ -1404,24 +1550,28 @@ const TravelRuleApiAxiosParamCreator = function(configuration) {
1404
1550
  return {
1405
1551
  endpoint: "/sapi/v1/localentity/deposit/provide-info",
1406
1552
  method: "PUT",
1407
- params: localVarQueryParameter,
1553
+ queryParams: localVarQueryParameter,
1554
+ bodyParams: localVarBodyParameter,
1408
1555
  timeUnit: _timeUnit
1409
1556
  };
1410
1557
  },
1411
1558
  vaspList: async (recvWindow) => {
1412
1559
  const localVarQueryParameter = {};
1560
+ const localVarBodyParameter = {};
1413
1561
  if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
1414
1562
  let _timeUnit;
1415
1563
  if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
1416
1564
  return {
1417
1565
  endpoint: "/sapi/v1/localentity/vasp",
1418
1566
  method: "GET",
1419
- params: localVarQueryParameter,
1567
+ queryParams: localVarQueryParameter,
1568
+ bodyParams: localVarBodyParameter,
1420
1569
  timeUnit: _timeUnit
1421
1570
  };
1422
1571
  },
1423
1572
  withdrawHistoryV1: async (trId, txId, withdrawOrderId, network, coin, travelRuleStatus, offset, limit, startTime, endTime, recvWindow) => {
1424
1573
  const localVarQueryParameter = {};
1574
+ const localVarBodyParameter = {};
1425
1575
  if (trId !== void 0 && trId !== null) localVarQueryParameter["trId"] = trId;
1426
1576
  if (txId !== void 0 && txId !== null) localVarQueryParameter["txId"] = txId;
1427
1577
  if (withdrawOrderId !== void 0 && withdrawOrderId !== null) localVarQueryParameter["withdrawOrderId"] = withdrawOrderId;
@@ -1438,12 +1588,14 @@ const TravelRuleApiAxiosParamCreator = function(configuration) {
1438
1588
  return {
1439
1589
  endpoint: "/sapi/v1/localentity/withdraw/history",
1440
1590
  method: "GET",
1441
- params: localVarQueryParameter,
1591
+ queryParams: localVarQueryParameter,
1592
+ bodyParams: localVarBodyParameter,
1442
1593
  timeUnit: _timeUnit
1443
1594
  };
1444
1595
  },
1445
1596
  withdrawHistoryV2: async (trId, txId, withdrawOrderId, network, coin, travelRuleStatus, offset, limit, startTime, endTime, recvWindow) => {
1446
1597
  const localVarQueryParameter = {};
1598
+ const localVarBodyParameter = {};
1447
1599
  if (trId !== void 0 && trId !== null) localVarQueryParameter["trId"] = trId;
1448
1600
  if (txId !== void 0 && txId !== null) localVarQueryParameter["txId"] = txId;
1449
1601
  if (withdrawOrderId !== void 0 && withdrawOrderId !== null) localVarQueryParameter["withdrawOrderId"] = withdrawOrderId;
@@ -1460,7 +1612,8 @@ const TravelRuleApiAxiosParamCreator = function(configuration) {
1460
1612
  return {
1461
1613
  endpoint: "/sapi/v2/localentity/withdraw/history",
1462
1614
  method: "GET",
1463
- params: localVarQueryParameter,
1615
+ queryParams: localVarQueryParameter,
1616
+ bodyParams: localVarBodyParameter,
1464
1617
  timeUnit: _timeUnit
1465
1618
  };
1466
1619
  },
@@ -1470,6 +1623,7 @@ const TravelRuleApiAxiosParamCreator = function(configuration) {
1470
1623
  (0, __binance_common.assertParamExists)("withdrawTravelRule", "amount", amount);
1471
1624
  (0, __binance_common.assertParamExists)("withdrawTravelRule", "questionnaire", questionnaire);
1472
1625
  const localVarQueryParameter = {};
1626
+ const localVarBodyParameter = {};
1473
1627
  if (coin !== void 0 && coin !== null) localVarQueryParameter["coin"] = coin;
1474
1628
  if (withdrawOrderId !== void 0 && withdrawOrderId !== null) localVarQueryParameter["withdrawOrderId"] = withdrawOrderId;
1475
1629
  if (network !== void 0 && network !== null) localVarQueryParameter["network"] = network;
@@ -1486,7 +1640,8 @@ const TravelRuleApiAxiosParamCreator = function(configuration) {
1486
1640
  return {
1487
1641
  endpoint: "/sapi/v1/localentity/withdraw/apply",
1488
1642
  method: "POST",
1489
- params: localVarQueryParameter,
1643
+ queryParams: localVarQueryParameter,
1644
+ bodyParams: localVarBodyParameter,
1490
1645
  timeUnit: _timeUnit
1491
1646
  };
1492
1647
  }
@@ -1520,7 +1675,7 @@ var TravelRuleApi = class {
1520
1675
  */
1521
1676
  async brokerWithdraw(requestParameters) {
1522
1677
  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);
1523
- return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.params, localVarAxiosArgs?.timeUnit, { isSigned: true });
1678
+ return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
1524
1679
  }
1525
1680
  /**
1526
1681
  * This API will return user-specific Travel Rule questionnaire requirement information in reference to the current API key.
@@ -1536,7 +1691,7 @@ var TravelRuleApi = class {
1536
1691
  */
1537
1692
  async checkQuestionnaireRequirements(requestParameters = {}) {
1538
1693
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.checkQuestionnaireRequirements(requestParameters?.recvWindow);
1539
- return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.params, localVarAxiosArgs?.timeUnit, { isSigned: true });
1694
+ return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
1540
1695
  }
1541
1696
  /**
1542
1697
  * Fetch deposit history for local entities that required travel rule.
@@ -1555,7 +1710,7 @@ var TravelRuleApi = class {
1555
1710
  */
1556
1711
  async depositHistoryTravelRule(requestParameters = {}) {
1557
1712
  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);
1558
- return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.params, localVarAxiosArgs?.timeUnit, { isSigned: true });
1713
+ return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
1559
1714
  }
1560
1715
  /**
1561
1716
  * Fetch deposit history for local entities that with required travel rule information.
@@ -1574,7 +1729,7 @@ var TravelRuleApi = class {
1574
1729
  */
1575
1730
  async depositHistoryV2(requestParameters = {}) {
1576
1731
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.depositHistoryV2(requestParameters?.depositId, requestParameters?.txId, requestParameters?.network, requestParameters?.coin, requestParameters?.retrieveQuestionnaire, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.offset, requestParameters?.limit);
1577
- return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.params, localVarAxiosArgs?.timeUnit, { isSigned: true });
1732
+ return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
1578
1733
  }
1579
1734
  /**
1580
1735
  * Fetch address verification list for user to check on status and other details for the addresses stored in Address Book.
@@ -1590,7 +1745,7 @@ var TravelRuleApi = class {
1590
1745
  */
1591
1746
  async fetchAddressVerificationList(requestParameters = {}) {
1592
1747
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.fetchAddressVerificationList(requestParameters?.recvWindow);
1593
- return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.params, localVarAxiosArgs?.timeUnit, { isSigned: true });
1748
+ return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
1594
1749
  }
1595
1750
  /**
1596
1751
  * Submit questionnaire for brokers of local entities that require travel rule.
@@ -1611,7 +1766,7 @@ var TravelRuleApi = class {
1611
1766
  */
1612
1767
  async submitDepositQuestionnaire(requestParameters) {
1613
1768
  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);
1614
- return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.params, localVarAxiosArgs?.timeUnit, { isSigned: true });
1769
+ return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
1615
1770
  }
1616
1771
  /**
1617
1772
  * Submit questionnaire for local entities that require travel rule.
@@ -1632,7 +1787,7 @@ var TravelRuleApi = class {
1632
1787
  */
1633
1788
  async submitDepositQuestionnaireTravelRule(requestParameters) {
1634
1789
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.submitDepositQuestionnaireTravelRule(requestParameters?.tranId, requestParameters?.questionnaire);
1635
- return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.params, localVarAxiosArgs?.timeUnit, { isSigned: true });
1790
+ return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
1636
1791
  }
1637
1792
  /**
1638
1793
  * Fetch the VASP list for local entities.
@@ -1648,7 +1803,7 @@ var TravelRuleApi = class {
1648
1803
  */
1649
1804
  async vaspList(requestParameters = {}) {
1650
1805
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.vaspList(requestParameters?.recvWindow);
1651
- return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.params, localVarAxiosArgs?.timeUnit, { isSigned: true });
1806
+ return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
1652
1807
  }
1653
1808
  /**
1654
1809
  * Fetch withdraw history for local entities that required travel rule.
@@ -1668,7 +1823,7 @@ var TravelRuleApi = class {
1668
1823
  */
1669
1824
  async withdrawHistoryV1(requestParameters = {}) {
1670
1825
  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);
1671
- return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.params, localVarAxiosArgs?.timeUnit, { isSigned: true });
1826
+ return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
1672
1827
  }
1673
1828
  /**
1674
1829
  * Fetch withdraw history for local entities that required travel rule.
@@ -1694,7 +1849,7 @@ var TravelRuleApi = class {
1694
1849
  */
1695
1850
  async withdrawHistoryV2(requestParameters = {}) {
1696
1851
  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);
1697
- return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.params, localVarAxiosArgs?.timeUnit, { isSigned: true });
1852
+ return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
1698
1853
  }
1699
1854
  /**
1700
1855
  * Submit a withdrawal request for local entities that required travel rule.
@@ -1715,7 +1870,7 @@ var TravelRuleApi = class {
1715
1870
  */
1716
1871
  async withdrawTravelRule(requestParameters) {
1717
1872
  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);
1718
- return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.params, localVarAxiosArgs?.timeUnit, { isSigned: true });
1873
+ return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
1719
1874
  }
1720
1875
  };
1721
1876
 
@@ -1746,23 +1901,25 @@ var RestAPI = class {
1746
1901
  * Generic function to send a request.
1747
1902
  * @param endpoint - The API endpoint to call.
1748
1903
  * @param method - HTTP method to use (GET, POST, DELETE, etc.).
1749
- * @param params - Query parameters for the request.
1904
+ * @param queryParams - Query parameters for the request.
1905
+ * @param bodyParams - Body parameters for the request.
1750
1906
  *
1751
1907
  * @returns A promise resolving to the response data object.
1752
1908
  */
1753
- sendRequest(endpoint, method, params = {}) {
1754
- return (0, __binance_common.sendRequest)(this.configuration, endpoint, method, params, void 0);
1909
+ sendRequest(endpoint, method, queryParams = {}, bodyParams = {}) {
1910
+ return (0, __binance_common.sendRequest)(this.configuration, endpoint, method, queryParams, bodyParams, void 0);
1755
1911
  }
1756
1912
  /**
1757
1913
  * Generic function to send a signed request.
1758
1914
  * @param endpoint - The API endpoint to call.
1759
1915
  * @param method - HTTP method to use (GET, POST, DELETE, etc.).
1760
- * @param params - Query parameters for the request.
1916
+ * @param queryParams - Query parameters for the request.
1917
+ * @param bodyParams - Body parameters for the request.
1761
1918
  *
1762
1919
  * @returns A promise resolving to the response data object.
1763
1920
  */
1764
- sendSignedRequest(endpoint, method, params = {}) {
1765
- return (0, __binance_common.sendRequest)(this.configuration, endpoint, method, params, void 0, { isSigned: true });
1921
+ sendSignedRequest(endpoint, method, queryParams = {}, bodyParams = {}) {
1922
+ return (0, __binance_common.sendRequest)(this.configuration, endpoint, method, queryParams, bodyParams, void 0, { isSigned: true });
1766
1923
  }
1767
1924
  /**
1768
1925
  * Fetch account api trading status detail.
@@ -1912,6 +2069,36 @@ var RestAPI = class {
1912
2069
  return this.assetApi.assetDividendRecord(requestParameters);
1913
2070
  }
1914
2071
  /**
2072
+ * Convert dust assets
2073
+ *
2074
+ * Weight: 10
2075
+ *
2076
+ * @summary Dust Convert (USER_DATA)
2077
+ * @param {DustConvertRequest} requestParameters Request parameters.
2078
+ *
2079
+ * @returns {Promise<RestApiResponse<DustConvertResponse>>}
2080
+ * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
2081
+ * @see {@link https://developers.binance.com/docs/wallet/asset/Dust-Convert Binance API Documentation}
2082
+ */
2083
+ dustConvert(requestParameters) {
2084
+ return this.assetApi.dustConvert(requestParameters);
2085
+ }
2086
+ /**
2087
+ * Query dust convertible assets
2088
+ *
2089
+ * Weight: 1
2090
+ *
2091
+ * @summary Dust Convertible Assets (USER_DATA)
2092
+ * @param {DustConvertibleAssetsRequest} requestParameters Request parameters.
2093
+ *
2094
+ * @returns {Promise<RestApiResponse<DustConvertibleAssetsResponse>>}
2095
+ * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
2096
+ * @see {@link https://developers.binance.com/docs/wallet/asset/Dust-Convertible-Assets Binance API Documentation}
2097
+ */
2098
+ dustConvertibleAssets(requestParameters) {
2099
+ return this.assetApi.dustConvertibleAssets(requestParameters);
2100
+ }
2101
+ /**
1915
2102
  * Convert dust assets to BNB.
1916
2103
  *
1917
2104
  * You need to open`Enable Spot & Margin Trading` permission for the API Key which requests this endpoint.