@binance/wallet 18.0.0 → 19.0.1
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.d.mts +236 -1
- package/dist/index.d.ts +236 -1
- package/dist/index.js +236 -50
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +236 -50
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
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 = "
|
|
17
|
+
var version = "19.0.1";
|
|
18
18
|
|
|
19
19
|
//#endregion
|
|
20
20
|
//#region src/rest-api/modules/account-api.ts
|
|
@@ -38,6 +38,7 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
38
38
|
accountApiTradingStatus: async (recvWindow) => {
|
|
39
39
|
const localVarQueryParameter = {};
|
|
40
40
|
const localVarBodyParameter = {};
|
|
41
|
+
const localVarHeaderParameter = {};
|
|
41
42
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
42
43
|
let _timeUnit;
|
|
43
44
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
@@ -46,12 +47,14 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
46
47
|
method: "GET",
|
|
47
48
|
queryParams: localVarQueryParameter,
|
|
48
49
|
bodyParams: localVarBodyParameter,
|
|
50
|
+
headerParams: localVarHeaderParameter,
|
|
49
51
|
timeUnit: _timeUnit
|
|
50
52
|
};
|
|
51
53
|
},
|
|
52
54
|
accountInfo: async (recvWindow) => {
|
|
53
55
|
const localVarQueryParameter = {};
|
|
54
56
|
const localVarBodyParameter = {};
|
|
57
|
+
const localVarHeaderParameter = {};
|
|
55
58
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
56
59
|
let _timeUnit;
|
|
57
60
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
@@ -60,12 +63,14 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
60
63
|
method: "GET",
|
|
61
64
|
queryParams: localVarQueryParameter,
|
|
62
65
|
bodyParams: localVarBodyParameter,
|
|
66
|
+
headerParams: localVarHeaderParameter,
|
|
63
67
|
timeUnit: _timeUnit
|
|
64
68
|
};
|
|
65
69
|
},
|
|
66
70
|
accountStatus: async (recvWindow) => {
|
|
67
71
|
const localVarQueryParameter = {};
|
|
68
72
|
const localVarBodyParameter = {};
|
|
73
|
+
const localVarHeaderParameter = {};
|
|
69
74
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
70
75
|
let _timeUnit;
|
|
71
76
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
@@ -74,6 +79,7 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
74
79
|
method: "GET",
|
|
75
80
|
queryParams: localVarQueryParameter,
|
|
76
81
|
bodyParams: localVarBodyParameter,
|
|
82
|
+
headerParams: localVarHeaderParameter,
|
|
77
83
|
timeUnit: _timeUnit
|
|
78
84
|
};
|
|
79
85
|
},
|
|
@@ -81,6 +87,7 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
81
87
|
(0, __binance_common.assertParamExists)("dailyAccountSnapshot", "type", type);
|
|
82
88
|
const localVarQueryParameter = {};
|
|
83
89
|
const localVarBodyParameter = {};
|
|
90
|
+
const localVarHeaderParameter = {};
|
|
84
91
|
if (type !== void 0 && type !== null) localVarQueryParameter["type"] = type;
|
|
85
92
|
if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
|
|
86
93
|
if (endTime !== void 0 && endTime !== null) localVarQueryParameter["endTime"] = endTime;
|
|
@@ -93,12 +100,14 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
93
100
|
method: "GET",
|
|
94
101
|
queryParams: localVarQueryParameter,
|
|
95
102
|
bodyParams: localVarBodyParameter,
|
|
103
|
+
headerParams: localVarHeaderParameter,
|
|
96
104
|
timeUnit: _timeUnit
|
|
97
105
|
};
|
|
98
106
|
},
|
|
99
107
|
disableFastWithdrawSwitch: async (recvWindow) => {
|
|
100
108
|
const localVarQueryParameter = {};
|
|
101
109
|
const localVarBodyParameter = {};
|
|
110
|
+
const localVarHeaderParameter = {};
|
|
102
111
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
103
112
|
let _timeUnit;
|
|
104
113
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
@@ -107,12 +116,14 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
107
116
|
method: "POST",
|
|
108
117
|
queryParams: localVarQueryParameter,
|
|
109
118
|
bodyParams: localVarBodyParameter,
|
|
119
|
+
headerParams: localVarHeaderParameter,
|
|
110
120
|
timeUnit: _timeUnit
|
|
111
121
|
};
|
|
112
122
|
},
|
|
113
123
|
enableFastWithdrawSwitch: async (recvWindow) => {
|
|
114
124
|
const localVarQueryParameter = {};
|
|
115
125
|
const localVarBodyParameter = {};
|
|
126
|
+
const localVarHeaderParameter = {};
|
|
116
127
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
117
128
|
let _timeUnit;
|
|
118
129
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
@@ -121,12 +132,14 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
121
132
|
method: "POST",
|
|
122
133
|
queryParams: localVarQueryParameter,
|
|
123
134
|
bodyParams: localVarBodyParameter,
|
|
135
|
+
headerParams: localVarHeaderParameter,
|
|
124
136
|
timeUnit: _timeUnit
|
|
125
137
|
};
|
|
126
138
|
},
|
|
127
139
|
getApiKeyPermission: async (recvWindow) => {
|
|
128
140
|
const localVarQueryParameter = {};
|
|
129
141
|
const localVarBodyParameter = {};
|
|
142
|
+
const localVarHeaderParameter = {};
|
|
130
143
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
131
144
|
let _timeUnit;
|
|
132
145
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
@@ -135,6 +148,7 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
135
148
|
method: "GET",
|
|
136
149
|
queryParams: localVarQueryParameter,
|
|
137
150
|
bodyParams: localVarBodyParameter,
|
|
151
|
+
headerParams: localVarHeaderParameter,
|
|
138
152
|
timeUnit: _timeUnit
|
|
139
153
|
};
|
|
140
154
|
}
|
|
@@ -163,7 +177,7 @@ var AccountApi = class {
|
|
|
163
177
|
*/
|
|
164
178
|
async accountApiTradingStatus(requestParameters = {}) {
|
|
165
179
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.accountApiTradingStatus(requestParameters?.recvWindow);
|
|
166
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
180
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
167
181
|
}
|
|
168
182
|
/**
|
|
169
183
|
* Fetch account info detail.
|
|
@@ -179,7 +193,7 @@ var AccountApi = class {
|
|
|
179
193
|
*/
|
|
180
194
|
async accountInfo(requestParameters = {}) {
|
|
181
195
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.accountInfo(requestParameters?.recvWindow);
|
|
182
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
196
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
183
197
|
}
|
|
184
198
|
/**
|
|
185
199
|
* Fetch account status detail.
|
|
@@ -195,7 +209,7 @@ var AccountApi = class {
|
|
|
195
209
|
*/
|
|
196
210
|
async accountStatus(requestParameters = {}) {
|
|
197
211
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.accountStatus(requestParameters?.recvWindow);
|
|
198
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
212
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
199
213
|
}
|
|
200
214
|
/**
|
|
201
215
|
* Daily account snapshot
|
|
@@ -215,7 +229,7 @@ var AccountApi = class {
|
|
|
215
229
|
*/
|
|
216
230
|
async dailyAccountSnapshot(requestParameters) {
|
|
217
231
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.dailyAccountSnapshot(requestParameters?.type, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.limit, requestParameters?.recvWindow);
|
|
218
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
232
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
219
233
|
}
|
|
220
234
|
/**
|
|
221
235
|
*
|
|
@@ -230,7 +244,7 @@ var AccountApi = class {
|
|
|
230
244
|
*/
|
|
231
245
|
async disableFastWithdrawSwitch(requestParameters = {}) {
|
|
232
246
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.disableFastWithdrawSwitch(requestParameters?.recvWindow);
|
|
233
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
247
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
234
248
|
}
|
|
235
249
|
/**
|
|
236
250
|
* Enable Fast Withdraw Switch (USER_DATA)
|
|
@@ -249,7 +263,7 @@ var AccountApi = class {
|
|
|
249
263
|
*/
|
|
250
264
|
async enableFastWithdrawSwitch(requestParameters = {}) {
|
|
251
265
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.enableFastWithdrawSwitch(requestParameters?.recvWindow);
|
|
252
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
266
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
253
267
|
}
|
|
254
268
|
/**
|
|
255
269
|
* Get API Key Permission
|
|
@@ -265,7 +279,7 @@ var AccountApi = class {
|
|
|
265
279
|
*/
|
|
266
280
|
async getApiKeyPermission(requestParameters = {}) {
|
|
267
281
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getApiKeyPermission(requestParameters?.recvWindow);
|
|
268
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
282
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
269
283
|
}
|
|
270
284
|
};
|
|
271
285
|
|
|
@@ -291,6 +305,7 @@ const AssetApiAxiosParamCreator = function(configuration) {
|
|
|
291
305
|
assetDetail: async (asset, recvWindow) => {
|
|
292
306
|
const localVarQueryParameter = {};
|
|
293
307
|
const localVarBodyParameter = {};
|
|
308
|
+
const localVarHeaderParameter = {};
|
|
294
309
|
if (asset !== void 0 && asset !== null) localVarQueryParameter["asset"] = asset;
|
|
295
310
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
296
311
|
let _timeUnit;
|
|
@@ -300,12 +315,14 @@ const AssetApiAxiosParamCreator = function(configuration) {
|
|
|
300
315
|
method: "GET",
|
|
301
316
|
queryParams: localVarQueryParameter,
|
|
302
317
|
bodyParams: localVarBodyParameter,
|
|
318
|
+
headerParams: localVarHeaderParameter,
|
|
303
319
|
timeUnit: _timeUnit
|
|
304
320
|
};
|
|
305
321
|
},
|
|
306
322
|
assetDividendRecord: async (asset, startTime, endTime, limit, recvWindow) => {
|
|
307
323
|
const localVarQueryParameter = {};
|
|
308
324
|
const localVarBodyParameter = {};
|
|
325
|
+
const localVarHeaderParameter = {};
|
|
309
326
|
if (asset !== void 0 && asset !== null) localVarQueryParameter["asset"] = asset;
|
|
310
327
|
if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
|
|
311
328
|
if (endTime !== void 0 && endTime !== null) localVarQueryParameter["endTime"] = endTime;
|
|
@@ -318,6 +335,7 @@ const AssetApiAxiosParamCreator = function(configuration) {
|
|
|
318
335
|
method: "GET",
|
|
319
336
|
queryParams: localVarQueryParameter,
|
|
320
337
|
bodyParams: localVarBodyParameter,
|
|
338
|
+
headerParams: localVarHeaderParameter,
|
|
321
339
|
timeUnit: _timeUnit
|
|
322
340
|
};
|
|
323
341
|
},
|
|
@@ -325,6 +343,7 @@ const AssetApiAxiosParamCreator = function(configuration) {
|
|
|
325
343
|
(0, __binance_common.assertParamExists)("dustConvert", "asset", asset);
|
|
326
344
|
const localVarQueryParameter = {};
|
|
327
345
|
const localVarBodyParameter = {};
|
|
346
|
+
const localVarHeaderParameter = {};
|
|
328
347
|
if (asset !== void 0 && asset !== null) localVarQueryParameter["asset"] = asset;
|
|
329
348
|
if (accountType !== void 0 && accountType !== null) localVarQueryParameter["accountType"] = accountType;
|
|
330
349
|
if (clientId !== void 0 && clientId !== null) localVarQueryParameter["clientId"] = clientId;
|
|
@@ -338,6 +357,7 @@ const AssetApiAxiosParamCreator = function(configuration) {
|
|
|
338
357
|
method: "POST",
|
|
339
358
|
queryParams: localVarQueryParameter,
|
|
340
359
|
bodyParams: localVarBodyParameter,
|
|
360
|
+
headerParams: localVarHeaderParameter,
|
|
341
361
|
timeUnit: _timeUnit
|
|
342
362
|
};
|
|
343
363
|
},
|
|
@@ -345,6 +365,7 @@ const AssetApiAxiosParamCreator = function(configuration) {
|
|
|
345
365
|
(0, __binance_common.assertParamExists)("dustConvertibleAssets", "targetAsset", targetAsset);
|
|
346
366
|
const localVarQueryParameter = {};
|
|
347
367
|
const localVarBodyParameter = {};
|
|
368
|
+
const localVarHeaderParameter = {};
|
|
348
369
|
if (accountType !== void 0 && accountType !== null) localVarQueryParameter["accountType"] = accountType;
|
|
349
370
|
if (targetAsset !== void 0 && targetAsset !== null) localVarQueryParameter["targetAsset"] = targetAsset;
|
|
350
371
|
if (dustQuotaAssetToTargetAssetPrice !== void 0 && dustQuotaAssetToTargetAssetPrice !== null) localVarQueryParameter["dustQuotaAssetToTargetAssetPrice"] = dustQuotaAssetToTargetAssetPrice;
|
|
@@ -355,6 +376,7 @@ const AssetApiAxiosParamCreator = function(configuration) {
|
|
|
355
376
|
method: "POST",
|
|
356
377
|
queryParams: localVarQueryParameter,
|
|
357
378
|
bodyParams: localVarBodyParameter,
|
|
379
|
+
headerParams: localVarHeaderParameter,
|
|
358
380
|
timeUnit: _timeUnit
|
|
359
381
|
};
|
|
360
382
|
},
|
|
@@ -362,6 +384,7 @@ const AssetApiAxiosParamCreator = function(configuration) {
|
|
|
362
384
|
(0, __binance_common.assertParamExists)("dustTransfer", "asset", asset);
|
|
363
385
|
const localVarQueryParameter = {};
|
|
364
386
|
const localVarBodyParameter = {};
|
|
387
|
+
const localVarHeaderParameter = {};
|
|
365
388
|
if (asset !== void 0 && asset !== null) localVarQueryParameter["asset"] = asset;
|
|
366
389
|
if (accountType !== void 0 && accountType !== null) localVarQueryParameter["accountType"] = accountType;
|
|
367
390
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
@@ -372,12 +395,14 @@ const AssetApiAxiosParamCreator = function(configuration) {
|
|
|
372
395
|
method: "POST",
|
|
373
396
|
queryParams: localVarQueryParameter,
|
|
374
397
|
bodyParams: localVarBodyParameter,
|
|
398
|
+
headerParams: localVarHeaderParameter,
|
|
375
399
|
timeUnit: _timeUnit
|
|
376
400
|
};
|
|
377
401
|
},
|
|
378
402
|
dustlog: async (accountType, startTime, endTime, recvWindow) => {
|
|
379
403
|
const localVarQueryParameter = {};
|
|
380
404
|
const localVarBodyParameter = {};
|
|
405
|
+
const localVarHeaderParameter = {};
|
|
381
406
|
if (accountType !== void 0 && accountType !== null) localVarQueryParameter["accountType"] = accountType;
|
|
382
407
|
if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
|
|
383
408
|
if (endTime !== void 0 && endTime !== null) localVarQueryParameter["endTime"] = endTime;
|
|
@@ -389,12 +414,14 @@ const AssetApiAxiosParamCreator = function(configuration) {
|
|
|
389
414
|
method: "GET",
|
|
390
415
|
queryParams: localVarQueryParameter,
|
|
391
416
|
bodyParams: localVarBodyParameter,
|
|
417
|
+
headerParams: localVarHeaderParameter,
|
|
392
418
|
timeUnit: _timeUnit
|
|
393
419
|
};
|
|
394
420
|
},
|
|
395
421
|
fundingWallet: async (asset, needBtcValuation, recvWindow) => {
|
|
396
422
|
const localVarQueryParameter = {};
|
|
397
423
|
const localVarBodyParameter = {};
|
|
424
|
+
const localVarHeaderParameter = {};
|
|
398
425
|
if (asset !== void 0 && asset !== null) localVarQueryParameter["asset"] = asset;
|
|
399
426
|
if (needBtcValuation !== void 0 && needBtcValuation !== null) localVarQueryParameter["needBtcValuation"] = needBtcValuation;
|
|
400
427
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
@@ -405,12 +432,14 @@ const AssetApiAxiosParamCreator = function(configuration) {
|
|
|
405
432
|
method: "POST",
|
|
406
433
|
queryParams: localVarQueryParameter,
|
|
407
434
|
bodyParams: localVarBodyParameter,
|
|
435
|
+
headerParams: localVarHeaderParameter,
|
|
408
436
|
timeUnit: _timeUnit
|
|
409
437
|
};
|
|
410
438
|
},
|
|
411
439
|
getAssetsThatCanBeConvertedIntoBnb: async (accountType, recvWindow) => {
|
|
412
440
|
const localVarQueryParameter = {};
|
|
413
441
|
const localVarBodyParameter = {};
|
|
442
|
+
const localVarHeaderParameter = {};
|
|
414
443
|
if (accountType !== void 0 && accountType !== null) localVarQueryParameter["accountType"] = accountType;
|
|
415
444
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
416
445
|
let _timeUnit;
|
|
@@ -420,6 +449,7 @@ const AssetApiAxiosParamCreator = function(configuration) {
|
|
|
420
449
|
method: "POST",
|
|
421
450
|
queryParams: localVarQueryParameter,
|
|
422
451
|
bodyParams: localVarBodyParameter,
|
|
452
|
+
headerParams: localVarHeaderParameter,
|
|
423
453
|
timeUnit: _timeUnit
|
|
424
454
|
};
|
|
425
455
|
},
|
|
@@ -428,6 +458,7 @@ const AssetApiAxiosParamCreator = function(configuration) {
|
|
|
428
458
|
(0, __binance_common.assertParamExists)("getCloudMiningPaymentAndRefundHistory", "endTime", endTime);
|
|
429
459
|
const localVarQueryParameter = {};
|
|
430
460
|
const localVarBodyParameter = {};
|
|
461
|
+
const localVarHeaderParameter = {};
|
|
431
462
|
if (tranId !== void 0 && tranId !== null) localVarQueryParameter["tranId"] = tranId;
|
|
432
463
|
if (clientTranId !== void 0 && clientTranId !== null) localVarQueryParameter["clientTranId"] = clientTranId;
|
|
433
464
|
if (asset !== void 0 && asset !== null) localVarQueryParameter["asset"] = asset;
|
|
@@ -442,12 +473,14 @@ const AssetApiAxiosParamCreator = function(configuration) {
|
|
|
442
473
|
method: "GET",
|
|
443
474
|
queryParams: localVarQueryParameter,
|
|
444
475
|
bodyParams: localVarBodyParameter,
|
|
476
|
+
headerParams: localVarHeaderParameter,
|
|
445
477
|
timeUnit: _timeUnit
|
|
446
478
|
};
|
|
447
479
|
},
|
|
448
480
|
getOpenSymbolList: async () => {
|
|
449
481
|
const localVarQueryParameter = {};
|
|
450
482
|
const localVarBodyParameter = {};
|
|
483
|
+
const localVarHeaderParameter = {};
|
|
451
484
|
let _timeUnit;
|
|
452
485
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
453
486
|
return {
|
|
@@ -455,6 +488,7 @@ const AssetApiAxiosParamCreator = function(configuration) {
|
|
|
455
488
|
method: "GET",
|
|
456
489
|
queryParams: localVarQueryParameter,
|
|
457
490
|
bodyParams: localVarBodyParameter,
|
|
491
|
+
headerParams: localVarHeaderParameter,
|
|
458
492
|
timeUnit: _timeUnit
|
|
459
493
|
};
|
|
460
494
|
},
|
|
@@ -464,6 +498,7 @@ const AssetApiAxiosParamCreator = function(configuration) {
|
|
|
464
498
|
(0, __binance_common.assertParamExists)("queryUserDelegationHistory", "endTime", endTime);
|
|
465
499
|
const localVarQueryParameter = {};
|
|
466
500
|
const localVarBodyParameter = {};
|
|
501
|
+
const localVarHeaderParameter = {};
|
|
467
502
|
if (email !== void 0 && email !== null) localVarQueryParameter["email"] = email;
|
|
468
503
|
if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
|
|
469
504
|
if (endTime !== void 0 && endTime !== null) localVarQueryParameter["endTime"] = endTime;
|
|
@@ -479,6 +514,7 @@ const AssetApiAxiosParamCreator = function(configuration) {
|
|
|
479
514
|
method: "GET",
|
|
480
515
|
queryParams: localVarQueryParameter,
|
|
481
516
|
bodyParams: localVarBodyParameter,
|
|
517
|
+
headerParams: localVarHeaderParameter,
|
|
482
518
|
timeUnit: _timeUnit
|
|
483
519
|
};
|
|
484
520
|
},
|
|
@@ -486,6 +522,7 @@ const AssetApiAxiosParamCreator = function(configuration) {
|
|
|
486
522
|
(0, __binance_common.assertParamExists)("queryUserUniversalTransferHistory", "type", type);
|
|
487
523
|
const localVarQueryParameter = {};
|
|
488
524
|
const localVarBodyParameter = {};
|
|
525
|
+
const localVarHeaderParameter = {};
|
|
489
526
|
if (type !== void 0 && type !== null) localVarQueryParameter["type"] = type;
|
|
490
527
|
if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
|
|
491
528
|
if (endTime !== void 0 && endTime !== null) localVarQueryParameter["endTime"] = endTime;
|
|
@@ -501,12 +538,14 @@ const AssetApiAxiosParamCreator = function(configuration) {
|
|
|
501
538
|
method: "GET",
|
|
502
539
|
queryParams: localVarQueryParameter,
|
|
503
540
|
bodyParams: localVarBodyParameter,
|
|
541
|
+
headerParams: localVarHeaderParameter,
|
|
504
542
|
timeUnit: _timeUnit
|
|
505
543
|
};
|
|
506
544
|
},
|
|
507
545
|
queryUserWalletBalance: async (quoteAsset, recvWindow) => {
|
|
508
546
|
const localVarQueryParameter = {};
|
|
509
547
|
const localVarBodyParameter = {};
|
|
548
|
+
const localVarHeaderParameter = {};
|
|
510
549
|
if (quoteAsset !== void 0 && quoteAsset !== null) localVarQueryParameter["quoteAsset"] = quoteAsset;
|
|
511
550
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
512
551
|
let _timeUnit;
|
|
@@ -516,12 +555,14 @@ const AssetApiAxiosParamCreator = function(configuration) {
|
|
|
516
555
|
method: "GET",
|
|
517
556
|
queryParams: localVarQueryParameter,
|
|
518
557
|
bodyParams: localVarBodyParameter,
|
|
558
|
+
headerParams: localVarHeaderParameter,
|
|
519
559
|
timeUnit: _timeUnit
|
|
520
560
|
};
|
|
521
561
|
},
|
|
522
562
|
toggleBnbBurnOnSpotTradeAndMarginInterest: async (spotBNBBurn, interestBNBBurn, recvWindow) => {
|
|
523
563
|
const localVarQueryParameter = {};
|
|
524
564
|
const localVarBodyParameter = {};
|
|
565
|
+
const localVarHeaderParameter = {};
|
|
525
566
|
if (spotBNBBurn !== void 0 && spotBNBBurn !== null) localVarQueryParameter["spotBNBBurn"] = spotBNBBurn;
|
|
526
567
|
if (interestBNBBurn !== void 0 && interestBNBBurn !== null) localVarQueryParameter["interestBNBBurn"] = interestBNBBurn;
|
|
527
568
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
@@ -532,12 +573,14 @@ const AssetApiAxiosParamCreator = function(configuration) {
|
|
|
532
573
|
method: "POST",
|
|
533
574
|
queryParams: localVarQueryParameter,
|
|
534
575
|
bodyParams: localVarBodyParameter,
|
|
576
|
+
headerParams: localVarHeaderParameter,
|
|
535
577
|
timeUnit: _timeUnit
|
|
536
578
|
};
|
|
537
579
|
},
|
|
538
580
|
tradeFee: async (symbol, recvWindow) => {
|
|
539
581
|
const localVarQueryParameter = {};
|
|
540
582
|
const localVarBodyParameter = {};
|
|
583
|
+
const localVarHeaderParameter = {};
|
|
541
584
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
542
585
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
543
586
|
let _timeUnit;
|
|
@@ -547,12 +590,14 @@ const AssetApiAxiosParamCreator = function(configuration) {
|
|
|
547
590
|
method: "GET",
|
|
548
591
|
queryParams: localVarQueryParameter,
|
|
549
592
|
bodyParams: localVarBodyParameter,
|
|
593
|
+
headerParams: localVarHeaderParameter,
|
|
550
594
|
timeUnit: _timeUnit
|
|
551
595
|
};
|
|
552
596
|
},
|
|
553
597
|
userAsset: async (asset, needBtcValuation, recvWindow) => {
|
|
554
598
|
const localVarQueryParameter = {};
|
|
555
599
|
const localVarBodyParameter = {};
|
|
600
|
+
const localVarHeaderParameter = {};
|
|
556
601
|
if (asset !== void 0 && asset !== null) localVarQueryParameter["asset"] = asset;
|
|
557
602
|
if (needBtcValuation !== void 0 && needBtcValuation !== null) localVarQueryParameter["needBtcValuation"] = needBtcValuation;
|
|
558
603
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
@@ -563,6 +608,7 @@ const AssetApiAxiosParamCreator = function(configuration) {
|
|
|
563
608
|
method: "POST",
|
|
564
609
|
queryParams: localVarQueryParameter,
|
|
565
610
|
bodyParams: localVarBodyParameter,
|
|
611
|
+
headerParams: localVarHeaderParameter,
|
|
566
612
|
timeUnit: _timeUnit
|
|
567
613
|
};
|
|
568
614
|
},
|
|
@@ -572,6 +618,7 @@ const AssetApiAxiosParamCreator = function(configuration) {
|
|
|
572
618
|
(0, __binance_common.assertParamExists)("userUniversalTransfer", "amount", amount);
|
|
573
619
|
const localVarQueryParameter = {};
|
|
574
620
|
const localVarBodyParameter = {};
|
|
621
|
+
const localVarHeaderParameter = {};
|
|
575
622
|
if (type !== void 0 && type !== null) localVarQueryParameter["type"] = type;
|
|
576
623
|
if (asset !== void 0 && asset !== null) localVarQueryParameter["asset"] = asset;
|
|
577
624
|
if (amount !== void 0 && amount !== null) localVarQueryParameter["amount"] = amount;
|
|
@@ -585,6 +632,7 @@ const AssetApiAxiosParamCreator = function(configuration) {
|
|
|
585
632
|
method: "POST",
|
|
586
633
|
queryParams: localVarQueryParameter,
|
|
587
634
|
bodyParams: localVarBodyParameter,
|
|
635
|
+
headerParams: localVarHeaderParameter,
|
|
588
636
|
timeUnit: _timeUnit
|
|
589
637
|
};
|
|
590
638
|
}
|
|
@@ -616,7 +664,7 @@ var AssetApi = class {
|
|
|
616
664
|
*/
|
|
617
665
|
async assetDetail(requestParameters = {}) {
|
|
618
666
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.assetDetail(requestParameters?.asset, requestParameters?.recvWindow);
|
|
619
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
667
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
620
668
|
}
|
|
621
669
|
/**
|
|
622
670
|
* Query asset dividend record.
|
|
@@ -635,7 +683,7 @@ var AssetApi = class {
|
|
|
635
683
|
*/
|
|
636
684
|
async assetDividendRecord(requestParameters = {}) {
|
|
637
685
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.assetDividendRecord(requestParameters?.asset, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.limit, requestParameters?.recvWindow);
|
|
638
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
686
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
639
687
|
}
|
|
640
688
|
/**
|
|
641
689
|
* Convert dust assets
|
|
@@ -651,7 +699,7 @@ var AssetApi = class {
|
|
|
651
699
|
*/
|
|
652
700
|
async dustConvert(requestParameters) {
|
|
653
701
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.dustConvert(requestParameters?.asset, requestParameters?.accountType, requestParameters?.clientId, requestParameters?.targetAsset, requestParameters?.thirdPartyClientId, requestParameters?.dustQuotaAssetToTargetAssetPrice);
|
|
654
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
702
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
655
703
|
}
|
|
656
704
|
/**
|
|
657
705
|
* Query dust convertible assets
|
|
@@ -667,7 +715,7 @@ var AssetApi = class {
|
|
|
667
715
|
*/
|
|
668
716
|
async dustConvertibleAssets(requestParameters) {
|
|
669
717
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.dustConvertibleAssets(requestParameters?.targetAsset, requestParameters?.accountType, requestParameters?.dustQuotaAssetToTargetAssetPrice);
|
|
670
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
718
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
671
719
|
}
|
|
672
720
|
/**
|
|
673
721
|
* Convert dust assets to BNB.
|
|
@@ -685,7 +733,7 @@ var AssetApi = class {
|
|
|
685
733
|
*/
|
|
686
734
|
async dustTransfer(requestParameters) {
|
|
687
735
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.dustTransfer(requestParameters?.asset, requestParameters?.accountType, requestParameters?.recvWindow);
|
|
688
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
736
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
689
737
|
}
|
|
690
738
|
/**
|
|
691
739
|
* Dustlog
|
|
@@ -704,7 +752,7 @@ var AssetApi = class {
|
|
|
704
752
|
*/
|
|
705
753
|
async dustlog(requestParameters = {}) {
|
|
706
754
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.dustlog(requestParameters?.accountType, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.recvWindow);
|
|
707
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
755
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
708
756
|
}
|
|
709
757
|
/**
|
|
710
758
|
* Query Funding Wallet
|
|
@@ -723,7 +771,7 @@ var AssetApi = class {
|
|
|
723
771
|
*/
|
|
724
772
|
async fundingWallet(requestParameters = {}) {
|
|
725
773
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.fundingWallet(requestParameters?.asset, requestParameters?.needBtcValuation, requestParameters?.recvWindow);
|
|
726
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
774
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
727
775
|
}
|
|
728
776
|
/**
|
|
729
777
|
* Get Assets That Can Be Converted Into BNB
|
|
@@ -739,7 +787,7 @@ var AssetApi = class {
|
|
|
739
787
|
*/
|
|
740
788
|
async getAssetsThatCanBeConvertedIntoBnb(requestParameters = {}) {
|
|
741
789
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getAssetsThatCanBeConvertedIntoBnb(requestParameters?.accountType, requestParameters?.recvWindow);
|
|
742
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
790
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
743
791
|
}
|
|
744
792
|
/**
|
|
745
793
|
* The query of Cloud-Mining payment and refund history
|
|
@@ -758,7 +806,7 @@ var AssetApi = class {
|
|
|
758
806
|
*/
|
|
759
807
|
async getCloudMiningPaymentAndRefundHistory(requestParameters) {
|
|
760
808
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getCloudMiningPaymentAndRefundHistory(requestParameters?.startTime, requestParameters?.endTime, requestParameters?.tranId, requestParameters?.clientTranId, requestParameters?.asset, requestParameters?.current, requestParameters?.size);
|
|
761
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
809
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
762
810
|
}
|
|
763
811
|
/**
|
|
764
812
|
* Get the list of symbols that are scheduled to be opened for trading in the market.
|
|
@@ -773,7 +821,7 @@ var AssetApi = class {
|
|
|
773
821
|
*/
|
|
774
822
|
async getOpenSymbolList() {
|
|
775
823
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getOpenSymbolList();
|
|
776
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
824
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
777
825
|
}
|
|
778
826
|
/**
|
|
779
827
|
* Query User Delegation History
|
|
@@ -789,7 +837,7 @@ var AssetApi = class {
|
|
|
789
837
|
*/
|
|
790
838
|
async queryUserDelegationHistory(requestParameters) {
|
|
791
839
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryUserDelegationHistory(requestParameters?.email, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.type, requestParameters?.asset, requestParameters?.current, requestParameters?.size, requestParameters?.recvWindow);
|
|
792
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
840
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
793
841
|
}
|
|
794
842
|
/**
|
|
795
843
|
* Query User Universal Transfer History
|
|
@@ -811,7 +859,7 @@ var AssetApi = class {
|
|
|
811
859
|
*/
|
|
812
860
|
async queryUserUniversalTransferHistory(requestParameters) {
|
|
813
861
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryUserUniversalTransferHistory(requestParameters?.type, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.current, requestParameters?.size, requestParameters?.fromSymbol, requestParameters?.toSymbol, requestParameters?.recvWindow);
|
|
814
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
862
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
815
863
|
}
|
|
816
864
|
/**
|
|
817
865
|
* Query User Wallet Balance
|
|
@@ -827,7 +875,7 @@ var AssetApi = class {
|
|
|
827
875
|
*/
|
|
828
876
|
async queryUserWalletBalance(requestParameters = {}) {
|
|
829
877
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryUserWalletBalance(requestParameters?.quoteAsset, requestParameters?.recvWindow);
|
|
830
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
878
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
831
879
|
}
|
|
832
880
|
/**
|
|
833
881
|
* Toggle BNB Burn On Spot Trade And Margin Interest
|
|
@@ -845,7 +893,7 @@ var AssetApi = class {
|
|
|
845
893
|
*/
|
|
846
894
|
async toggleBnbBurnOnSpotTradeAndMarginInterest(requestParameters = {}) {
|
|
847
895
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.toggleBnbBurnOnSpotTradeAndMarginInterest(requestParameters?.spotBNBBurn, requestParameters?.interestBNBBurn, requestParameters?.recvWindow);
|
|
848
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
896
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
849
897
|
}
|
|
850
898
|
/**
|
|
851
899
|
* Fetch trade fee
|
|
@@ -861,7 +909,7 @@ var AssetApi = class {
|
|
|
861
909
|
*/
|
|
862
910
|
async tradeFee(requestParameters = {}) {
|
|
863
911
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.tradeFee(requestParameters?.symbol, requestParameters?.recvWindow);
|
|
864
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
912
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
865
913
|
}
|
|
866
914
|
/**
|
|
867
915
|
* Get user assets, just for positive data.
|
|
@@ -880,7 +928,7 @@ var AssetApi = class {
|
|
|
880
928
|
*/
|
|
881
929
|
async userAsset(requestParameters = {}) {
|
|
882
930
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.userAsset(requestParameters?.asset, requestParameters?.needBtcValuation, requestParameters?.recvWindow);
|
|
883
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
931
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
884
932
|
}
|
|
885
933
|
/**
|
|
886
934
|
* user universal transfer
|
|
@@ -931,7 +979,7 @@ var AssetApi = class {
|
|
|
931
979
|
*/
|
|
932
980
|
async userUniversalTransfer(requestParameters) {
|
|
933
981
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.userUniversalTransfer(requestParameters?.type, requestParameters?.asset, requestParameters?.amount, requestParameters?.fromSymbol, requestParameters?.toSymbol, requestParameters?.recvWindow);
|
|
934
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
982
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
935
983
|
}
|
|
936
984
|
};
|
|
937
985
|
|
|
@@ -957,6 +1005,7 @@ const CapitalApiAxiosParamCreator = function(configuration) {
|
|
|
957
1005
|
allCoinsInformation: async (recvWindow) => {
|
|
958
1006
|
const localVarQueryParameter = {};
|
|
959
1007
|
const localVarBodyParameter = {};
|
|
1008
|
+
const localVarHeaderParameter = {};
|
|
960
1009
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
961
1010
|
let _timeUnit;
|
|
962
1011
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
@@ -965,6 +1014,7 @@ const CapitalApiAxiosParamCreator = function(configuration) {
|
|
|
965
1014
|
method: "GET",
|
|
966
1015
|
queryParams: localVarQueryParameter,
|
|
967
1016
|
bodyParams: localVarBodyParameter,
|
|
1017
|
+
headerParams: localVarHeaderParameter,
|
|
968
1018
|
timeUnit: _timeUnit
|
|
969
1019
|
};
|
|
970
1020
|
},
|
|
@@ -972,6 +1022,7 @@ const CapitalApiAxiosParamCreator = function(configuration) {
|
|
|
972
1022
|
(0, __binance_common.assertParamExists)("depositAddress", "coin", coin);
|
|
973
1023
|
const localVarQueryParameter = {};
|
|
974
1024
|
const localVarBodyParameter = {};
|
|
1025
|
+
const localVarHeaderParameter = {};
|
|
975
1026
|
if (coin !== void 0 && coin !== null) localVarQueryParameter["coin"] = coin;
|
|
976
1027
|
if (network !== void 0 && network !== null) localVarQueryParameter["network"] = network;
|
|
977
1028
|
if (amount !== void 0 && amount !== null) localVarQueryParameter["amount"] = amount;
|
|
@@ -983,12 +1034,14 @@ const CapitalApiAxiosParamCreator = function(configuration) {
|
|
|
983
1034
|
method: "GET",
|
|
984
1035
|
queryParams: localVarQueryParameter,
|
|
985
1036
|
bodyParams: localVarBodyParameter,
|
|
1037
|
+
headerParams: localVarHeaderParameter,
|
|
986
1038
|
timeUnit: _timeUnit
|
|
987
1039
|
};
|
|
988
1040
|
},
|
|
989
1041
|
depositHistory: async (includeSource, coin, status, startTime, endTime, offset, limit, recvWindow, txId) => {
|
|
990
1042
|
const localVarQueryParameter = {};
|
|
991
1043
|
const localVarBodyParameter = {};
|
|
1044
|
+
const localVarHeaderParameter = {};
|
|
992
1045
|
if (includeSource !== void 0 && includeSource !== null) localVarQueryParameter["includeSource"] = includeSource;
|
|
993
1046
|
if (coin !== void 0 && coin !== null) localVarQueryParameter["coin"] = coin;
|
|
994
1047
|
if (status !== void 0 && status !== null) localVarQueryParameter["status"] = status;
|
|
@@ -1005,6 +1058,7 @@ const CapitalApiAxiosParamCreator = function(configuration) {
|
|
|
1005
1058
|
method: "GET",
|
|
1006
1059
|
queryParams: localVarQueryParameter,
|
|
1007
1060
|
bodyParams: localVarBodyParameter,
|
|
1061
|
+
headerParams: localVarHeaderParameter,
|
|
1008
1062
|
timeUnit: _timeUnit
|
|
1009
1063
|
};
|
|
1010
1064
|
},
|
|
@@ -1012,6 +1066,7 @@ const CapitalApiAxiosParamCreator = function(configuration) {
|
|
|
1012
1066
|
(0, __binance_common.assertParamExists)("fetchDepositAddressListWithNetwork", "coin", coin);
|
|
1013
1067
|
const localVarQueryParameter = {};
|
|
1014
1068
|
const localVarBodyParameter = {};
|
|
1069
|
+
const localVarHeaderParameter = {};
|
|
1015
1070
|
if (coin !== void 0 && coin !== null) localVarQueryParameter["coin"] = coin;
|
|
1016
1071
|
if (network !== void 0 && network !== null) localVarQueryParameter["network"] = network;
|
|
1017
1072
|
let _timeUnit;
|
|
@@ -1021,12 +1076,14 @@ const CapitalApiAxiosParamCreator = function(configuration) {
|
|
|
1021
1076
|
method: "GET",
|
|
1022
1077
|
queryParams: localVarQueryParameter,
|
|
1023
1078
|
bodyParams: localVarBodyParameter,
|
|
1079
|
+
headerParams: localVarHeaderParameter,
|
|
1024
1080
|
timeUnit: _timeUnit
|
|
1025
1081
|
};
|
|
1026
1082
|
},
|
|
1027
1083
|
fetchWithdrawAddressList: async () => {
|
|
1028
1084
|
const localVarQueryParameter = {};
|
|
1029
1085
|
const localVarBodyParameter = {};
|
|
1086
|
+
const localVarHeaderParameter = {};
|
|
1030
1087
|
let _timeUnit;
|
|
1031
1088
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
1032
1089
|
return {
|
|
@@ -1034,12 +1091,14 @@ const CapitalApiAxiosParamCreator = function(configuration) {
|
|
|
1034
1091
|
method: "GET",
|
|
1035
1092
|
queryParams: localVarQueryParameter,
|
|
1036
1093
|
bodyParams: localVarBodyParameter,
|
|
1094
|
+
headerParams: localVarHeaderParameter,
|
|
1037
1095
|
timeUnit: _timeUnit
|
|
1038
1096
|
};
|
|
1039
1097
|
},
|
|
1040
1098
|
fetchWithdrawQuota: async () => {
|
|
1041
1099
|
const localVarQueryParameter = {};
|
|
1042
1100
|
const localVarBodyParameter = {};
|
|
1101
|
+
const localVarHeaderParameter = {};
|
|
1043
1102
|
let _timeUnit;
|
|
1044
1103
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
1045
1104
|
return {
|
|
@@ -1047,12 +1106,14 @@ const CapitalApiAxiosParamCreator = function(configuration) {
|
|
|
1047
1106
|
method: "GET",
|
|
1048
1107
|
queryParams: localVarQueryParameter,
|
|
1049
1108
|
bodyParams: localVarBodyParameter,
|
|
1109
|
+
headerParams: localVarHeaderParameter,
|
|
1050
1110
|
timeUnit: _timeUnit
|
|
1051
1111
|
};
|
|
1052
1112
|
},
|
|
1053
1113
|
oneClickArrivalDepositApply: async (depositId, txId, subAccountId, subUserId) => {
|
|
1054
1114
|
const localVarQueryParameter = {};
|
|
1055
1115
|
const localVarBodyParameter = {};
|
|
1116
|
+
const localVarHeaderParameter = {};
|
|
1056
1117
|
if (depositId !== void 0 && depositId !== null) localVarQueryParameter["depositId"] = depositId;
|
|
1057
1118
|
if (txId !== void 0 && txId !== null) localVarQueryParameter["txId"] = txId;
|
|
1058
1119
|
if (subAccountId !== void 0 && subAccountId !== null) localVarQueryParameter["subAccountId"] = subAccountId;
|
|
@@ -1064,6 +1125,7 @@ const CapitalApiAxiosParamCreator = function(configuration) {
|
|
|
1064
1125
|
method: "POST",
|
|
1065
1126
|
queryParams: localVarQueryParameter,
|
|
1066
1127
|
bodyParams: localVarBodyParameter,
|
|
1128
|
+
headerParams: localVarHeaderParameter,
|
|
1067
1129
|
timeUnit: _timeUnit
|
|
1068
1130
|
};
|
|
1069
1131
|
},
|
|
@@ -1073,6 +1135,7 @@ const CapitalApiAxiosParamCreator = function(configuration) {
|
|
|
1073
1135
|
(0, __binance_common.assertParamExists)("withdraw", "amount", amount);
|
|
1074
1136
|
const localVarQueryParameter = {};
|
|
1075
1137
|
const localVarBodyParameter = {};
|
|
1138
|
+
const localVarHeaderParameter = {};
|
|
1076
1139
|
if (coin !== void 0 && coin !== null) localVarQueryParameter["coin"] = coin;
|
|
1077
1140
|
if (withdrawOrderId !== void 0 && withdrawOrderId !== null) localVarQueryParameter["withdrawOrderId"] = withdrawOrderId;
|
|
1078
1141
|
if (network !== void 0 && network !== null) localVarQueryParameter["network"] = network;
|
|
@@ -1090,12 +1153,14 @@ const CapitalApiAxiosParamCreator = function(configuration) {
|
|
|
1090
1153
|
method: "POST",
|
|
1091
1154
|
queryParams: localVarQueryParameter,
|
|
1092
1155
|
bodyParams: localVarBodyParameter,
|
|
1156
|
+
headerParams: localVarHeaderParameter,
|
|
1093
1157
|
timeUnit: _timeUnit
|
|
1094
1158
|
};
|
|
1095
1159
|
},
|
|
1096
1160
|
withdrawHistory: async (coin, withdrawOrderId, status, offset, limit, idList, startTime, endTime, recvWindow) => {
|
|
1097
1161
|
const localVarQueryParameter = {};
|
|
1098
1162
|
const localVarBodyParameter = {};
|
|
1163
|
+
const localVarHeaderParameter = {};
|
|
1099
1164
|
if (coin !== void 0 && coin !== null) localVarQueryParameter["coin"] = coin;
|
|
1100
1165
|
if (withdrawOrderId !== void 0 && withdrawOrderId !== null) localVarQueryParameter["withdrawOrderId"] = withdrawOrderId;
|
|
1101
1166
|
if (status !== void 0 && status !== null) localVarQueryParameter["status"] = status;
|
|
@@ -1112,6 +1177,7 @@ const CapitalApiAxiosParamCreator = function(configuration) {
|
|
|
1112
1177
|
method: "GET",
|
|
1113
1178
|
queryParams: localVarQueryParameter,
|
|
1114
1179
|
bodyParams: localVarBodyParameter,
|
|
1180
|
+
headerParams: localVarHeaderParameter,
|
|
1115
1181
|
timeUnit: _timeUnit
|
|
1116
1182
|
};
|
|
1117
1183
|
}
|
|
@@ -1140,7 +1206,7 @@ var CapitalApi = class {
|
|
|
1140
1206
|
*/
|
|
1141
1207
|
async allCoinsInformation(requestParameters = {}) {
|
|
1142
1208
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.allCoinsInformation(requestParameters?.recvWindow);
|
|
1143
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1209
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1144
1210
|
}
|
|
1145
1211
|
/**
|
|
1146
1212
|
* Fetch deposit address with network.
|
|
@@ -1160,7 +1226,7 @@ var CapitalApi = class {
|
|
|
1160
1226
|
*/
|
|
1161
1227
|
async depositAddress(requestParameters) {
|
|
1162
1228
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.depositAddress(requestParameters?.coin, requestParameters?.network, requestParameters?.amount, requestParameters?.recvWindow);
|
|
1163
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1229
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1164
1230
|
}
|
|
1165
1231
|
/**
|
|
1166
1232
|
* Fetch deposit history.
|
|
@@ -1180,7 +1246,7 @@ var CapitalApi = class {
|
|
|
1180
1246
|
*/
|
|
1181
1247
|
async depositHistory(requestParameters = {}) {
|
|
1182
1248
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.depositHistory(requestParameters?.includeSource, requestParameters?.coin, requestParameters?.status, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.offset, requestParameters?.limit, requestParameters?.recvWindow, requestParameters?.txId);
|
|
1183
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1249
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1184
1250
|
}
|
|
1185
1251
|
/**
|
|
1186
1252
|
* Fetch deposit address list with network.
|
|
@@ -1200,7 +1266,7 @@ var CapitalApi = class {
|
|
|
1200
1266
|
*/
|
|
1201
1267
|
async fetchDepositAddressListWithNetwork(requestParameters) {
|
|
1202
1268
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.fetchDepositAddressListWithNetwork(requestParameters?.coin, requestParameters?.network);
|
|
1203
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1269
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1204
1270
|
}
|
|
1205
1271
|
/**
|
|
1206
1272
|
* Fetch withdraw address list
|
|
@@ -1215,7 +1281,7 @@ var CapitalApi = class {
|
|
|
1215
1281
|
*/
|
|
1216
1282
|
async fetchWithdrawAddressList() {
|
|
1217
1283
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.fetchWithdrawAddressList();
|
|
1218
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1284
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1219
1285
|
}
|
|
1220
1286
|
/**
|
|
1221
1287
|
* Fetch withdraw quota
|
|
@@ -1230,7 +1296,7 @@ var CapitalApi = class {
|
|
|
1230
1296
|
*/
|
|
1231
1297
|
async fetchWithdrawQuota() {
|
|
1232
1298
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.fetchWithdrawQuota();
|
|
1233
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1299
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1234
1300
|
}
|
|
1235
1301
|
/**
|
|
1236
1302
|
* Apply deposit credit for expired address (One click arrival)
|
|
@@ -1248,7 +1314,7 @@ var CapitalApi = class {
|
|
|
1248
1314
|
*/
|
|
1249
1315
|
async oneClickArrivalDepositApply(requestParameters = {}) {
|
|
1250
1316
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.oneClickArrivalDepositApply(requestParameters?.depositId, requestParameters?.txId, requestParameters?.subAccountId, requestParameters?.subUserId);
|
|
1251
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1317
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1252
1318
|
}
|
|
1253
1319
|
/**
|
|
1254
1320
|
* Submit a withdraw request.
|
|
@@ -1272,7 +1338,7 @@ var CapitalApi = class {
|
|
|
1272
1338
|
*/
|
|
1273
1339
|
async withdraw(requestParameters) {
|
|
1274
1340
|
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);
|
|
1275
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1341
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1276
1342
|
}
|
|
1277
1343
|
/**
|
|
1278
1344
|
* Fetch withdraw history.
|
|
@@ -1296,7 +1362,7 @@ var CapitalApi = class {
|
|
|
1296
1362
|
*/
|
|
1297
1363
|
async withdrawHistory(requestParameters = {}) {
|
|
1298
1364
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.withdrawHistory(requestParameters?.coin, requestParameters?.withdrawOrderId, requestParameters?.status, requestParameters?.offset, requestParameters?.limit, requestParameters?.idList, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.recvWindow);
|
|
1299
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1365
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1300
1366
|
}
|
|
1301
1367
|
};
|
|
1302
1368
|
|
|
@@ -1322,6 +1388,7 @@ const OthersApiAxiosParamCreator = function(configuration) {
|
|
|
1322
1388
|
getSymbolsDelistScheduleForSpot: async (recvWindow) => {
|
|
1323
1389
|
const localVarQueryParameter = {};
|
|
1324
1390
|
const localVarBodyParameter = {};
|
|
1391
|
+
const localVarHeaderParameter = {};
|
|
1325
1392
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
1326
1393
|
let _timeUnit;
|
|
1327
1394
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
@@ -1330,12 +1397,14 @@ const OthersApiAxiosParamCreator = function(configuration) {
|
|
|
1330
1397
|
method: "GET",
|
|
1331
1398
|
queryParams: localVarQueryParameter,
|
|
1332
1399
|
bodyParams: localVarBodyParameter,
|
|
1400
|
+
headerParams: localVarHeaderParameter,
|
|
1333
1401
|
timeUnit: _timeUnit
|
|
1334
1402
|
};
|
|
1335
1403
|
},
|
|
1336
1404
|
systemStatus: async () => {
|
|
1337
1405
|
const localVarQueryParameter = {};
|
|
1338
1406
|
const localVarBodyParameter = {};
|
|
1407
|
+
const localVarHeaderParameter = {};
|
|
1339
1408
|
let _timeUnit;
|
|
1340
1409
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
1341
1410
|
return {
|
|
@@ -1343,6 +1412,7 @@ const OthersApiAxiosParamCreator = function(configuration) {
|
|
|
1343
1412
|
method: "GET",
|
|
1344
1413
|
queryParams: localVarQueryParameter,
|
|
1345
1414
|
bodyParams: localVarBodyParameter,
|
|
1415
|
+
headerParams: localVarHeaderParameter,
|
|
1346
1416
|
timeUnit: _timeUnit
|
|
1347
1417
|
};
|
|
1348
1418
|
}
|
|
@@ -1371,7 +1441,7 @@ var OthersApi = class {
|
|
|
1371
1441
|
*/
|
|
1372
1442
|
async getSymbolsDelistScheduleForSpot(requestParameters = {}) {
|
|
1373
1443
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getSymbolsDelistScheduleForSpot(requestParameters?.recvWindow);
|
|
1374
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
1444
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
1375
1445
|
}
|
|
1376
1446
|
/**
|
|
1377
1447
|
* Fetch system status.
|
|
@@ -1386,7 +1456,7 @@ var OthersApi = class {
|
|
|
1386
1456
|
*/
|
|
1387
1457
|
async systemStatus() {
|
|
1388
1458
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.systemStatus();
|
|
1389
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
1459
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
1390
1460
|
}
|
|
1391
1461
|
};
|
|
1392
1462
|
|
|
@@ -1419,6 +1489,7 @@ const TravelRuleApiAxiosParamCreator = function(configuration) {
|
|
|
1419
1489
|
(0, __binance_common.assertParamExists)("brokerWithdraw", "signature", signature);
|
|
1420
1490
|
const localVarQueryParameter = {};
|
|
1421
1491
|
const localVarBodyParameter = {};
|
|
1492
|
+
const localVarHeaderParameter = {};
|
|
1422
1493
|
if (address !== void 0 && address !== null) localVarQueryParameter["address"] = address;
|
|
1423
1494
|
if (addressTag !== void 0 && addressTag !== null) localVarQueryParameter["addressTag"] = addressTag;
|
|
1424
1495
|
if (network !== void 0 && network !== null) localVarQueryParameter["network"] = network;
|
|
@@ -1438,12 +1509,14 @@ const TravelRuleApiAxiosParamCreator = function(configuration) {
|
|
|
1438
1509
|
method: "POST",
|
|
1439
1510
|
queryParams: localVarQueryParameter,
|
|
1440
1511
|
bodyParams: localVarBodyParameter,
|
|
1512
|
+
headerParams: localVarHeaderParameter,
|
|
1441
1513
|
timeUnit: _timeUnit
|
|
1442
1514
|
};
|
|
1443
1515
|
},
|
|
1444
1516
|
checkQuestionnaireRequirements: async (recvWindow) => {
|
|
1445
1517
|
const localVarQueryParameter = {};
|
|
1446
1518
|
const localVarBodyParameter = {};
|
|
1519
|
+
const localVarHeaderParameter = {};
|
|
1447
1520
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
1448
1521
|
let _timeUnit;
|
|
1449
1522
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
@@ -1452,12 +1525,14 @@ const TravelRuleApiAxiosParamCreator = function(configuration) {
|
|
|
1452
1525
|
method: "GET",
|
|
1453
1526
|
queryParams: localVarQueryParameter,
|
|
1454
1527
|
bodyParams: localVarBodyParameter,
|
|
1528
|
+
headerParams: localVarHeaderParameter,
|
|
1455
1529
|
timeUnit: _timeUnit
|
|
1456
1530
|
};
|
|
1457
1531
|
},
|
|
1458
1532
|
depositHistoryTravelRule: async (trId, txId, tranId, network, coin, travelRuleStatus, pendingQuestionnaire, startTime, endTime, offset, limit) => {
|
|
1459
1533
|
const localVarQueryParameter = {};
|
|
1460
1534
|
const localVarBodyParameter = {};
|
|
1535
|
+
const localVarHeaderParameter = {};
|
|
1461
1536
|
if (trId !== void 0 && trId !== null) localVarQueryParameter["trId"] = trId;
|
|
1462
1537
|
if (txId !== void 0 && txId !== null) localVarQueryParameter["txId"] = txId;
|
|
1463
1538
|
if (tranId !== void 0 && tranId !== null) localVarQueryParameter["tranId"] = tranId;
|
|
@@ -1476,12 +1551,14 @@ const TravelRuleApiAxiosParamCreator = function(configuration) {
|
|
|
1476
1551
|
method: "GET",
|
|
1477
1552
|
queryParams: localVarQueryParameter,
|
|
1478
1553
|
bodyParams: localVarBodyParameter,
|
|
1554
|
+
headerParams: localVarHeaderParameter,
|
|
1479
1555
|
timeUnit: _timeUnit
|
|
1480
1556
|
};
|
|
1481
1557
|
},
|
|
1482
1558
|
depositHistoryV2: async (depositId, txId, network, coin, retrieveQuestionnaire, startTime, endTime, offset, limit) => {
|
|
1483
1559
|
const localVarQueryParameter = {};
|
|
1484
1560
|
const localVarBodyParameter = {};
|
|
1561
|
+
const localVarHeaderParameter = {};
|
|
1485
1562
|
if (depositId !== void 0 && depositId !== null) localVarQueryParameter["depositId"] = depositId;
|
|
1486
1563
|
if (txId !== void 0 && txId !== null) localVarQueryParameter["txId"] = txId;
|
|
1487
1564
|
if (network !== void 0 && network !== null) localVarQueryParameter["network"] = network;
|
|
@@ -1498,12 +1575,14 @@ const TravelRuleApiAxiosParamCreator = function(configuration) {
|
|
|
1498
1575
|
method: "GET",
|
|
1499
1576
|
queryParams: localVarQueryParameter,
|
|
1500
1577
|
bodyParams: localVarBodyParameter,
|
|
1578
|
+
headerParams: localVarHeaderParameter,
|
|
1501
1579
|
timeUnit: _timeUnit
|
|
1502
1580
|
};
|
|
1503
1581
|
},
|
|
1504
1582
|
fetchAddressVerificationList: async (recvWindow) => {
|
|
1505
1583
|
const localVarQueryParameter = {};
|
|
1506
1584
|
const localVarBodyParameter = {};
|
|
1585
|
+
const localVarHeaderParameter = {};
|
|
1507
1586
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
1508
1587
|
let _timeUnit;
|
|
1509
1588
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
@@ -1512,6 +1591,39 @@ const TravelRuleApiAxiosParamCreator = function(configuration) {
|
|
|
1512
1591
|
method: "GET",
|
|
1513
1592
|
queryParams: localVarQueryParameter,
|
|
1514
1593
|
bodyParams: localVarBodyParameter,
|
|
1594
|
+
headerParams: localVarHeaderParameter,
|
|
1595
|
+
timeUnit: _timeUnit
|
|
1596
|
+
};
|
|
1597
|
+
},
|
|
1598
|
+
getCountryList: async () => {
|
|
1599
|
+
const localVarQueryParameter = {};
|
|
1600
|
+
const localVarBodyParameter = {};
|
|
1601
|
+
const localVarHeaderParameter = {};
|
|
1602
|
+
let _timeUnit;
|
|
1603
|
+
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
1604
|
+
return {
|
|
1605
|
+
endpoint: "/sapi/v1/localentity/country/list",
|
|
1606
|
+
method: "GET",
|
|
1607
|
+
queryParams: localVarQueryParameter,
|
|
1608
|
+
bodyParams: localVarBodyParameter,
|
|
1609
|
+
headerParams: localVarHeaderParameter,
|
|
1610
|
+
timeUnit: _timeUnit
|
|
1611
|
+
};
|
|
1612
|
+
},
|
|
1613
|
+
getRegionList: async (countryCode) => {
|
|
1614
|
+
(0, __binance_common.assertParamExists)("getRegionList", "countryCode", countryCode);
|
|
1615
|
+
const localVarQueryParameter = {};
|
|
1616
|
+
const localVarBodyParameter = {};
|
|
1617
|
+
const localVarHeaderParameter = {};
|
|
1618
|
+
if (countryCode !== void 0 && countryCode !== null) localVarQueryParameter["countryCode"] = countryCode;
|
|
1619
|
+
let _timeUnit;
|
|
1620
|
+
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
1621
|
+
return {
|
|
1622
|
+
endpoint: "/sapi/v1/localentity/region/list",
|
|
1623
|
+
method: "GET",
|
|
1624
|
+
queryParams: localVarQueryParameter,
|
|
1625
|
+
bodyParams: localVarBodyParameter,
|
|
1626
|
+
headerParams: localVarHeaderParameter,
|
|
1515
1627
|
timeUnit: _timeUnit
|
|
1516
1628
|
};
|
|
1517
1629
|
},
|
|
@@ -1523,6 +1635,7 @@ const TravelRuleApiAxiosParamCreator = function(configuration) {
|
|
|
1523
1635
|
(0, __binance_common.assertParamExists)("submitDepositQuestionnaire", "signature", signature);
|
|
1524
1636
|
const localVarQueryParameter = {};
|
|
1525
1637
|
const localVarBodyParameter = {};
|
|
1638
|
+
const localVarHeaderParameter = {};
|
|
1526
1639
|
if (subAccountId !== void 0 && subAccountId !== null) localVarQueryParameter["subAccountId"] = subAccountId;
|
|
1527
1640
|
if (depositId !== void 0 && depositId !== null) localVarQueryParameter["depositId"] = depositId;
|
|
1528
1641
|
if (questionnaire !== void 0 && questionnaire !== null) localVarQueryParameter["questionnaire"] = questionnaire;
|
|
@@ -1540,6 +1653,7 @@ const TravelRuleApiAxiosParamCreator = function(configuration) {
|
|
|
1540
1653
|
method: "PUT",
|
|
1541
1654
|
queryParams: localVarQueryParameter,
|
|
1542
1655
|
bodyParams: localVarBodyParameter,
|
|
1656
|
+
headerParams: localVarHeaderParameter,
|
|
1543
1657
|
timeUnit: _timeUnit
|
|
1544
1658
|
};
|
|
1545
1659
|
},
|
|
@@ -1548,6 +1662,7 @@ const TravelRuleApiAxiosParamCreator = function(configuration) {
|
|
|
1548
1662
|
(0, __binance_common.assertParamExists)("submitDepositQuestionnaireTravelRule", "questionnaire", questionnaire);
|
|
1549
1663
|
const localVarQueryParameter = {};
|
|
1550
1664
|
const localVarBodyParameter = {};
|
|
1665
|
+
const localVarHeaderParameter = {};
|
|
1551
1666
|
if (tranId !== void 0 && tranId !== null) localVarQueryParameter["tranId"] = tranId;
|
|
1552
1667
|
if (questionnaire !== void 0 && questionnaire !== null) localVarQueryParameter["questionnaire"] = questionnaire;
|
|
1553
1668
|
let _timeUnit;
|
|
@@ -1557,6 +1672,7 @@ const TravelRuleApiAxiosParamCreator = function(configuration) {
|
|
|
1557
1672
|
method: "PUT",
|
|
1558
1673
|
queryParams: localVarQueryParameter,
|
|
1559
1674
|
bodyParams: localVarBodyParameter,
|
|
1675
|
+
headerParams: localVarHeaderParameter,
|
|
1560
1676
|
timeUnit: _timeUnit
|
|
1561
1677
|
};
|
|
1562
1678
|
},
|
|
@@ -1565,6 +1681,7 @@ const TravelRuleApiAxiosParamCreator = function(configuration) {
|
|
|
1565
1681
|
(0, __binance_common.assertParamExists)("submitDepositQuestionnaireV2", "questionnaire", questionnaire);
|
|
1566
1682
|
const localVarQueryParameter = {};
|
|
1567
1683
|
const localVarBodyParameter = {};
|
|
1684
|
+
const localVarHeaderParameter = {};
|
|
1568
1685
|
if (depositId !== void 0 && depositId !== null) localVarQueryParameter["depositId"] = depositId;
|
|
1569
1686
|
if (questionnaire !== void 0 && questionnaire !== null) localVarQueryParameter["questionnaire"] = questionnaire;
|
|
1570
1687
|
let _timeUnit;
|
|
@@ -1574,12 +1691,14 @@ const TravelRuleApiAxiosParamCreator = function(configuration) {
|
|
|
1574
1691
|
method: "PUT",
|
|
1575
1692
|
queryParams: localVarQueryParameter,
|
|
1576
1693
|
bodyParams: localVarBodyParameter,
|
|
1694
|
+
headerParams: localVarHeaderParameter,
|
|
1577
1695
|
timeUnit: _timeUnit
|
|
1578
1696
|
};
|
|
1579
1697
|
},
|
|
1580
1698
|
vaspList: async (recvWindow) => {
|
|
1581
1699
|
const localVarQueryParameter = {};
|
|
1582
1700
|
const localVarBodyParameter = {};
|
|
1701
|
+
const localVarHeaderParameter = {};
|
|
1583
1702
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
1584
1703
|
let _timeUnit;
|
|
1585
1704
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
@@ -1588,12 +1707,14 @@ const TravelRuleApiAxiosParamCreator = function(configuration) {
|
|
|
1588
1707
|
method: "GET",
|
|
1589
1708
|
queryParams: localVarQueryParameter,
|
|
1590
1709
|
bodyParams: localVarBodyParameter,
|
|
1710
|
+
headerParams: localVarHeaderParameter,
|
|
1591
1711
|
timeUnit: _timeUnit
|
|
1592
1712
|
};
|
|
1593
1713
|
},
|
|
1594
1714
|
withdrawHistoryV1: async (trId, txId, withdrawOrderId, network, coin, travelRuleStatus, offset, limit, startTime, endTime, recvWindow) => {
|
|
1595
1715
|
const localVarQueryParameter = {};
|
|
1596
1716
|
const localVarBodyParameter = {};
|
|
1717
|
+
const localVarHeaderParameter = {};
|
|
1597
1718
|
if (trId !== void 0 && trId !== null) localVarQueryParameter["trId"] = trId;
|
|
1598
1719
|
if (txId !== void 0 && txId !== null) localVarQueryParameter["txId"] = txId;
|
|
1599
1720
|
if (withdrawOrderId !== void 0 && withdrawOrderId !== null) localVarQueryParameter["withdrawOrderId"] = withdrawOrderId;
|
|
@@ -1612,12 +1733,14 @@ const TravelRuleApiAxiosParamCreator = function(configuration) {
|
|
|
1612
1733
|
method: "GET",
|
|
1613
1734
|
queryParams: localVarQueryParameter,
|
|
1614
1735
|
bodyParams: localVarBodyParameter,
|
|
1736
|
+
headerParams: localVarHeaderParameter,
|
|
1615
1737
|
timeUnit: _timeUnit
|
|
1616
1738
|
};
|
|
1617
1739
|
},
|
|
1618
1740
|
withdrawHistoryV2: async (trId, txId, withdrawOrderId, network, coin, travelRuleStatus, offset, limit, startTime, endTime, recvWindow) => {
|
|
1619
1741
|
const localVarQueryParameter = {};
|
|
1620
1742
|
const localVarBodyParameter = {};
|
|
1743
|
+
const localVarHeaderParameter = {};
|
|
1621
1744
|
if (trId !== void 0 && trId !== null) localVarQueryParameter["trId"] = trId;
|
|
1622
1745
|
if (txId !== void 0 && txId !== null) localVarQueryParameter["txId"] = txId;
|
|
1623
1746
|
if (withdrawOrderId !== void 0 && withdrawOrderId !== null) localVarQueryParameter["withdrawOrderId"] = withdrawOrderId;
|
|
@@ -1636,6 +1759,7 @@ const TravelRuleApiAxiosParamCreator = function(configuration) {
|
|
|
1636
1759
|
method: "GET",
|
|
1637
1760
|
queryParams: localVarQueryParameter,
|
|
1638
1761
|
bodyParams: localVarBodyParameter,
|
|
1762
|
+
headerParams: localVarHeaderParameter,
|
|
1639
1763
|
timeUnit: _timeUnit
|
|
1640
1764
|
};
|
|
1641
1765
|
},
|
|
@@ -1646,6 +1770,7 @@ const TravelRuleApiAxiosParamCreator = function(configuration) {
|
|
|
1646
1770
|
(0, __binance_common.assertParamExists)("withdrawTravelRule", "questionnaire", questionnaire);
|
|
1647
1771
|
const localVarQueryParameter = {};
|
|
1648
1772
|
const localVarBodyParameter = {};
|
|
1773
|
+
const localVarHeaderParameter = {};
|
|
1649
1774
|
if (coin !== void 0 && coin !== null) localVarQueryParameter["coin"] = coin;
|
|
1650
1775
|
if (withdrawOrderId !== void 0 && withdrawOrderId !== null) localVarQueryParameter["withdrawOrderId"] = withdrawOrderId;
|
|
1651
1776
|
if (network !== void 0 && network !== null) localVarQueryParameter["network"] = network;
|
|
@@ -1664,6 +1789,7 @@ const TravelRuleApiAxiosParamCreator = function(configuration) {
|
|
|
1664
1789
|
method: "POST",
|
|
1665
1790
|
queryParams: localVarQueryParameter,
|
|
1666
1791
|
bodyParams: localVarBodyParameter,
|
|
1792
|
+
headerParams: localVarHeaderParameter,
|
|
1667
1793
|
timeUnit: _timeUnit
|
|
1668
1794
|
};
|
|
1669
1795
|
}
|
|
@@ -1697,7 +1823,7 @@ var TravelRuleApi = class {
|
|
|
1697
1823
|
*/
|
|
1698
1824
|
async brokerWithdraw(requestParameters) {
|
|
1699
1825
|
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);
|
|
1700
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1826
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1701
1827
|
}
|
|
1702
1828
|
/**
|
|
1703
1829
|
* This API will return user-specific Travel Rule questionnaire requirement information in reference to the current API key.
|
|
@@ -1713,7 +1839,7 @@ var TravelRuleApi = class {
|
|
|
1713
1839
|
*/
|
|
1714
1840
|
async checkQuestionnaireRequirements(requestParameters = {}) {
|
|
1715
1841
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.checkQuestionnaireRequirements(requestParameters?.recvWindow);
|
|
1716
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1842
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1717
1843
|
}
|
|
1718
1844
|
/**
|
|
1719
1845
|
* Fetch deposit history for local entities that required travel rule.
|
|
@@ -1733,7 +1859,7 @@ var TravelRuleApi = class {
|
|
|
1733
1859
|
*/
|
|
1734
1860
|
async depositHistoryTravelRule(requestParameters = {}) {
|
|
1735
1861
|
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);
|
|
1736
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1862
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1737
1863
|
}
|
|
1738
1864
|
/**
|
|
1739
1865
|
* Fetch deposit history for local entities that with required travel rule information.
|
|
@@ -1753,7 +1879,7 @@ var TravelRuleApi = class {
|
|
|
1753
1879
|
*/
|
|
1754
1880
|
async depositHistoryV2(requestParameters = {}) {
|
|
1755
1881
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.depositHistoryV2(requestParameters?.depositId, requestParameters?.txId, requestParameters?.network, requestParameters?.coin, requestParameters?.retrieveQuestionnaire, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.offset, requestParameters?.limit);
|
|
1756
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1882
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1757
1883
|
}
|
|
1758
1884
|
/**
|
|
1759
1885
|
* Fetch address verification list for user to check on status and other details for the addresses stored in Address Book.
|
|
@@ -1769,7 +1895,38 @@ var TravelRuleApi = class {
|
|
|
1769
1895
|
*/
|
|
1770
1896
|
async fetchAddressVerificationList(requestParameters = {}) {
|
|
1771
1897
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.fetchAddressVerificationList(requestParameters?.recvWindow);
|
|
1772
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1898
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1899
|
+
}
|
|
1900
|
+
/**
|
|
1901
|
+
* Query the active country list for travel rule questionnaires.
|
|
1902
|
+
*
|
|
1903
|
+
* Weight: 1
|
|
1904
|
+
*
|
|
1905
|
+
* @summary Get Country List (USER_DATA)
|
|
1906
|
+
* @returns {Promise<RestApiResponse<GetCountryListResponse>>}
|
|
1907
|
+
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
1908
|
+
* @memberof TravelRuleApi
|
|
1909
|
+
* @see {@link https://developers.binance.com/docs/wallet/travel-rule/country-list Binance API Documentation}
|
|
1910
|
+
*/
|
|
1911
|
+
async getCountryList() {
|
|
1912
|
+
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getCountryList();
|
|
1913
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1914
|
+
}
|
|
1915
|
+
/**
|
|
1916
|
+
* Query the active region/city list for a given country.
|
|
1917
|
+
*
|
|
1918
|
+
* Weight: 1
|
|
1919
|
+
*
|
|
1920
|
+
* @summary Get Region List (USER_DATA)
|
|
1921
|
+
* @param {GetRegionListRequest} requestParameters Request parameters.
|
|
1922
|
+
* @returns {Promise<RestApiResponse<GetRegionListResponse>>}
|
|
1923
|
+
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
1924
|
+
* @memberof TravelRuleApi
|
|
1925
|
+
* @see {@link https://developers.binance.com/docs/wallet/travel-rule/region-list Binance API Documentation}
|
|
1926
|
+
*/
|
|
1927
|
+
async getRegionList(requestParameters) {
|
|
1928
|
+
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getRegionList(requestParameters?.countryCode);
|
|
1929
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1773
1930
|
}
|
|
1774
1931
|
/**
|
|
1775
1932
|
* Submit questionnaire for brokers of local entities that require travel rule.
|
|
@@ -1790,7 +1947,7 @@ var TravelRuleApi = class {
|
|
|
1790
1947
|
*/
|
|
1791
1948
|
async submitDepositQuestionnaire(requestParameters) {
|
|
1792
1949
|
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);
|
|
1793
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1950
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1794
1951
|
}
|
|
1795
1952
|
/**
|
|
1796
1953
|
* Submit questionnaire for local entities that require travel rule.
|
|
@@ -1811,7 +1968,7 @@ var TravelRuleApi = class {
|
|
|
1811
1968
|
*/
|
|
1812
1969
|
async submitDepositQuestionnaireTravelRule(requestParameters) {
|
|
1813
1970
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.submitDepositQuestionnaireTravelRule(requestParameters?.tranId, requestParameters?.questionnaire);
|
|
1814
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1971
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1815
1972
|
}
|
|
1816
1973
|
/**
|
|
1817
1974
|
* Submit questionnaire for local entities that require travel rule.
|
|
@@ -1832,7 +1989,7 @@ var TravelRuleApi = class {
|
|
|
1832
1989
|
*/
|
|
1833
1990
|
async submitDepositQuestionnaireV2(requestParameters) {
|
|
1834
1991
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.submitDepositQuestionnaireV2(requestParameters?.depositId, requestParameters?.questionnaire);
|
|
1835
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1992
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1836
1993
|
}
|
|
1837
1994
|
/**
|
|
1838
1995
|
* Fetch the VASP list for local entities.
|
|
@@ -1848,7 +2005,7 @@ var TravelRuleApi = class {
|
|
|
1848
2005
|
*/
|
|
1849
2006
|
async vaspList(requestParameters = {}) {
|
|
1850
2007
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.vaspList(requestParameters?.recvWindow);
|
|
1851
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
2008
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1852
2009
|
}
|
|
1853
2010
|
/**
|
|
1854
2011
|
* Fetch withdraw history for local entities that required travel rule.
|
|
@@ -1868,7 +2025,7 @@ var TravelRuleApi = class {
|
|
|
1868
2025
|
*/
|
|
1869
2026
|
async withdrawHistoryV1(requestParameters = {}) {
|
|
1870
2027
|
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);
|
|
1871
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
2028
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1872
2029
|
}
|
|
1873
2030
|
/**
|
|
1874
2031
|
* Fetch withdraw history for local entities that required travel rule.
|
|
@@ -1894,7 +2051,7 @@ var TravelRuleApi = class {
|
|
|
1894
2051
|
*/
|
|
1895
2052
|
async withdrawHistoryV2(requestParameters = {}) {
|
|
1896
2053
|
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);
|
|
1897
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
2054
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1898
2055
|
}
|
|
1899
2056
|
/**
|
|
1900
2057
|
* Submit a withdrawal request for local entities that required travel rule.
|
|
@@ -1915,7 +2072,7 @@ var TravelRuleApi = class {
|
|
|
1915
2072
|
*/
|
|
1916
2073
|
async withdrawTravelRule(requestParameters) {
|
|
1917
2074
|
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);
|
|
1918
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
2075
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1919
2076
|
}
|
|
1920
2077
|
};
|
|
1921
2078
|
|
|
@@ -1952,7 +2109,7 @@ var RestAPI = class {
|
|
|
1952
2109
|
* @returns A promise resolving to the response data object.
|
|
1953
2110
|
*/
|
|
1954
2111
|
sendRequest(endpoint, method, queryParams = {}, bodyParams = {}) {
|
|
1955
|
-
return (0, __binance_common.sendRequest)(this.configuration, endpoint, method, queryParams, bodyParams, void 0);
|
|
2112
|
+
return (0, __binance_common.sendRequest)(this.configuration, endpoint, method, queryParams, bodyParams, void 0, void 0);
|
|
1956
2113
|
}
|
|
1957
2114
|
/**
|
|
1958
2115
|
* Generic function to send a signed request.
|
|
@@ -1964,7 +2121,7 @@ var RestAPI = class {
|
|
|
1964
2121
|
* @returns A promise resolving to the response data object.
|
|
1965
2122
|
*/
|
|
1966
2123
|
sendSignedRequest(endpoint, method, queryParams = {}, bodyParams = {}) {
|
|
1967
|
-
return (0, __binance_common.sendRequest)(this.configuration, endpoint, method, queryParams, bodyParams, void 0, { isSigned: true });
|
|
2124
|
+
return (0, __binance_common.sendRequest)(this.configuration, endpoint, method, queryParams, bodyParams, void 0, void 0, { isSigned: true });
|
|
1968
2125
|
}
|
|
1969
2126
|
/**
|
|
1970
2127
|
* Fetch account api trading status detail.
|
|
@@ -2675,6 +2832,35 @@ var RestAPI = class {
|
|
|
2675
2832
|
return this.travelRuleApi.fetchAddressVerificationList(requestParameters);
|
|
2676
2833
|
}
|
|
2677
2834
|
/**
|
|
2835
|
+
* Query the active country list for travel rule questionnaires.
|
|
2836
|
+
*
|
|
2837
|
+
* Weight: 1
|
|
2838
|
+
*
|
|
2839
|
+
* @summary Get Country List (USER_DATA)
|
|
2840
|
+
*
|
|
2841
|
+
* @returns {Promise<RestApiResponse<GetCountryListResponse>>}
|
|
2842
|
+
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
2843
|
+
* @see {@link https://developers.binance.com/docs/wallet/travel-rule/country-list Binance API Documentation}
|
|
2844
|
+
*/
|
|
2845
|
+
getCountryList() {
|
|
2846
|
+
return this.travelRuleApi.getCountryList();
|
|
2847
|
+
}
|
|
2848
|
+
/**
|
|
2849
|
+
* Query the active region/city list for a given country.
|
|
2850
|
+
*
|
|
2851
|
+
* Weight: 1
|
|
2852
|
+
*
|
|
2853
|
+
* @summary Get Region List (USER_DATA)
|
|
2854
|
+
* @param {GetRegionListRequest} requestParameters Request parameters.
|
|
2855
|
+
*
|
|
2856
|
+
* @returns {Promise<RestApiResponse<GetRegionListResponse>>}
|
|
2857
|
+
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
2858
|
+
* @see {@link https://developers.binance.com/docs/wallet/travel-rule/region-list Binance API Documentation}
|
|
2859
|
+
*/
|
|
2860
|
+
getRegionList(requestParameters) {
|
|
2861
|
+
return this.travelRuleApi.getRegionList(requestParameters);
|
|
2862
|
+
}
|
|
2863
|
+
/**
|
|
2678
2864
|
* Submit questionnaire for brokers of local entities that require travel rule.
|
|
2679
2865
|
* The questionnaire is only applies to transactions from un-hosted wallets or VASPs that are not
|
|
2680
2866
|
* yet onboarded with GTR.
|