@binance/wallet 17.0.9 → 19.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +257 -1
- package/dist/index.d.ts +257 -1
- package/dist/index.js +248 -54
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +248 -54
- 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.0";
|
|
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,14 +335,17 @@ 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
|
},
|
|
324
|
-
dustConvert: async (asset, clientId, targetAsset, thirdPartyClientId, dustQuotaAssetToTargetAssetPrice) => {
|
|
342
|
+
dustConvert: async (asset, accountType, clientId, targetAsset, thirdPartyClientId, dustQuotaAssetToTargetAssetPrice) => {
|
|
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;
|
|
348
|
+
if (accountType !== void 0 && accountType !== null) localVarQueryParameter["accountType"] = accountType;
|
|
329
349
|
if (clientId !== void 0 && clientId !== null) localVarQueryParameter["clientId"] = clientId;
|
|
330
350
|
if (targetAsset !== void 0 && targetAsset !== null) localVarQueryParameter["targetAsset"] = targetAsset;
|
|
331
351
|
if (thirdPartyClientId !== void 0 && thirdPartyClientId !== null) localVarQueryParameter["thirdPartyClientId"] = thirdPartyClientId;
|
|
@@ -337,13 +357,16 @@ const AssetApiAxiosParamCreator = function(configuration) {
|
|
|
337
357
|
method: "POST",
|
|
338
358
|
queryParams: localVarQueryParameter,
|
|
339
359
|
bodyParams: localVarBodyParameter,
|
|
360
|
+
headerParams: localVarHeaderParameter,
|
|
340
361
|
timeUnit: _timeUnit
|
|
341
362
|
};
|
|
342
363
|
},
|
|
343
|
-
dustConvertibleAssets: async (targetAsset, dustQuotaAssetToTargetAssetPrice) => {
|
|
364
|
+
dustConvertibleAssets: async (targetAsset, accountType, dustQuotaAssetToTargetAssetPrice) => {
|
|
344
365
|
(0, __binance_common.assertParamExists)("dustConvertibleAssets", "targetAsset", targetAsset);
|
|
345
366
|
const localVarQueryParameter = {};
|
|
346
367
|
const localVarBodyParameter = {};
|
|
368
|
+
const localVarHeaderParameter = {};
|
|
369
|
+
if (accountType !== void 0 && accountType !== null) localVarQueryParameter["accountType"] = accountType;
|
|
347
370
|
if (targetAsset !== void 0 && targetAsset !== null) localVarQueryParameter["targetAsset"] = targetAsset;
|
|
348
371
|
if (dustQuotaAssetToTargetAssetPrice !== void 0 && dustQuotaAssetToTargetAssetPrice !== null) localVarQueryParameter["dustQuotaAssetToTargetAssetPrice"] = dustQuotaAssetToTargetAssetPrice;
|
|
349
372
|
let _timeUnit;
|
|
@@ -353,6 +376,7 @@ const AssetApiAxiosParamCreator = function(configuration) {
|
|
|
353
376
|
method: "POST",
|
|
354
377
|
queryParams: localVarQueryParameter,
|
|
355
378
|
bodyParams: localVarBodyParameter,
|
|
379
|
+
headerParams: localVarHeaderParameter,
|
|
356
380
|
timeUnit: _timeUnit
|
|
357
381
|
};
|
|
358
382
|
},
|
|
@@ -360,6 +384,7 @@ const AssetApiAxiosParamCreator = function(configuration) {
|
|
|
360
384
|
(0, __binance_common.assertParamExists)("dustTransfer", "asset", asset);
|
|
361
385
|
const localVarQueryParameter = {};
|
|
362
386
|
const localVarBodyParameter = {};
|
|
387
|
+
const localVarHeaderParameter = {};
|
|
363
388
|
if (asset !== void 0 && asset !== null) localVarQueryParameter["asset"] = asset;
|
|
364
389
|
if (accountType !== void 0 && accountType !== null) localVarQueryParameter["accountType"] = accountType;
|
|
365
390
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
@@ -370,12 +395,14 @@ const AssetApiAxiosParamCreator = function(configuration) {
|
|
|
370
395
|
method: "POST",
|
|
371
396
|
queryParams: localVarQueryParameter,
|
|
372
397
|
bodyParams: localVarBodyParameter,
|
|
398
|
+
headerParams: localVarHeaderParameter,
|
|
373
399
|
timeUnit: _timeUnit
|
|
374
400
|
};
|
|
375
401
|
},
|
|
376
402
|
dustlog: async (accountType, startTime, endTime, recvWindow) => {
|
|
377
403
|
const localVarQueryParameter = {};
|
|
378
404
|
const localVarBodyParameter = {};
|
|
405
|
+
const localVarHeaderParameter = {};
|
|
379
406
|
if (accountType !== void 0 && accountType !== null) localVarQueryParameter["accountType"] = accountType;
|
|
380
407
|
if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
|
|
381
408
|
if (endTime !== void 0 && endTime !== null) localVarQueryParameter["endTime"] = endTime;
|
|
@@ -387,12 +414,14 @@ const AssetApiAxiosParamCreator = function(configuration) {
|
|
|
387
414
|
method: "GET",
|
|
388
415
|
queryParams: localVarQueryParameter,
|
|
389
416
|
bodyParams: localVarBodyParameter,
|
|
417
|
+
headerParams: localVarHeaderParameter,
|
|
390
418
|
timeUnit: _timeUnit
|
|
391
419
|
};
|
|
392
420
|
},
|
|
393
421
|
fundingWallet: async (asset, needBtcValuation, recvWindow) => {
|
|
394
422
|
const localVarQueryParameter = {};
|
|
395
423
|
const localVarBodyParameter = {};
|
|
424
|
+
const localVarHeaderParameter = {};
|
|
396
425
|
if (asset !== void 0 && asset !== null) localVarQueryParameter["asset"] = asset;
|
|
397
426
|
if (needBtcValuation !== void 0 && needBtcValuation !== null) localVarQueryParameter["needBtcValuation"] = needBtcValuation;
|
|
398
427
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
@@ -403,12 +432,14 @@ const AssetApiAxiosParamCreator = function(configuration) {
|
|
|
403
432
|
method: "POST",
|
|
404
433
|
queryParams: localVarQueryParameter,
|
|
405
434
|
bodyParams: localVarBodyParameter,
|
|
435
|
+
headerParams: localVarHeaderParameter,
|
|
406
436
|
timeUnit: _timeUnit
|
|
407
437
|
};
|
|
408
438
|
},
|
|
409
439
|
getAssetsThatCanBeConvertedIntoBnb: async (accountType, recvWindow) => {
|
|
410
440
|
const localVarQueryParameter = {};
|
|
411
441
|
const localVarBodyParameter = {};
|
|
442
|
+
const localVarHeaderParameter = {};
|
|
412
443
|
if (accountType !== void 0 && accountType !== null) localVarQueryParameter["accountType"] = accountType;
|
|
413
444
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
414
445
|
let _timeUnit;
|
|
@@ -418,6 +449,7 @@ const AssetApiAxiosParamCreator = function(configuration) {
|
|
|
418
449
|
method: "POST",
|
|
419
450
|
queryParams: localVarQueryParameter,
|
|
420
451
|
bodyParams: localVarBodyParameter,
|
|
452
|
+
headerParams: localVarHeaderParameter,
|
|
421
453
|
timeUnit: _timeUnit
|
|
422
454
|
};
|
|
423
455
|
},
|
|
@@ -426,6 +458,7 @@ const AssetApiAxiosParamCreator = function(configuration) {
|
|
|
426
458
|
(0, __binance_common.assertParamExists)("getCloudMiningPaymentAndRefundHistory", "endTime", endTime);
|
|
427
459
|
const localVarQueryParameter = {};
|
|
428
460
|
const localVarBodyParameter = {};
|
|
461
|
+
const localVarHeaderParameter = {};
|
|
429
462
|
if (tranId !== void 0 && tranId !== null) localVarQueryParameter["tranId"] = tranId;
|
|
430
463
|
if (clientTranId !== void 0 && clientTranId !== null) localVarQueryParameter["clientTranId"] = clientTranId;
|
|
431
464
|
if (asset !== void 0 && asset !== null) localVarQueryParameter["asset"] = asset;
|
|
@@ -440,12 +473,14 @@ const AssetApiAxiosParamCreator = function(configuration) {
|
|
|
440
473
|
method: "GET",
|
|
441
474
|
queryParams: localVarQueryParameter,
|
|
442
475
|
bodyParams: localVarBodyParameter,
|
|
476
|
+
headerParams: localVarHeaderParameter,
|
|
443
477
|
timeUnit: _timeUnit
|
|
444
478
|
};
|
|
445
479
|
},
|
|
446
480
|
getOpenSymbolList: async () => {
|
|
447
481
|
const localVarQueryParameter = {};
|
|
448
482
|
const localVarBodyParameter = {};
|
|
483
|
+
const localVarHeaderParameter = {};
|
|
449
484
|
let _timeUnit;
|
|
450
485
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
451
486
|
return {
|
|
@@ -453,6 +488,7 @@ const AssetApiAxiosParamCreator = function(configuration) {
|
|
|
453
488
|
method: "GET",
|
|
454
489
|
queryParams: localVarQueryParameter,
|
|
455
490
|
bodyParams: localVarBodyParameter,
|
|
491
|
+
headerParams: localVarHeaderParameter,
|
|
456
492
|
timeUnit: _timeUnit
|
|
457
493
|
};
|
|
458
494
|
},
|
|
@@ -462,6 +498,7 @@ const AssetApiAxiosParamCreator = function(configuration) {
|
|
|
462
498
|
(0, __binance_common.assertParamExists)("queryUserDelegationHistory", "endTime", endTime);
|
|
463
499
|
const localVarQueryParameter = {};
|
|
464
500
|
const localVarBodyParameter = {};
|
|
501
|
+
const localVarHeaderParameter = {};
|
|
465
502
|
if (email !== void 0 && email !== null) localVarQueryParameter["email"] = email;
|
|
466
503
|
if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
|
|
467
504
|
if (endTime !== void 0 && endTime !== null) localVarQueryParameter["endTime"] = endTime;
|
|
@@ -477,6 +514,7 @@ const AssetApiAxiosParamCreator = function(configuration) {
|
|
|
477
514
|
method: "GET",
|
|
478
515
|
queryParams: localVarQueryParameter,
|
|
479
516
|
bodyParams: localVarBodyParameter,
|
|
517
|
+
headerParams: localVarHeaderParameter,
|
|
480
518
|
timeUnit: _timeUnit
|
|
481
519
|
};
|
|
482
520
|
},
|
|
@@ -484,6 +522,7 @@ const AssetApiAxiosParamCreator = function(configuration) {
|
|
|
484
522
|
(0, __binance_common.assertParamExists)("queryUserUniversalTransferHistory", "type", type);
|
|
485
523
|
const localVarQueryParameter = {};
|
|
486
524
|
const localVarBodyParameter = {};
|
|
525
|
+
const localVarHeaderParameter = {};
|
|
487
526
|
if (type !== void 0 && type !== null) localVarQueryParameter["type"] = type;
|
|
488
527
|
if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
|
|
489
528
|
if (endTime !== void 0 && endTime !== null) localVarQueryParameter["endTime"] = endTime;
|
|
@@ -499,12 +538,14 @@ const AssetApiAxiosParamCreator = function(configuration) {
|
|
|
499
538
|
method: "GET",
|
|
500
539
|
queryParams: localVarQueryParameter,
|
|
501
540
|
bodyParams: localVarBodyParameter,
|
|
541
|
+
headerParams: localVarHeaderParameter,
|
|
502
542
|
timeUnit: _timeUnit
|
|
503
543
|
};
|
|
504
544
|
},
|
|
505
545
|
queryUserWalletBalance: async (quoteAsset, recvWindow) => {
|
|
506
546
|
const localVarQueryParameter = {};
|
|
507
547
|
const localVarBodyParameter = {};
|
|
548
|
+
const localVarHeaderParameter = {};
|
|
508
549
|
if (quoteAsset !== void 0 && quoteAsset !== null) localVarQueryParameter["quoteAsset"] = quoteAsset;
|
|
509
550
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
510
551
|
let _timeUnit;
|
|
@@ -514,12 +555,14 @@ const AssetApiAxiosParamCreator = function(configuration) {
|
|
|
514
555
|
method: "GET",
|
|
515
556
|
queryParams: localVarQueryParameter,
|
|
516
557
|
bodyParams: localVarBodyParameter,
|
|
558
|
+
headerParams: localVarHeaderParameter,
|
|
517
559
|
timeUnit: _timeUnit
|
|
518
560
|
};
|
|
519
561
|
},
|
|
520
562
|
toggleBnbBurnOnSpotTradeAndMarginInterest: async (spotBNBBurn, interestBNBBurn, recvWindow) => {
|
|
521
563
|
const localVarQueryParameter = {};
|
|
522
564
|
const localVarBodyParameter = {};
|
|
565
|
+
const localVarHeaderParameter = {};
|
|
523
566
|
if (spotBNBBurn !== void 0 && spotBNBBurn !== null) localVarQueryParameter["spotBNBBurn"] = spotBNBBurn;
|
|
524
567
|
if (interestBNBBurn !== void 0 && interestBNBBurn !== null) localVarQueryParameter["interestBNBBurn"] = interestBNBBurn;
|
|
525
568
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
@@ -530,12 +573,14 @@ const AssetApiAxiosParamCreator = function(configuration) {
|
|
|
530
573
|
method: "POST",
|
|
531
574
|
queryParams: localVarQueryParameter,
|
|
532
575
|
bodyParams: localVarBodyParameter,
|
|
576
|
+
headerParams: localVarHeaderParameter,
|
|
533
577
|
timeUnit: _timeUnit
|
|
534
578
|
};
|
|
535
579
|
},
|
|
536
580
|
tradeFee: async (symbol, recvWindow) => {
|
|
537
581
|
const localVarQueryParameter = {};
|
|
538
582
|
const localVarBodyParameter = {};
|
|
583
|
+
const localVarHeaderParameter = {};
|
|
539
584
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
540
585
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
541
586
|
let _timeUnit;
|
|
@@ -545,12 +590,14 @@ const AssetApiAxiosParamCreator = function(configuration) {
|
|
|
545
590
|
method: "GET",
|
|
546
591
|
queryParams: localVarQueryParameter,
|
|
547
592
|
bodyParams: localVarBodyParameter,
|
|
593
|
+
headerParams: localVarHeaderParameter,
|
|
548
594
|
timeUnit: _timeUnit
|
|
549
595
|
};
|
|
550
596
|
},
|
|
551
597
|
userAsset: async (asset, needBtcValuation, recvWindow) => {
|
|
552
598
|
const localVarQueryParameter = {};
|
|
553
599
|
const localVarBodyParameter = {};
|
|
600
|
+
const localVarHeaderParameter = {};
|
|
554
601
|
if (asset !== void 0 && asset !== null) localVarQueryParameter["asset"] = asset;
|
|
555
602
|
if (needBtcValuation !== void 0 && needBtcValuation !== null) localVarQueryParameter["needBtcValuation"] = needBtcValuation;
|
|
556
603
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
@@ -561,6 +608,7 @@ const AssetApiAxiosParamCreator = function(configuration) {
|
|
|
561
608
|
method: "POST",
|
|
562
609
|
queryParams: localVarQueryParameter,
|
|
563
610
|
bodyParams: localVarBodyParameter,
|
|
611
|
+
headerParams: localVarHeaderParameter,
|
|
564
612
|
timeUnit: _timeUnit
|
|
565
613
|
};
|
|
566
614
|
},
|
|
@@ -570,6 +618,7 @@ const AssetApiAxiosParamCreator = function(configuration) {
|
|
|
570
618
|
(0, __binance_common.assertParamExists)("userUniversalTransfer", "amount", amount);
|
|
571
619
|
const localVarQueryParameter = {};
|
|
572
620
|
const localVarBodyParameter = {};
|
|
621
|
+
const localVarHeaderParameter = {};
|
|
573
622
|
if (type !== void 0 && type !== null) localVarQueryParameter["type"] = type;
|
|
574
623
|
if (asset !== void 0 && asset !== null) localVarQueryParameter["asset"] = asset;
|
|
575
624
|
if (amount !== void 0 && amount !== null) localVarQueryParameter["amount"] = amount;
|
|
@@ -583,6 +632,7 @@ const AssetApiAxiosParamCreator = function(configuration) {
|
|
|
583
632
|
method: "POST",
|
|
584
633
|
queryParams: localVarQueryParameter,
|
|
585
634
|
bodyParams: localVarBodyParameter,
|
|
635
|
+
headerParams: localVarHeaderParameter,
|
|
586
636
|
timeUnit: _timeUnit
|
|
587
637
|
};
|
|
588
638
|
}
|
|
@@ -614,7 +664,7 @@ var AssetApi = class {
|
|
|
614
664
|
*/
|
|
615
665
|
async assetDetail(requestParameters = {}) {
|
|
616
666
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.assetDetail(requestParameters?.asset, requestParameters?.recvWindow);
|
|
617
|
-
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 });
|
|
618
668
|
}
|
|
619
669
|
/**
|
|
620
670
|
* Query asset dividend record.
|
|
@@ -633,7 +683,7 @@ var AssetApi = class {
|
|
|
633
683
|
*/
|
|
634
684
|
async assetDividendRecord(requestParameters = {}) {
|
|
635
685
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.assetDividendRecord(requestParameters?.asset, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.limit, requestParameters?.recvWindow);
|
|
636
|
-
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 });
|
|
637
687
|
}
|
|
638
688
|
/**
|
|
639
689
|
* Convert dust assets
|
|
@@ -648,8 +698,8 @@ var AssetApi = class {
|
|
|
648
698
|
* @see {@link https://developers.binance.com/docs/wallet/asset/Dust-Convert Binance API Documentation}
|
|
649
699
|
*/
|
|
650
700
|
async dustConvert(requestParameters) {
|
|
651
|
-
const localVarAxiosArgs = await this.localVarAxiosParamCreator.dustConvert(requestParameters?.asset, requestParameters?.clientId, requestParameters?.targetAsset, requestParameters?.thirdPartyClientId, requestParameters?.dustQuotaAssetToTargetAssetPrice);
|
|
652
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
701
|
+
const localVarAxiosArgs = await this.localVarAxiosParamCreator.dustConvert(requestParameters?.asset, requestParameters?.accountType, requestParameters?.clientId, requestParameters?.targetAsset, requestParameters?.thirdPartyClientId, requestParameters?.dustQuotaAssetToTargetAssetPrice);
|
|
702
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
653
703
|
}
|
|
654
704
|
/**
|
|
655
705
|
* Query dust convertible assets
|
|
@@ -664,8 +714,8 @@ var AssetApi = class {
|
|
|
664
714
|
* @see {@link https://developers.binance.com/docs/wallet/asset/Dust-Convertible-Assets Binance API Documentation}
|
|
665
715
|
*/
|
|
666
716
|
async dustConvertibleAssets(requestParameters) {
|
|
667
|
-
const localVarAxiosArgs = await this.localVarAxiosParamCreator.dustConvertibleAssets(requestParameters?.targetAsset, requestParameters?.dustQuotaAssetToTargetAssetPrice);
|
|
668
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
717
|
+
const localVarAxiosArgs = await this.localVarAxiosParamCreator.dustConvertibleAssets(requestParameters?.targetAsset, requestParameters?.accountType, requestParameters?.dustQuotaAssetToTargetAssetPrice);
|
|
718
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
669
719
|
}
|
|
670
720
|
/**
|
|
671
721
|
* Convert dust assets to BNB.
|
|
@@ -683,7 +733,7 @@ var AssetApi = class {
|
|
|
683
733
|
*/
|
|
684
734
|
async dustTransfer(requestParameters) {
|
|
685
735
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.dustTransfer(requestParameters?.asset, requestParameters?.accountType, requestParameters?.recvWindow);
|
|
686
|
-
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 });
|
|
687
737
|
}
|
|
688
738
|
/**
|
|
689
739
|
* Dustlog
|
|
@@ -702,7 +752,7 @@ var AssetApi = class {
|
|
|
702
752
|
*/
|
|
703
753
|
async dustlog(requestParameters = {}) {
|
|
704
754
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.dustlog(requestParameters?.accountType, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.recvWindow);
|
|
705
|
-
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 });
|
|
706
756
|
}
|
|
707
757
|
/**
|
|
708
758
|
* Query Funding Wallet
|
|
@@ -721,7 +771,7 @@ var AssetApi = class {
|
|
|
721
771
|
*/
|
|
722
772
|
async fundingWallet(requestParameters = {}) {
|
|
723
773
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.fundingWallet(requestParameters?.asset, requestParameters?.needBtcValuation, requestParameters?.recvWindow);
|
|
724
|
-
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 });
|
|
725
775
|
}
|
|
726
776
|
/**
|
|
727
777
|
* Get Assets That Can Be Converted Into BNB
|
|
@@ -737,7 +787,7 @@ var AssetApi = class {
|
|
|
737
787
|
*/
|
|
738
788
|
async getAssetsThatCanBeConvertedIntoBnb(requestParameters = {}) {
|
|
739
789
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getAssetsThatCanBeConvertedIntoBnb(requestParameters?.accountType, requestParameters?.recvWindow);
|
|
740
|
-
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 });
|
|
741
791
|
}
|
|
742
792
|
/**
|
|
743
793
|
* The query of Cloud-Mining payment and refund history
|
|
@@ -756,7 +806,7 @@ var AssetApi = class {
|
|
|
756
806
|
*/
|
|
757
807
|
async getCloudMiningPaymentAndRefundHistory(requestParameters) {
|
|
758
808
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getCloudMiningPaymentAndRefundHistory(requestParameters?.startTime, requestParameters?.endTime, requestParameters?.tranId, requestParameters?.clientTranId, requestParameters?.asset, requestParameters?.current, requestParameters?.size);
|
|
759
|
-
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 });
|
|
760
810
|
}
|
|
761
811
|
/**
|
|
762
812
|
* Get the list of symbols that are scheduled to be opened for trading in the market.
|
|
@@ -771,7 +821,7 @@ var AssetApi = class {
|
|
|
771
821
|
*/
|
|
772
822
|
async getOpenSymbolList() {
|
|
773
823
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getOpenSymbolList();
|
|
774
|
-
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 });
|
|
775
825
|
}
|
|
776
826
|
/**
|
|
777
827
|
* Query User Delegation History
|
|
@@ -787,7 +837,7 @@ var AssetApi = class {
|
|
|
787
837
|
*/
|
|
788
838
|
async queryUserDelegationHistory(requestParameters) {
|
|
789
839
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryUserDelegationHistory(requestParameters?.email, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.type, requestParameters?.asset, requestParameters?.current, requestParameters?.size, requestParameters?.recvWindow);
|
|
790
|
-
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 });
|
|
791
841
|
}
|
|
792
842
|
/**
|
|
793
843
|
* Query User Universal Transfer History
|
|
@@ -809,7 +859,7 @@ var AssetApi = class {
|
|
|
809
859
|
*/
|
|
810
860
|
async queryUserUniversalTransferHistory(requestParameters) {
|
|
811
861
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryUserUniversalTransferHistory(requestParameters?.type, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.current, requestParameters?.size, requestParameters?.fromSymbol, requestParameters?.toSymbol, requestParameters?.recvWindow);
|
|
812
|
-
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 });
|
|
813
863
|
}
|
|
814
864
|
/**
|
|
815
865
|
* Query User Wallet Balance
|
|
@@ -825,7 +875,7 @@ var AssetApi = class {
|
|
|
825
875
|
*/
|
|
826
876
|
async queryUserWalletBalance(requestParameters = {}) {
|
|
827
877
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryUserWalletBalance(requestParameters?.quoteAsset, requestParameters?.recvWindow);
|
|
828
|
-
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 });
|
|
829
879
|
}
|
|
830
880
|
/**
|
|
831
881
|
* Toggle BNB Burn On Spot Trade And Margin Interest
|
|
@@ -843,7 +893,7 @@ var AssetApi = class {
|
|
|
843
893
|
*/
|
|
844
894
|
async toggleBnbBurnOnSpotTradeAndMarginInterest(requestParameters = {}) {
|
|
845
895
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.toggleBnbBurnOnSpotTradeAndMarginInterest(requestParameters?.spotBNBBurn, requestParameters?.interestBNBBurn, requestParameters?.recvWindow);
|
|
846
|
-
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 });
|
|
847
897
|
}
|
|
848
898
|
/**
|
|
849
899
|
* Fetch trade fee
|
|
@@ -859,7 +909,7 @@ var AssetApi = class {
|
|
|
859
909
|
*/
|
|
860
910
|
async tradeFee(requestParameters = {}) {
|
|
861
911
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.tradeFee(requestParameters?.symbol, requestParameters?.recvWindow);
|
|
862
|
-
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 });
|
|
863
913
|
}
|
|
864
914
|
/**
|
|
865
915
|
* Get user assets, just for positive data.
|
|
@@ -878,7 +928,7 @@ var AssetApi = class {
|
|
|
878
928
|
*/
|
|
879
929
|
async userAsset(requestParameters = {}) {
|
|
880
930
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.userAsset(requestParameters?.asset, requestParameters?.needBtcValuation, requestParameters?.recvWindow);
|
|
881
|
-
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 });
|
|
882
932
|
}
|
|
883
933
|
/**
|
|
884
934
|
* user universal transfer
|
|
@@ -929,7 +979,7 @@ var AssetApi = class {
|
|
|
929
979
|
*/
|
|
930
980
|
async userUniversalTransfer(requestParameters) {
|
|
931
981
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.userUniversalTransfer(requestParameters?.type, requestParameters?.asset, requestParameters?.amount, requestParameters?.fromSymbol, requestParameters?.toSymbol, requestParameters?.recvWindow);
|
|
932
|
-
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 });
|
|
933
983
|
}
|
|
934
984
|
};
|
|
935
985
|
|
|
@@ -955,6 +1005,7 @@ const CapitalApiAxiosParamCreator = function(configuration) {
|
|
|
955
1005
|
allCoinsInformation: async (recvWindow) => {
|
|
956
1006
|
const localVarQueryParameter = {};
|
|
957
1007
|
const localVarBodyParameter = {};
|
|
1008
|
+
const localVarHeaderParameter = {};
|
|
958
1009
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
959
1010
|
let _timeUnit;
|
|
960
1011
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
@@ -963,6 +1014,7 @@ const CapitalApiAxiosParamCreator = function(configuration) {
|
|
|
963
1014
|
method: "GET",
|
|
964
1015
|
queryParams: localVarQueryParameter,
|
|
965
1016
|
bodyParams: localVarBodyParameter,
|
|
1017
|
+
headerParams: localVarHeaderParameter,
|
|
966
1018
|
timeUnit: _timeUnit
|
|
967
1019
|
};
|
|
968
1020
|
},
|
|
@@ -970,6 +1022,7 @@ const CapitalApiAxiosParamCreator = function(configuration) {
|
|
|
970
1022
|
(0, __binance_common.assertParamExists)("depositAddress", "coin", coin);
|
|
971
1023
|
const localVarQueryParameter = {};
|
|
972
1024
|
const localVarBodyParameter = {};
|
|
1025
|
+
const localVarHeaderParameter = {};
|
|
973
1026
|
if (coin !== void 0 && coin !== null) localVarQueryParameter["coin"] = coin;
|
|
974
1027
|
if (network !== void 0 && network !== null) localVarQueryParameter["network"] = network;
|
|
975
1028
|
if (amount !== void 0 && amount !== null) localVarQueryParameter["amount"] = amount;
|
|
@@ -981,12 +1034,14 @@ const CapitalApiAxiosParamCreator = function(configuration) {
|
|
|
981
1034
|
method: "GET",
|
|
982
1035
|
queryParams: localVarQueryParameter,
|
|
983
1036
|
bodyParams: localVarBodyParameter,
|
|
1037
|
+
headerParams: localVarHeaderParameter,
|
|
984
1038
|
timeUnit: _timeUnit
|
|
985
1039
|
};
|
|
986
1040
|
},
|
|
987
1041
|
depositHistory: async (includeSource, coin, status, startTime, endTime, offset, limit, recvWindow, txId) => {
|
|
988
1042
|
const localVarQueryParameter = {};
|
|
989
1043
|
const localVarBodyParameter = {};
|
|
1044
|
+
const localVarHeaderParameter = {};
|
|
990
1045
|
if (includeSource !== void 0 && includeSource !== null) localVarQueryParameter["includeSource"] = includeSource;
|
|
991
1046
|
if (coin !== void 0 && coin !== null) localVarQueryParameter["coin"] = coin;
|
|
992
1047
|
if (status !== void 0 && status !== null) localVarQueryParameter["status"] = status;
|
|
@@ -1003,6 +1058,7 @@ const CapitalApiAxiosParamCreator = function(configuration) {
|
|
|
1003
1058
|
method: "GET",
|
|
1004
1059
|
queryParams: localVarQueryParameter,
|
|
1005
1060
|
bodyParams: localVarBodyParameter,
|
|
1061
|
+
headerParams: localVarHeaderParameter,
|
|
1006
1062
|
timeUnit: _timeUnit
|
|
1007
1063
|
};
|
|
1008
1064
|
},
|
|
@@ -1010,6 +1066,7 @@ const CapitalApiAxiosParamCreator = function(configuration) {
|
|
|
1010
1066
|
(0, __binance_common.assertParamExists)("fetchDepositAddressListWithNetwork", "coin", coin);
|
|
1011
1067
|
const localVarQueryParameter = {};
|
|
1012
1068
|
const localVarBodyParameter = {};
|
|
1069
|
+
const localVarHeaderParameter = {};
|
|
1013
1070
|
if (coin !== void 0 && coin !== null) localVarQueryParameter["coin"] = coin;
|
|
1014
1071
|
if (network !== void 0 && network !== null) localVarQueryParameter["network"] = network;
|
|
1015
1072
|
let _timeUnit;
|
|
@@ -1019,12 +1076,14 @@ const CapitalApiAxiosParamCreator = function(configuration) {
|
|
|
1019
1076
|
method: "GET",
|
|
1020
1077
|
queryParams: localVarQueryParameter,
|
|
1021
1078
|
bodyParams: localVarBodyParameter,
|
|
1079
|
+
headerParams: localVarHeaderParameter,
|
|
1022
1080
|
timeUnit: _timeUnit
|
|
1023
1081
|
};
|
|
1024
1082
|
},
|
|
1025
1083
|
fetchWithdrawAddressList: async () => {
|
|
1026
1084
|
const localVarQueryParameter = {};
|
|
1027
1085
|
const localVarBodyParameter = {};
|
|
1086
|
+
const localVarHeaderParameter = {};
|
|
1028
1087
|
let _timeUnit;
|
|
1029
1088
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
1030
1089
|
return {
|
|
@@ -1032,12 +1091,14 @@ const CapitalApiAxiosParamCreator = function(configuration) {
|
|
|
1032
1091
|
method: "GET",
|
|
1033
1092
|
queryParams: localVarQueryParameter,
|
|
1034
1093
|
bodyParams: localVarBodyParameter,
|
|
1094
|
+
headerParams: localVarHeaderParameter,
|
|
1035
1095
|
timeUnit: _timeUnit
|
|
1036
1096
|
};
|
|
1037
1097
|
},
|
|
1038
1098
|
fetchWithdrawQuota: async () => {
|
|
1039
1099
|
const localVarQueryParameter = {};
|
|
1040
1100
|
const localVarBodyParameter = {};
|
|
1101
|
+
const localVarHeaderParameter = {};
|
|
1041
1102
|
let _timeUnit;
|
|
1042
1103
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
1043
1104
|
return {
|
|
@@ -1045,12 +1106,14 @@ const CapitalApiAxiosParamCreator = function(configuration) {
|
|
|
1045
1106
|
method: "GET",
|
|
1046
1107
|
queryParams: localVarQueryParameter,
|
|
1047
1108
|
bodyParams: localVarBodyParameter,
|
|
1109
|
+
headerParams: localVarHeaderParameter,
|
|
1048
1110
|
timeUnit: _timeUnit
|
|
1049
1111
|
};
|
|
1050
1112
|
},
|
|
1051
1113
|
oneClickArrivalDepositApply: async (depositId, txId, subAccountId, subUserId) => {
|
|
1052
1114
|
const localVarQueryParameter = {};
|
|
1053
1115
|
const localVarBodyParameter = {};
|
|
1116
|
+
const localVarHeaderParameter = {};
|
|
1054
1117
|
if (depositId !== void 0 && depositId !== null) localVarQueryParameter["depositId"] = depositId;
|
|
1055
1118
|
if (txId !== void 0 && txId !== null) localVarQueryParameter["txId"] = txId;
|
|
1056
1119
|
if (subAccountId !== void 0 && subAccountId !== null) localVarQueryParameter["subAccountId"] = subAccountId;
|
|
@@ -1062,6 +1125,7 @@ const CapitalApiAxiosParamCreator = function(configuration) {
|
|
|
1062
1125
|
method: "POST",
|
|
1063
1126
|
queryParams: localVarQueryParameter,
|
|
1064
1127
|
bodyParams: localVarBodyParameter,
|
|
1128
|
+
headerParams: localVarHeaderParameter,
|
|
1065
1129
|
timeUnit: _timeUnit
|
|
1066
1130
|
};
|
|
1067
1131
|
},
|
|
@@ -1071,6 +1135,7 @@ const CapitalApiAxiosParamCreator = function(configuration) {
|
|
|
1071
1135
|
(0, __binance_common.assertParamExists)("withdraw", "amount", amount);
|
|
1072
1136
|
const localVarQueryParameter = {};
|
|
1073
1137
|
const localVarBodyParameter = {};
|
|
1138
|
+
const localVarHeaderParameter = {};
|
|
1074
1139
|
if (coin !== void 0 && coin !== null) localVarQueryParameter["coin"] = coin;
|
|
1075
1140
|
if (withdrawOrderId !== void 0 && withdrawOrderId !== null) localVarQueryParameter["withdrawOrderId"] = withdrawOrderId;
|
|
1076
1141
|
if (network !== void 0 && network !== null) localVarQueryParameter["network"] = network;
|
|
@@ -1088,12 +1153,14 @@ const CapitalApiAxiosParamCreator = function(configuration) {
|
|
|
1088
1153
|
method: "POST",
|
|
1089
1154
|
queryParams: localVarQueryParameter,
|
|
1090
1155
|
bodyParams: localVarBodyParameter,
|
|
1156
|
+
headerParams: localVarHeaderParameter,
|
|
1091
1157
|
timeUnit: _timeUnit
|
|
1092
1158
|
};
|
|
1093
1159
|
},
|
|
1094
1160
|
withdrawHistory: async (coin, withdrawOrderId, status, offset, limit, idList, startTime, endTime, recvWindow) => {
|
|
1095
1161
|
const localVarQueryParameter = {};
|
|
1096
1162
|
const localVarBodyParameter = {};
|
|
1163
|
+
const localVarHeaderParameter = {};
|
|
1097
1164
|
if (coin !== void 0 && coin !== null) localVarQueryParameter["coin"] = coin;
|
|
1098
1165
|
if (withdrawOrderId !== void 0 && withdrawOrderId !== null) localVarQueryParameter["withdrawOrderId"] = withdrawOrderId;
|
|
1099
1166
|
if (status !== void 0 && status !== null) localVarQueryParameter["status"] = status;
|
|
@@ -1110,6 +1177,7 @@ const CapitalApiAxiosParamCreator = function(configuration) {
|
|
|
1110
1177
|
method: "GET",
|
|
1111
1178
|
queryParams: localVarQueryParameter,
|
|
1112
1179
|
bodyParams: localVarBodyParameter,
|
|
1180
|
+
headerParams: localVarHeaderParameter,
|
|
1113
1181
|
timeUnit: _timeUnit
|
|
1114
1182
|
};
|
|
1115
1183
|
}
|
|
@@ -1138,7 +1206,7 @@ var CapitalApi = class {
|
|
|
1138
1206
|
*/
|
|
1139
1207
|
async allCoinsInformation(requestParameters = {}) {
|
|
1140
1208
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.allCoinsInformation(requestParameters?.recvWindow);
|
|
1141
|
-
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 });
|
|
1142
1210
|
}
|
|
1143
1211
|
/**
|
|
1144
1212
|
* Fetch deposit address with network.
|
|
@@ -1158,7 +1226,7 @@ var CapitalApi = class {
|
|
|
1158
1226
|
*/
|
|
1159
1227
|
async depositAddress(requestParameters) {
|
|
1160
1228
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.depositAddress(requestParameters?.coin, requestParameters?.network, requestParameters?.amount, requestParameters?.recvWindow);
|
|
1161
|
-
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 });
|
|
1162
1230
|
}
|
|
1163
1231
|
/**
|
|
1164
1232
|
* Fetch deposit history.
|
|
@@ -1178,7 +1246,7 @@ var CapitalApi = class {
|
|
|
1178
1246
|
*/
|
|
1179
1247
|
async depositHistory(requestParameters = {}) {
|
|
1180
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);
|
|
1181
|
-
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 });
|
|
1182
1250
|
}
|
|
1183
1251
|
/**
|
|
1184
1252
|
* Fetch deposit address list with network.
|
|
@@ -1198,7 +1266,7 @@ var CapitalApi = class {
|
|
|
1198
1266
|
*/
|
|
1199
1267
|
async fetchDepositAddressListWithNetwork(requestParameters) {
|
|
1200
1268
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.fetchDepositAddressListWithNetwork(requestParameters?.coin, requestParameters?.network);
|
|
1201
|
-
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 });
|
|
1202
1270
|
}
|
|
1203
1271
|
/**
|
|
1204
1272
|
* Fetch withdraw address list
|
|
@@ -1213,7 +1281,7 @@ var CapitalApi = class {
|
|
|
1213
1281
|
*/
|
|
1214
1282
|
async fetchWithdrawAddressList() {
|
|
1215
1283
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.fetchWithdrawAddressList();
|
|
1216
|
-
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 });
|
|
1217
1285
|
}
|
|
1218
1286
|
/**
|
|
1219
1287
|
* Fetch withdraw quota
|
|
@@ -1228,7 +1296,7 @@ var CapitalApi = class {
|
|
|
1228
1296
|
*/
|
|
1229
1297
|
async fetchWithdrawQuota() {
|
|
1230
1298
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.fetchWithdrawQuota();
|
|
1231
|
-
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 });
|
|
1232
1300
|
}
|
|
1233
1301
|
/**
|
|
1234
1302
|
* Apply deposit credit for expired address (One click arrival)
|
|
@@ -1246,7 +1314,7 @@ var CapitalApi = class {
|
|
|
1246
1314
|
*/
|
|
1247
1315
|
async oneClickArrivalDepositApply(requestParameters = {}) {
|
|
1248
1316
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.oneClickArrivalDepositApply(requestParameters?.depositId, requestParameters?.txId, requestParameters?.subAccountId, requestParameters?.subUserId);
|
|
1249
|
-
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 });
|
|
1250
1318
|
}
|
|
1251
1319
|
/**
|
|
1252
1320
|
* Submit a withdraw request.
|
|
@@ -1255,6 +1323,9 @@ var CapitalApi = class {
|
|
|
1255
1323
|
* If `network` not send, return with default network of the coin.
|
|
1256
1324
|
* You can get `network` and `isDefault` in `networkList` of a coin in the response of `Get /sapi/v1/capital/config/getall (HMAC SHA256)`.
|
|
1257
1325
|
* To check if travel rule is required, by using `GET /sapi/v1/localentity/questionnaire-requirements` and if it returns anything other than `NIL` you will need update SAPI to `POST /sapi/v1/localentity/withdraw/apply` else you can continue `POST /sapi/v1/capital/withdraw/apply`. Please note that if you are required to comply to travel rule please refer to the Travel Rule SAPI.
|
|
1326
|
+
* For networks that do not support memo/tag, submitting a withdrawal request with a non-empty `addressTag` will return error `-4106 TAG_NOT_SUPPORTED_FOR_NETWORK`. Please omit the `addressTag` field for such networks. You can check whether a network requires a tag via `GET /sapi/v1/capital/config/getall`:
|
|
1327
|
+
* If `withdrawTag` = `true` → memo/tag is required.
|
|
1328
|
+
* If `withdrawTag` = `false` → memo/tag is not supported; omit `addressTag`.
|
|
1258
1329
|
*
|
|
1259
1330
|
* Weight: 900
|
|
1260
1331
|
*
|
|
@@ -1267,7 +1338,7 @@ var CapitalApi = class {
|
|
|
1267
1338
|
*/
|
|
1268
1339
|
async withdraw(requestParameters) {
|
|
1269
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);
|
|
1270
|
-
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 });
|
|
1271
1342
|
}
|
|
1272
1343
|
/**
|
|
1273
1344
|
* Fetch withdraw history.
|
|
@@ -1291,7 +1362,7 @@ var CapitalApi = class {
|
|
|
1291
1362
|
*/
|
|
1292
1363
|
async withdrawHistory(requestParameters = {}) {
|
|
1293
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);
|
|
1294
|
-
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 });
|
|
1295
1366
|
}
|
|
1296
1367
|
};
|
|
1297
1368
|
|
|
@@ -1317,6 +1388,7 @@ const OthersApiAxiosParamCreator = function(configuration) {
|
|
|
1317
1388
|
getSymbolsDelistScheduleForSpot: async (recvWindow) => {
|
|
1318
1389
|
const localVarQueryParameter = {};
|
|
1319
1390
|
const localVarBodyParameter = {};
|
|
1391
|
+
const localVarHeaderParameter = {};
|
|
1320
1392
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
1321
1393
|
let _timeUnit;
|
|
1322
1394
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
@@ -1325,12 +1397,14 @@ const OthersApiAxiosParamCreator = function(configuration) {
|
|
|
1325
1397
|
method: "GET",
|
|
1326
1398
|
queryParams: localVarQueryParameter,
|
|
1327
1399
|
bodyParams: localVarBodyParameter,
|
|
1400
|
+
headerParams: localVarHeaderParameter,
|
|
1328
1401
|
timeUnit: _timeUnit
|
|
1329
1402
|
};
|
|
1330
1403
|
},
|
|
1331
1404
|
systemStatus: async () => {
|
|
1332
1405
|
const localVarQueryParameter = {};
|
|
1333
1406
|
const localVarBodyParameter = {};
|
|
1407
|
+
const localVarHeaderParameter = {};
|
|
1334
1408
|
let _timeUnit;
|
|
1335
1409
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
1336
1410
|
return {
|
|
@@ -1338,6 +1412,7 @@ const OthersApiAxiosParamCreator = function(configuration) {
|
|
|
1338
1412
|
method: "GET",
|
|
1339
1413
|
queryParams: localVarQueryParameter,
|
|
1340
1414
|
bodyParams: localVarBodyParameter,
|
|
1415
|
+
headerParams: localVarHeaderParameter,
|
|
1341
1416
|
timeUnit: _timeUnit
|
|
1342
1417
|
};
|
|
1343
1418
|
}
|
|
@@ -1366,7 +1441,7 @@ var OthersApi = class {
|
|
|
1366
1441
|
*/
|
|
1367
1442
|
async getSymbolsDelistScheduleForSpot(requestParameters = {}) {
|
|
1368
1443
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getSymbolsDelistScheduleForSpot(requestParameters?.recvWindow);
|
|
1369
|
-
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 });
|
|
1370
1445
|
}
|
|
1371
1446
|
/**
|
|
1372
1447
|
* Fetch system status.
|
|
@@ -1381,7 +1456,7 @@ var OthersApi = class {
|
|
|
1381
1456
|
*/
|
|
1382
1457
|
async systemStatus() {
|
|
1383
1458
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.systemStatus();
|
|
1384
|
-
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 });
|
|
1385
1460
|
}
|
|
1386
1461
|
};
|
|
1387
1462
|
|
|
@@ -1414,6 +1489,7 @@ const TravelRuleApiAxiosParamCreator = function(configuration) {
|
|
|
1414
1489
|
(0, __binance_common.assertParamExists)("brokerWithdraw", "signature", signature);
|
|
1415
1490
|
const localVarQueryParameter = {};
|
|
1416
1491
|
const localVarBodyParameter = {};
|
|
1492
|
+
const localVarHeaderParameter = {};
|
|
1417
1493
|
if (address !== void 0 && address !== null) localVarQueryParameter["address"] = address;
|
|
1418
1494
|
if (addressTag !== void 0 && addressTag !== null) localVarQueryParameter["addressTag"] = addressTag;
|
|
1419
1495
|
if (network !== void 0 && network !== null) localVarQueryParameter["network"] = network;
|
|
@@ -1433,12 +1509,14 @@ const TravelRuleApiAxiosParamCreator = function(configuration) {
|
|
|
1433
1509
|
method: "POST",
|
|
1434
1510
|
queryParams: localVarQueryParameter,
|
|
1435
1511
|
bodyParams: localVarBodyParameter,
|
|
1512
|
+
headerParams: localVarHeaderParameter,
|
|
1436
1513
|
timeUnit: _timeUnit
|
|
1437
1514
|
};
|
|
1438
1515
|
},
|
|
1439
1516
|
checkQuestionnaireRequirements: async (recvWindow) => {
|
|
1440
1517
|
const localVarQueryParameter = {};
|
|
1441
1518
|
const localVarBodyParameter = {};
|
|
1519
|
+
const localVarHeaderParameter = {};
|
|
1442
1520
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
1443
1521
|
let _timeUnit;
|
|
1444
1522
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
@@ -1447,12 +1525,14 @@ const TravelRuleApiAxiosParamCreator = function(configuration) {
|
|
|
1447
1525
|
method: "GET",
|
|
1448
1526
|
queryParams: localVarQueryParameter,
|
|
1449
1527
|
bodyParams: localVarBodyParameter,
|
|
1528
|
+
headerParams: localVarHeaderParameter,
|
|
1450
1529
|
timeUnit: _timeUnit
|
|
1451
1530
|
};
|
|
1452
1531
|
},
|
|
1453
1532
|
depositHistoryTravelRule: async (trId, txId, tranId, network, coin, travelRuleStatus, pendingQuestionnaire, startTime, endTime, offset, limit) => {
|
|
1454
1533
|
const localVarQueryParameter = {};
|
|
1455
1534
|
const localVarBodyParameter = {};
|
|
1535
|
+
const localVarHeaderParameter = {};
|
|
1456
1536
|
if (trId !== void 0 && trId !== null) localVarQueryParameter["trId"] = trId;
|
|
1457
1537
|
if (txId !== void 0 && txId !== null) localVarQueryParameter["txId"] = txId;
|
|
1458
1538
|
if (tranId !== void 0 && tranId !== null) localVarQueryParameter["tranId"] = tranId;
|
|
@@ -1471,12 +1551,14 @@ const TravelRuleApiAxiosParamCreator = function(configuration) {
|
|
|
1471
1551
|
method: "GET",
|
|
1472
1552
|
queryParams: localVarQueryParameter,
|
|
1473
1553
|
bodyParams: localVarBodyParameter,
|
|
1554
|
+
headerParams: localVarHeaderParameter,
|
|
1474
1555
|
timeUnit: _timeUnit
|
|
1475
1556
|
};
|
|
1476
1557
|
},
|
|
1477
1558
|
depositHistoryV2: async (depositId, txId, network, coin, retrieveQuestionnaire, startTime, endTime, offset, limit) => {
|
|
1478
1559
|
const localVarQueryParameter = {};
|
|
1479
1560
|
const localVarBodyParameter = {};
|
|
1561
|
+
const localVarHeaderParameter = {};
|
|
1480
1562
|
if (depositId !== void 0 && depositId !== null) localVarQueryParameter["depositId"] = depositId;
|
|
1481
1563
|
if (txId !== void 0 && txId !== null) localVarQueryParameter["txId"] = txId;
|
|
1482
1564
|
if (network !== void 0 && network !== null) localVarQueryParameter["network"] = network;
|
|
@@ -1493,12 +1575,14 @@ const TravelRuleApiAxiosParamCreator = function(configuration) {
|
|
|
1493
1575
|
method: "GET",
|
|
1494
1576
|
queryParams: localVarQueryParameter,
|
|
1495
1577
|
bodyParams: localVarBodyParameter,
|
|
1578
|
+
headerParams: localVarHeaderParameter,
|
|
1496
1579
|
timeUnit: _timeUnit
|
|
1497
1580
|
};
|
|
1498
1581
|
},
|
|
1499
1582
|
fetchAddressVerificationList: async (recvWindow) => {
|
|
1500
1583
|
const localVarQueryParameter = {};
|
|
1501
1584
|
const localVarBodyParameter = {};
|
|
1585
|
+
const localVarHeaderParameter = {};
|
|
1502
1586
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
1503
1587
|
let _timeUnit;
|
|
1504
1588
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
@@ -1507,6 +1591,39 @@ const TravelRuleApiAxiosParamCreator = function(configuration) {
|
|
|
1507
1591
|
method: "GET",
|
|
1508
1592
|
queryParams: localVarQueryParameter,
|
|
1509
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,
|
|
1510
1627
|
timeUnit: _timeUnit
|
|
1511
1628
|
};
|
|
1512
1629
|
},
|
|
@@ -1518,6 +1635,7 @@ const TravelRuleApiAxiosParamCreator = function(configuration) {
|
|
|
1518
1635
|
(0, __binance_common.assertParamExists)("submitDepositQuestionnaire", "signature", signature);
|
|
1519
1636
|
const localVarQueryParameter = {};
|
|
1520
1637
|
const localVarBodyParameter = {};
|
|
1638
|
+
const localVarHeaderParameter = {};
|
|
1521
1639
|
if (subAccountId !== void 0 && subAccountId !== null) localVarQueryParameter["subAccountId"] = subAccountId;
|
|
1522
1640
|
if (depositId !== void 0 && depositId !== null) localVarQueryParameter["depositId"] = depositId;
|
|
1523
1641
|
if (questionnaire !== void 0 && questionnaire !== null) localVarQueryParameter["questionnaire"] = questionnaire;
|
|
@@ -1535,6 +1653,7 @@ const TravelRuleApiAxiosParamCreator = function(configuration) {
|
|
|
1535
1653
|
method: "PUT",
|
|
1536
1654
|
queryParams: localVarQueryParameter,
|
|
1537
1655
|
bodyParams: localVarBodyParameter,
|
|
1656
|
+
headerParams: localVarHeaderParameter,
|
|
1538
1657
|
timeUnit: _timeUnit
|
|
1539
1658
|
};
|
|
1540
1659
|
},
|
|
@@ -1543,6 +1662,7 @@ const TravelRuleApiAxiosParamCreator = function(configuration) {
|
|
|
1543
1662
|
(0, __binance_common.assertParamExists)("submitDepositQuestionnaireTravelRule", "questionnaire", questionnaire);
|
|
1544
1663
|
const localVarQueryParameter = {};
|
|
1545
1664
|
const localVarBodyParameter = {};
|
|
1665
|
+
const localVarHeaderParameter = {};
|
|
1546
1666
|
if (tranId !== void 0 && tranId !== null) localVarQueryParameter["tranId"] = tranId;
|
|
1547
1667
|
if (questionnaire !== void 0 && questionnaire !== null) localVarQueryParameter["questionnaire"] = questionnaire;
|
|
1548
1668
|
let _timeUnit;
|
|
@@ -1552,6 +1672,7 @@ const TravelRuleApiAxiosParamCreator = function(configuration) {
|
|
|
1552
1672
|
method: "PUT",
|
|
1553
1673
|
queryParams: localVarQueryParameter,
|
|
1554
1674
|
bodyParams: localVarBodyParameter,
|
|
1675
|
+
headerParams: localVarHeaderParameter,
|
|
1555
1676
|
timeUnit: _timeUnit
|
|
1556
1677
|
};
|
|
1557
1678
|
},
|
|
@@ -1560,6 +1681,7 @@ const TravelRuleApiAxiosParamCreator = function(configuration) {
|
|
|
1560
1681
|
(0, __binance_common.assertParamExists)("submitDepositQuestionnaireV2", "questionnaire", questionnaire);
|
|
1561
1682
|
const localVarQueryParameter = {};
|
|
1562
1683
|
const localVarBodyParameter = {};
|
|
1684
|
+
const localVarHeaderParameter = {};
|
|
1563
1685
|
if (depositId !== void 0 && depositId !== null) localVarQueryParameter["depositId"] = depositId;
|
|
1564
1686
|
if (questionnaire !== void 0 && questionnaire !== null) localVarQueryParameter["questionnaire"] = questionnaire;
|
|
1565
1687
|
let _timeUnit;
|
|
@@ -1569,12 +1691,14 @@ const TravelRuleApiAxiosParamCreator = function(configuration) {
|
|
|
1569
1691
|
method: "PUT",
|
|
1570
1692
|
queryParams: localVarQueryParameter,
|
|
1571
1693
|
bodyParams: localVarBodyParameter,
|
|
1694
|
+
headerParams: localVarHeaderParameter,
|
|
1572
1695
|
timeUnit: _timeUnit
|
|
1573
1696
|
};
|
|
1574
1697
|
},
|
|
1575
1698
|
vaspList: async (recvWindow) => {
|
|
1576
1699
|
const localVarQueryParameter = {};
|
|
1577
1700
|
const localVarBodyParameter = {};
|
|
1701
|
+
const localVarHeaderParameter = {};
|
|
1578
1702
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
1579
1703
|
let _timeUnit;
|
|
1580
1704
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
@@ -1583,12 +1707,14 @@ const TravelRuleApiAxiosParamCreator = function(configuration) {
|
|
|
1583
1707
|
method: "GET",
|
|
1584
1708
|
queryParams: localVarQueryParameter,
|
|
1585
1709
|
bodyParams: localVarBodyParameter,
|
|
1710
|
+
headerParams: localVarHeaderParameter,
|
|
1586
1711
|
timeUnit: _timeUnit
|
|
1587
1712
|
};
|
|
1588
1713
|
},
|
|
1589
1714
|
withdrawHistoryV1: async (trId, txId, withdrawOrderId, network, coin, travelRuleStatus, offset, limit, startTime, endTime, recvWindow) => {
|
|
1590
1715
|
const localVarQueryParameter = {};
|
|
1591
1716
|
const localVarBodyParameter = {};
|
|
1717
|
+
const localVarHeaderParameter = {};
|
|
1592
1718
|
if (trId !== void 0 && trId !== null) localVarQueryParameter["trId"] = trId;
|
|
1593
1719
|
if (txId !== void 0 && txId !== null) localVarQueryParameter["txId"] = txId;
|
|
1594
1720
|
if (withdrawOrderId !== void 0 && withdrawOrderId !== null) localVarQueryParameter["withdrawOrderId"] = withdrawOrderId;
|
|
@@ -1607,12 +1733,14 @@ const TravelRuleApiAxiosParamCreator = function(configuration) {
|
|
|
1607
1733
|
method: "GET",
|
|
1608
1734
|
queryParams: localVarQueryParameter,
|
|
1609
1735
|
bodyParams: localVarBodyParameter,
|
|
1736
|
+
headerParams: localVarHeaderParameter,
|
|
1610
1737
|
timeUnit: _timeUnit
|
|
1611
1738
|
};
|
|
1612
1739
|
},
|
|
1613
1740
|
withdrawHistoryV2: async (trId, txId, withdrawOrderId, network, coin, travelRuleStatus, offset, limit, startTime, endTime, recvWindow) => {
|
|
1614
1741
|
const localVarQueryParameter = {};
|
|
1615
1742
|
const localVarBodyParameter = {};
|
|
1743
|
+
const localVarHeaderParameter = {};
|
|
1616
1744
|
if (trId !== void 0 && trId !== null) localVarQueryParameter["trId"] = trId;
|
|
1617
1745
|
if (txId !== void 0 && txId !== null) localVarQueryParameter["txId"] = txId;
|
|
1618
1746
|
if (withdrawOrderId !== void 0 && withdrawOrderId !== null) localVarQueryParameter["withdrawOrderId"] = withdrawOrderId;
|
|
@@ -1631,6 +1759,7 @@ const TravelRuleApiAxiosParamCreator = function(configuration) {
|
|
|
1631
1759
|
method: "GET",
|
|
1632
1760
|
queryParams: localVarQueryParameter,
|
|
1633
1761
|
bodyParams: localVarBodyParameter,
|
|
1762
|
+
headerParams: localVarHeaderParameter,
|
|
1634
1763
|
timeUnit: _timeUnit
|
|
1635
1764
|
};
|
|
1636
1765
|
},
|
|
@@ -1641,6 +1770,7 @@ const TravelRuleApiAxiosParamCreator = function(configuration) {
|
|
|
1641
1770
|
(0, __binance_common.assertParamExists)("withdrawTravelRule", "questionnaire", questionnaire);
|
|
1642
1771
|
const localVarQueryParameter = {};
|
|
1643
1772
|
const localVarBodyParameter = {};
|
|
1773
|
+
const localVarHeaderParameter = {};
|
|
1644
1774
|
if (coin !== void 0 && coin !== null) localVarQueryParameter["coin"] = coin;
|
|
1645
1775
|
if (withdrawOrderId !== void 0 && withdrawOrderId !== null) localVarQueryParameter["withdrawOrderId"] = withdrawOrderId;
|
|
1646
1776
|
if (network !== void 0 && network !== null) localVarQueryParameter["network"] = network;
|
|
@@ -1659,6 +1789,7 @@ const TravelRuleApiAxiosParamCreator = function(configuration) {
|
|
|
1659
1789
|
method: "POST",
|
|
1660
1790
|
queryParams: localVarQueryParameter,
|
|
1661
1791
|
bodyParams: localVarBodyParameter,
|
|
1792
|
+
headerParams: localVarHeaderParameter,
|
|
1662
1793
|
timeUnit: _timeUnit
|
|
1663
1794
|
};
|
|
1664
1795
|
}
|
|
@@ -1692,7 +1823,7 @@ var TravelRuleApi = class {
|
|
|
1692
1823
|
*/
|
|
1693
1824
|
async brokerWithdraw(requestParameters) {
|
|
1694
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);
|
|
1695
|
-
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 });
|
|
1696
1827
|
}
|
|
1697
1828
|
/**
|
|
1698
1829
|
* This API will return user-specific Travel Rule questionnaire requirement information in reference to the current API key.
|
|
@@ -1708,7 +1839,7 @@ var TravelRuleApi = class {
|
|
|
1708
1839
|
*/
|
|
1709
1840
|
async checkQuestionnaireRequirements(requestParameters = {}) {
|
|
1710
1841
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.checkQuestionnaireRequirements(requestParameters?.recvWindow);
|
|
1711
|
-
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 });
|
|
1712
1843
|
}
|
|
1713
1844
|
/**
|
|
1714
1845
|
* Fetch deposit history for local entities that required travel rule.
|
|
@@ -1728,7 +1859,7 @@ var TravelRuleApi = class {
|
|
|
1728
1859
|
*/
|
|
1729
1860
|
async depositHistoryTravelRule(requestParameters = {}) {
|
|
1730
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);
|
|
1731
|
-
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 });
|
|
1732
1863
|
}
|
|
1733
1864
|
/**
|
|
1734
1865
|
* Fetch deposit history for local entities that with required travel rule information.
|
|
@@ -1748,7 +1879,7 @@ var TravelRuleApi = class {
|
|
|
1748
1879
|
*/
|
|
1749
1880
|
async depositHistoryV2(requestParameters = {}) {
|
|
1750
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);
|
|
1751
|
-
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 });
|
|
1752
1883
|
}
|
|
1753
1884
|
/**
|
|
1754
1885
|
* Fetch address verification list for user to check on status and other details for the addresses stored in Address Book.
|
|
@@ -1764,7 +1895,38 @@ var TravelRuleApi = class {
|
|
|
1764
1895
|
*/
|
|
1765
1896
|
async fetchAddressVerificationList(requestParameters = {}) {
|
|
1766
1897
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.fetchAddressVerificationList(requestParameters?.recvWindow);
|
|
1767
|
-
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 });
|
|
1768
1930
|
}
|
|
1769
1931
|
/**
|
|
1770
1932
|
* Submit questionnaire for brokers of local entities that require travel rule.
|
|
@@ -1785,7 +1947,7 @@ var TravelRuleApi = class {
|
|
|
1785
1947
|
*/
|
|
1786
1948
|
async submitDepositQuestionnaire(requestParameters) {
|
|
1787
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);
|
|
1788
|
-
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 });
|
|
1789
1951
|
}
|
|
1790
1952
|
/**
|
|
1791
1953
|
* Submit questionnaire for local entities that require travel rule.
|
|
@@ -1806,7 +1968,7 @@ var TravelRuleApi = class {
|
|
|
1806
1968
|
*/
|
|
1807
1969
|
async submitDepositQuestionnaireTravelRule(requestParameters) {
|
|
1808
1970
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.submitDepositQuestionnaireTravelRule(requestParameters?.tranId, requestParameters?.questionnaire);
|
|
1809
|
-
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 });
|
|
1810
1972
|
}
|
|
1811
1973
|
/**
|
|
1812
1974
|
* Submit questionnaire for local entities that require travel rule.
|
|
@@ -1827,7 +1989,7 @@ var TravelRuleApi = class {
|
|
|
1827
1989
|
*/
|
|
1828
1990
|
async submitDepositQuestionnaireV2(requestParameters) {
|
|
1829
1991
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.submitDepositQuestionnaireV2(requestParameters?.depositId, requestParameters?.questionnaire);
|
|
1830
|
-
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 });
|
|
1831
1993
|
}
|
|
1832
1994
|
/**
|
|
1833
1995
|
* Fetch the VASP list for local entities.
|
|
@@ -1843,7 +2005,7 @@ var TravelRuleApi = class {
|
|
|
1843
2005
|
*/
|
|
1844
2006
|
async vaspList(requestParameters = {}) {
|
|
1845
2007
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.vaspList(requestParameters?.recvWindow);
|
|
1846
|
-
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 });
|
|
1847
2009
|
}
|
|
1848
2010
|
/**
|
|
1849
2011
|
* Fetch withdraw history for local entities that required travel rule.
|
|
@@ -1863,7 +2025,7 @@ var TravelRuleApi = class {
|
|
|
1863
2025
|
*/
|
|
1864
2026
|
async withdrawHistoryV1(requestParameters = {}) {
|
|
1865
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);
|
|
1866
|
-
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 });
|
|
1867
2029
|
}
|
|
1868
2030
|
/**
|
|
1869
2031
|
* Fetch withdraw history for local entities that required travel rule.
|
|
@@ -1889,7 +2051,7 @@ var TravelRuleApi = class {
|
|
|
1889
2051
|
*/
|
|
1890
2052
|
async withdrawHistoryV2(requestParameters = {}) {
|
|
1891
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);
|
|
1892
|
-
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 });
|
|
1893
2055
|
}
|
|
1894
2056
|
/**
|
|
1895
2057
|
* Submit a withdrawal request for local entities that required travel rule.
|
|
@@ -1910,7 +2072,7 @@ var TravelRuleApi = class {
|
|
|
1910
2072
|
*/
|
|
1911
2073
|
async withdrawTravelRule(requestParameters) {
|
|
1912
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);
|
|
1913
|
-
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 });
|
|
1914
2076
|
}
|
|
1915
2077
|
};
|
|
1916
2078
|
|
|
@@ -1947,7 +2109,7 @@ var RestAPI = class {
|
|
|
1947
2109
|
* @returns A promise resolving to the response data object.
|
|
1948
2110
|
*/
|
|
1949
2111
|
sendRequest(endpoint, method, queryParams = {}, bodyParams = {}) {
|
|
1950
|
-
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);
|
|
1951
2113
|
}
|
|
1952
2114
|
/**
|
|
1953
2115
|
* Generic function to send a signed request.
|
|
@@ -1959,7 +2121,7 @@ var RestAPI = class {
|
|
|
1959
2121
|
* @returns A promise resolving to the response data object.
|
|
1960
2122
|
*/
|
|
1961
2123
|
sendSignedRequest(endpoint, method, queryParams = {}, bodyParams = {}) {
|
|
1962
|
-
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 });
|
|
1963
2125
|
}
|
|
1964
2126
|
/**
|
|
1965
2127
|
* Fetch account api trading status detail.
|
|
@@ -2513,6 +2675,9 @@ var RestAPI = class {
|
|
|
2513
2675
|
* If `network` not send, return with default network of the coin.
|
|
2514
2676
|
* You can get `network` and `isDefault` in `networkList` of a coin in the response of `Get /sapi/v1/capital/config/getall (HMAC SHA256)`.
|
|
2515
2677
|
* To check if travel rule is required, by using `GET /sapi/v1/localentity/questionnaire-requirements` and if it returns anything other than `NIL` you will need update SAPI to `POST /sapi/v1/localentity/withdraw/apply` else you can continue `POST /sapi/v1/capital/withdraw/apply`. Please note that if you are required to comply to travel rule please refer to the Travel Rule SAPI.
|
|
2678
|
+
* For networks that do not support memo/tag, submitting a withdrawal request with a non-empty `addressTag` will return error `-4106 TAG_NOT_SUPPORTED_FOR_NETWORK`. Please omit the `addressTag` field for such networks. You can check whether a network requires a tag via `GET /sapi/v1/capital/config/getall`:
|
|
2679
|
+
* If `withdrawTag` = `true` → memo/tag is required.
|
|
2680
|
+
* If `withdrawTag` = `false` → memo/tag is not supported; omit `addressTag`.
|
|
2516
2681
|
*
|
|
2517
2682
|
* Weight: 900
|
|
2518
2683
|
*
|
|
@@ -2667,6 +2832,35 @@ var RestAPI = class {
|
|
|
2667
2832
|
return this.travelRuleApi.fetchAddressVerificationList(requestParameters);
|
|
2668
2833
|
}
|
|
2669
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
|
+
/**
|
|
2670
2864
|
* Submit questionnaire for brokers of local entities that require travel rule.
|
|
2671
2865
|
* The questionnaire is only applies to transactions from un-hosted wallets or VASPs that are not
|
|
2672
2866
|
* yet onboarded with GTR.
|