@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.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import { BadRequestError, ConfigurationRestAPI, ConnectorClientError, ForbiddenE
|
|
|
3
3
|
|
|
4
4
|
//#region package.json
|
|
5
5
|
var name = "@binance/wallet";
|
|
6
|
-
var version = "
|
|
6
|
+
var version = "19.0.0";
|
|
7
7
|
|
|
8
8
|
//#endregion
|
|
9
9
|
//#region src/rest-api/modules/account-api.ts
|
|
@@ -27,6 +27,7 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
27
27
|
accountApiTradingStatus: async (recvWindow) => {
|
|
28
28
|
const localVarQueryParameter = {};
|
|
29
29
|
const localVarBodyParameter = {};
|
|
30
|
+
const localVarHeaderParameter = {};
|
|
30
31
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
31
32
|
let _timeUnit;
|
|
32
33
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
@@ -35,12 +36,14 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
35
36
|
method: "GET",
|
|
36
37
|
queryParams: localVarQueryParameter,
|
|
37
38
|
bodyParams: localVarBodyParameter,
|
|
39
|
+
headerParams: localVarHeaderParameter,
|
|
38
40
|
timeUnit: _timeUnit
|
|
39
41
|
};
|
|
40
42
|
},
|
|
41
43
|
accountInfo: async (recvWindow) => {
|
|
42
44
|
const localVarQueryParameter = {};
|
|
43
45
|
const localVarBodyParameter = {};
|
|
46
|
+
const localVarHeaderParameter = {};
|
|
44
47
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
45
48
|
let _timeUnit;
|
|
46
49
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
@@ -49,12 +52,14 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
49
52
|
method: "GET",
|
|
50
53
|
queryParams: localVarQueryParameter,
|
|
51
54
|
bodyParams: localVarBodyParameter,
|
|
55
|
+
headerParams: localVarHeaderParameter,
|
|
52
56
|
timeUnit: _timeUnit
|
|
53
57
|
};
|
|
54
58
|
},
|
|
55
59
|
accountStatus: async (recvWindow) => {
|
|
56
60
|
const localVarQueryParameter = {};
|
|
57
61
|
const localVarBodyParameter = {};
|
|
62
|
+
const localVarHeaderParameter = {};
|
|
58
63
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
59
64
|
let _timeUnit;
|
|
60
65
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
@@ -63,6 +68,7 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
63
68
|
method: "GET",
|
|
64
69
|
queryParams: localVarQueryParameter,
|
|
65
70
|
bodyParams: localVarBodyParameter,
|
|
71
|
+
headerParams: localVarHeaderParameter,
|
|
66
72
|
timeUnit: _timeUnit
|
|
67
73
|
};
|
|
68
74
|
},
|
|
@@ -70,6 +76,7 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
70
76
|
assertParamExists("dailyAccountSnapshot", "type", type);
|
|
71
77
|
const localVarQueryParameter = {};
|
|
72
78
|
const localVarBodyParameter = {};
|
|
79
|
+
const localVarHeaderParameter = {};
|
|
73
80
|
if (type !== void 0 && type !== null) localVarQueryParameter["type"] = type;
|
|
74
81
|
if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
|
|
75
82
|
if (endTime !== void 0 && endTime !== null) localVarQueryParameter["endTime"] = endTime;
|
|
@@ -82,12 +89,14 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
82
89
|
method: "GET",
|
|
83
90
|
queryParams: localVarQueryParameter,
|
|
84
91
|
bodyParams: localVarBodyParameter,
|
|
92
|
+
headerParams: localVarHeaderParameter,
|
|
85
93
|
timeUnit: _timeUnit
|
|
86
94
|
};
|
|
87
95
|
},
|
|
88
96
|
disableFastWithdrawSwitch: async (recvWindow) => {
|
|
89
97
|
const localVarQueryParameter = {};
|
|
90
98
|
const localVarBodyParameter = {};
|
|
99
|
+
const localVarHeaderParameter = {};
|
|
91
100
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
92
101
|
let _timeUnit;
|
|
93
102
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
@@ -96,12 +105,14 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
96
105
|
method: "POST",
|
|
97
106
|
queryParams: localVarQueryParameter,
|
|
98
107
|
bodyParams: localVarBodyParameter,
|
|
108
|
+
headerParams: localVarHeaderParameter,
|
|
99
109
|
timeUnit: _timeUnit
|
|
100
110
|
};
|
|
101
111
|
},
|
|
102
112
|
enableFastWithdrawSwitch: async (recvWindow) => {
|
|
103
113
|
const localVarQueryParameter = {};
|
|
104
114
|
const localVarBodyParameter = {};
|
|
115
|
+
const localVarHeaderParameter = {};
|
|
105
116
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
106
117
|
let _timeUnit;
|
|
107
118
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
@@ -110,12 +121,14 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
110
121
|
method: "POST",
|
|
111
122
|
queryParams: localVarQueryParameter,
|
|
112
123
|
bodyParams: localVarBodyParameter,
|
|
124
|
+
headerParams: localVarHeaderParameter,
|
|
113
125
|
timeUnit: _timeUnit
|
|
114
126
|
};
|
|
115
127
|
},
|
|
116
128
|
getApiKeyPermission: async (recvWindow) => {
|
|
117
129
|
const localVarQueryParameter = {};
|
|
118
130
|
const localVarBodyParameter = {};
|
|
131
|
+
const localVarHeaderParameter = {};
|
|
119
132
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
120
133
|
let _timeUnit;
|
|
121
134
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
@@ -124,6 +137,7 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
124
137
|
method: "GET",
|
|
125
138
|
queryParams: localVarQueryParameter,
|
|
126
139
|
bodyParams: localVarBodyParameter,
|
|
140
|
+
headerParams: localVarHeaderParameter,
|
|
127
141
|
timeUnit: _timeUnit
|
|
128
142
|
};
|
|
129
143
|
}
|
|
@@ -152,7 +166,7 @@ var AccountApi = class {
|
|
|
152
166
|
*/
|
|
153
167
|
async accountApiTradingStatus(requestParameters = {}) {
|
|
154
168
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.accountApiTradingStatus(requestParameters?.recvWindow);
|
|
155
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
169
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
156
170
|
}
|
|
157
171
|
/**
|
|
158
172
|
* Fetch account info detail.
|
|
@@ -168,7 +182,7 @@ var AccountApi = class {
|
|
|
168
182
|
*/
|
|
169
183
|
async accountInfo(requestParameters = {}) {
|
|
170
184
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.accountInfo(requestParameters?.recvWindow);
|
|
171
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
185
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
172
186
|
}
|
|
173
187
|
/**
|
|
174
188
|
* Fetch account status detail.
|
|
@@ -184,7 +198,7 @@ var AccountApi = class {
|
|
|
184
198
|
*/
|
|
185
199
|
async accountStatus(requestParameters = {}) {
|
|
186
200
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.accountStatus(requestParameters?.recvWindow);
|
|
187
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
201
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
188
202
|
}
|
|
189
203
|
/**
|
|
190
204
|
* Daily account snapshot
|
|
@@ -204,7 +218,7 @@ var AccountApi = class {
|
|
|
204
218
|
*/
|
|
205
219
|
async dailyAccountSnapshot(requestParameters) {
|
|
206
220
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.dailyAccountSnapshot(requestParameters?.type, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.limit, requestParameters?.recvWindow);
|
|
207
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
221
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
208
222
|
}
|
|
209
223
|
/**
|
|
210
224
|
*
|
|
@@ -219,7 +233,7 @@ var AccountApi = class {
|
|
|
219
233
|
*/
|
|
220
234
|
async disableFastWithdrawSwitch(requestParameters = {}) {
|
|
221
235
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.disableFastWithdrawSwitch(requestParameters?.recvWindow);
|
|
222
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
236
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
223
237
|
}
|
|
224
238
|
/**
|
|
225
239
|
* Enable Fast Withdraw Switch (USER_DATA)
|
|
@@ -238,7 +252,7 @@ var AccountApi = class {
|
|
|
238
252
|
*/
|
|
239
253
|
async enableFastWithdrawSwitch(requestParameters = {}) {
|
|
240
254
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.enableFastWithdrawSwitch(requestParameters?.recvWindow);
|
|
241
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
255
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
242
256
|
}
|
|
243
257
|
/**
|
|
244
258
|
* Get API Key Permission
|
|
@@ -254,7 +268,7 @@ var AccountApi = class {
|
|
|
254
268
|
*/
|
|
255
269
|
async getApiKeyPermission(requestParameters = {}) {
|
|
256
270
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getApiKeyPermission(requestParameters?.recvWindow);
|
|
257
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
271
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
258
272
|
}
|
|
259
273
|
};
|
|
260
274
|
|
|
@@ -280,6 +294,7 @@ const AssetApiAxiosParamCreator = function(configuration) {
|
|
|
280
294
|
assetDetail: async (asset, recvWindow) => {
|
|
281
295
|
const localVarQueryParameter = {};
|
|
282
296
|
const localVarBodyParameter = {};
|
|
297
|
+
const localVarHeaderParameter = {};
|
|
283
298
|
if (asset !== void 0 && asset !== null) localVarQueryParameter["asset"] = asset;
|
|
284
299
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
285
300
|
let _timeUnit;
|
|
@@ -289,12 +304,14 @@ const AssetApiAxiosParamCreator = function(configuration) {
|
|
|
289
304
|
method: "GET",
|
|
290
305
|
queryParams: localVarQueryParameter,
|
|
291
306
|
bodyParams: localVarBodyParameter,
|
|
307
|
+
headerParams: localVarHeaderParameter,
|
|
292
308
|
timeUnit: _timeUnit
|
|
293
309
|
};
|
|
294
310
|
},
|
|
295
311
|
assetDividendRecord: async (asset, startTime, endTime, limit, recvWindow) => {
|
|
296
312
|
const localVarQueryParameter = {};
|
|
297
313
|
const localVarBodyParameter = {};
|
|
314
|
+
const localVarHeaderParameter = {};
|
|
298
315
|
if (asset !== void 0 && asset !== null) localVarQueryParameter["asset"] = asset;
|
|
299
316
|
if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
|
|
300
317
|
if (endTime !== void 0 && endTime !== null) localVarQueryParameter["endTime"] = endTime;
|
|
@@ -307,14 +324,17 @@ const AssetApiAxiosParamCreator = function(configuration) {
|
|
|
307
324
|
method: "GET",
|
|
308
325
|
queryParams: localVarQueryParameter,
|
|
309
326
|
bodyParams: localVarBodyParameter,
|
|
327
|
+
headerParams: localVarHeaderParameter,
|
|
310
328
|
timeUnit: _timeUnit
|
|
311
329
|
};
|
|
312
330
|
},
|
|
313
|
-
dustConvert: async (asset, clientId, targetAsset, thirdPartyClientId, dustQuotaAssetToTargetAssetPrice) => {
|
|
331
|
+
dustConvert: async (asset, accountType, clientId, targetAsset, thirdPartyClientId, dustQuotaAssetToTargetAssetPrice) => {
|
|
314
332
|
assertParamExists("dustConvert", "asset", asset);
|
|
315
333
|
const localVarQueryParameter = {};
|
|
316
334
|
const localVarBodyParameter = {};
|
|
335
|
+
const localVarHeaderParameter = {};
|
|
317
336
|
if (asset !== void 0 && asset !== null) localVarQueryParameter["asset"] = asset;
|
|
337
|
+
if (accountType !== void 0 && accountType !== null) localVarQueryParameter["accountType"] = accountType;
|
|
318
338
|
if (clientId !== void 0 && clientId !== null) localVarQueryParameter["clientId"] = clientId;
|
|
319
339
|
if (targetAsset !== void 0 && targetAsset !== null) localVarQueryParameter["targetAsset"] = targetAsset;
|
|
320
340
|
if (thirdPartyClientId !== void 0 && thirdPartyClientId !== null) localVarQueryParameter["thirdPartyClientId"] = thirdPartyClientId;
|
|
@@ -326,13 +346,16 @@ const AssetApiAxiosParamCreator = function(configuration) {
|
|
|
326
346
|
method: "POST",
|
|
327
347
|
queryParams: localVarQueryParameter,
|
|
328
348
|
bodyParams: localVarBodyParameter,
|
|
349
|
+
headerParams: localVarHeaderParameter,
|
|
329
350
|
timeUnit: _timeUnit
|
|
330
351
|
};
|
|
331
352
|
},
|
|
332
|
-
dustConvertibleAssets: async (targetAsset, dustQuotaAssetToTargetAssetPrice) => {
|
|
353
|
+
dustConvertibleAssets: async (targetAsset, accountType, dustQuotaAssetToTargetAssetPrice) => {
|
|
333
354
|
assertParamExists("dustConvertibleAssets", "targetAsset", targetAsset);
|
|
334
355
|
const localVarQueryParameter = {};
|
|
335
356
|
const localVarBodyParameter = {};
|
|
357
|
+
const localVarHeaderParameter = {};
|
|
358
|
+
if (accountType !== void 0 && accountType !== null) localVarQueryParameter["accountType"] = accountType;
|
|
336
359
|
if (targetAsset !== void 0 && targetAsset !== null) localVarQueryParameter["targetAsset"] = targetAsset;
|
|
337
360
|
if (dustQuotaAssetToTargetAssetPrice !== void 0 && dustQuotaAssetToTargetAssetPrice !== null) localVarQueryParameter["dustQuotaAssetToTargetAssetPrice"] = dustQuotaAssetToTargetAssetPrice;
|
|
338
361
|
let _timeUnit;
|
|
@@ -342,6 +365,7 @@ const AssetApiAxiosParamCreator = function(configuration) {
|
|
|
342
365
|
method: "POST",
|
|
343
366
|
queryParams: localVarQueryParameter,
|
|
344
367
|
bodyParams: localVarBodyParameter,
|
|
368
|
+
headerParams: localVarHeaderParameter,
|
|
345
369
|
timeUnit: _timeUnit
|
|
346
370
|
};
|
|
347
371
|
},
|
|
@@ -349,6 +373,7 @@ const AssetApiAxiosParamCreator = function(configuration) {
|
|
|
349
373
|
assertParamExists("dustTransfer", "asset", asset);
|
|
350
374
|
const localVarQueryParameter = {};
|
|
351
375
|
const localVarBodyParameter = {};
|
|
376
|
+
const localVarHeaderParameter = {};
|
|
352
377
|
if (asset !== void 0 && asset !== null) localVarQueryParameter["asset"] = asset;
|
|
353
378
|
if (accountType !== void 0 && accountType !== null) localVarQueryParameter["accountType"] = accountType;
|
|
354
379
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
@@ -359,12 +384,14 @@ const AssetApiAxiosParamCreator = function(configuration) {
|
|
|
359
384
|
method: "POST",
|
|
360
385
|
queryParams: localVarQueryParameter,
|
|
361
386
|
bodyParams: localVarBodyParameter,
|
|
387
|
+
headerParams: localVarHeaderParameter,
|
|
362
388
|
timeUnit: _timeUnit
|
|
363
389
|
};
|
|
364
390
|
},
|
|
365
391
|
dustlog: async (accountType, startTime, endTime, recvWindow) => {
|
|
366
392
|
const localVarQueryParameter = {};
|
|
367
393
|
const localVarBodyParameter = {};
|
|
394
|
+
const localVarHeaderParameter = {};
|
|
368
395
|
if (accountType !== void 0 && accountType !== null) localVarQueryParameter["accountType"] = accountType;
|
|
369
396
|
if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
|
|
370
397
|
if (endTime !== void 0 && endTime !== null) localVarQueryParameter["endTime"] = endTime;
|
|
@@ -376,12 +403,14 @@ const AssetApiAxiosParamCreator = function(configuration) {
|
|
|
376
403
|
method: "GET",
|
|
377
404
|
queryParams: localVarQueryParameter,
|
|
378
405
|
bodyParams: localVarBodyParameter,
|
|
406
|
+
headerParams: localVarHeaderParameter,
|
|
379
407
|
timeUnit: _timeUnit
|
|
380
408
|
};
|
|
381
409
|
},
|
|
382
410
|
fundingWallet: async (asset, needBtcValuation, recvWindow) => {
|
|
383
411
|
const localVarQueryParameter = {};
|
|
384
412
|
const localVarBodyParameter = {};
|
|
413
|
+
const localVarHeaderParameter = {};
|
|
385
414
|
if (asset !== void 0 && asset !== null) localVarQueryParameter["asset"] = asset;
|
|
386
415
|
if (needBtcValuation !== void 0 && needBtcValuation !== null) localVarQueryParameter["needBtcValuation"] = needBtcValuation;
|
|
387
416
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
@@ -392,12 +421,14 @@ const AssetApiAxiosParamCreator = function(configuration) {
|
|
|
392
421
|
method: "POST",
|
|
393
422
|
queryParams: localVarQueryParameter,
|
|
394
423
|
bodyParams: localVarBodyParameter,
|
|
424
|
+
headerParams: localVarHeaderParameter,
|
|
395
425
|
timeUnit: _timeUnit
|
|
396
426
|
};
|
|
397
427
|
},
|
|
398
428
|
getAssetsThatCanBeConvertedIntoBnb: async (accountType, recvWindow) => {
|
|
399
429
|
const localVarQueryParameter = {};
|
|
400
430
|
const localVarBodyParameter = {};
|
|
431
|
+
const localVarHeaderParameter = {};
|
|
401
432
|
if (accountType !== void 0 && accountType !== null) localVarQueryParameter["accountType"] = accountType;
|
|
402
433
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
403
434
|
let _timeUnit;
|
|
@@ -407,6 +438,7 @@ const AssetApiAxiosParamCreator = function(configuration) {
|
|
|
407
438
|
method: "POST",
|
|
408
439
|
queryParams: localVarQueryParameter,
|
|
409
440
|
bodyParams: localVarBodyParameter,
|
|
441
|
+
headerParams: localVarHeaderParameter,
|
|
410
442
|
timeUnit: _timeUnit
|
|
411
443
|
};
|
|
412
444
|
},
|
|
@@ -415,6 +447,7 @@ const AssetApiAxiosParamCreator = function(configuration) {
|
|
|
415
447
|
assertParamExists("getCloudMiningPaymentAndRefundHistory", "endTime", endTime);
|
|
416
448
|
const localVarQueryParameter = {};
|
|
417
449
|
const localVarBodyParameter = {};
|
|
450
|
+
const localVarHeaderParameter = {};
|
|
418
451
|
if (tranId !== void 0 && tranId !== null) localVarQueryParameter["tranId"] = tranId;
|
|
419
452
|
if (clientTranId !== void 0 && clientTranId !== null) localVarQueryParameter["clientTranId"] = clientTranId;
|
|
420
453
|
if (asset !== void 0 && asset !== null) localVarQueryParameter["asset"] = asset;
|
|
@@ -429,12 +462,14 @@ const AssetApiAxiosParamCreator = function(configuration) {
|
|
|
429
462
|
method: "GET",
|
|
430
463
|
queryParams: localVarQueryParameter,
|
|
431
464
|
bodyParams: localVarBodyParameter,
|
|
465
|
+
headerParams: localVarHeaderParameter,
|
|
432
466
|
timeUnit: _timeUnit
|
|
433
467
|
};
|
|
434
468
|
},
|
|
435
469
|
getOpenSymbolList: async () => {
|
|
436
470
|
const localVarQueryParameter = {};
|
|
437
471
|
const localVarBodyParameter = {};
|
|
472
|
+
const localVarHeaderParameter = {};
|
|
438
473
|
let _timeUnit;
|
|
439
474
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
440
475
|
return {
|
|
@@ -442,6 +477,7 @@ const AssetApiAxiosParamCreator = function(configuration) {
|
|
|
442
477
|
method: "GET",
|
|
443
478
|
queryParams: localVarQueryParameter,
|
|
444
479
|
bodyParams: localVarBodyParameter,
|
|
480
|
+
headerParams: localVarHeaderParameter,
|
|
445
481
|
timeUnit: _timeUnit
|
|
446
482
|
};
|
|
447
483
|
},
|
|
@@ -451,6 +487,7 @@ const AssetApiAxiosParamCreator = function(configuration) {
|
|
|
451
487
|
assertParamExists("queryUserDelegationHistory", "endTime", endTime);
|
|
452
488
|
const localVarQueryParameter = {};
|
|
453
489
|
const localVarBodyParameter = {};
|
|
490
|
+
const localVarHeaderParameter = {};
|
|
454
491
|
if (email !== void 0 && email !== null) localVarQueryParameter["email"] = email;
|
|
455
492
|
if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
|
|
456
493
|
if (endTime !== void 0 && endTime !== null) localVarQueryParameter["endTime"] = endTime;
|
|
@@ -466,6 +503,7 @@ const AssetApiAxiosParamCreator = function(configuration) {
|
|
|
466
503
|
method: "GET",
|
|
467
504
|
queryParams: localVarQueryParameter,
|
|
468
505
|
bodyParams: localVarBodyParameter,
|
|
506
|
+
headerParams: localVarHeaderParameter,
|
|
469
507
|
timeUnit: _timeUnit
|
|
470
508
|
};
|
|
471
509
|
},
|
|
@@ -473,6 +511,7 @@ const AssetApiAxiosParamCreator = function(configuration) {
|
|
|
473
511
|
assertParamExists("queryUserUniversalTransferHistory", "type", type);
|
|
474
512
|
const localVarQueryParameter = {};
|
|
475
513
|
const localVarBodyParameter = {};
|
|
514
|
+
const localVarHeaderParameter = {};
|
|
476
515
|
if (type !== void 0 && type !== null) localVarQueryParameter["type"] = type;
|
|
477
516
|
if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
|
|
478
517
|
if (endTime !== void 0 && endTime !== null) localVarQueryParameter["endTime"] = endTime;
|
|
@@ -488,12 +527,14 @@ const AssetApiAxiosParamCreator = function(configuration) {
|
|
|
488
527
|
method: "GET",
|
|
489
528
|
queryParams: localVarQueryParameter,
|
|
490
529
|
bodyParams: localVarBodyParameter,
|
|
530
|
+
headerParams: localVarHeaderParameter,
|
|
491
531
|
timeUnit: _timeUnit
|
|
492
532
|
};
|
|
493
533
|
},
|
|
494
534
|
queryUserWalletBalance: async (quoteAsset, recvWindow) => {
|
|
495
535
|
const localVarQueryParameter = {};
|
|
496
536
|
const localVarBodyParameter = {};
|
|
537
|
+
const localVarHeaderParameter = {};
|
|
497
538
|
if (quoteAsset !== void 0 && quoteAsset !== null) localVarQueryParameter["quoteAsset"] = quoteAsset;
|
|
498
539
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
499
540
|
let _timeUnit;
|
|
@@ -503,12 +544,14 @@ const AssetApiAxiosParamCreator = function(configuration) {
|
|
|
503
544
|
method: "GET",
|
|
504
545
|
queryParams: localVarQueryParameter,
|
|
505
546
|
bodyParams: localVarBodyParameter,
|
|
547
|
+
headerParams: localVarHeaderParameter,
|
|
506
548
|
timeUnit: _timeUnit
|
|
507
549
|
};
|
|
508
550
|
},
|
|
509
551
|
toggleBnbBurnOnSpotTradeAndMarginInterest: async (spotBNBBurn, interestBNBBurn, recvWindow) => {
|
|
510
552
|
const localVarQueryParameter = {};
|
|
511
553
|
const localVarBodyParameter = {};
|
|
554
|
+
const localVarHeaderParameter = {};
|
|
512
555
|
if (spotBNBBurn !== void 0 && spotBNBBurn !== null) localVarQueryParameter["spotBNBBurn"] = spotBNBBurn;
|
|
513
556
|
if (interestBNBBurn !== void 0 && interestBNBBurn !== null) localVarQueryParameter["interestBNBBurn"] = interestBNBBurn;
|
|
514
557
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
@@ -519,12 +562,14 @@ const AssetApiAxiosParamCreator = function(configuration) {
|
|
|
519
562
|
method: "POST",
|
|
520
563
|
queryParams: localVarQueryParameter,
|
|
521
564
|
bodyParams: localVarBodyParameter,
|
|
565
|
+
headerParams: localVarHeaderParameter,
|
|
522
566
|
timeUnit: _timeUnit
|
|
523
567
|
};
|
|
524
568
|
},
|
|
525
569
|
tradeFee: async (symbol, recvWindow) => {
|
|
526
570
|
const localVarQueryParameter = {};
|
|
527
571
|
const localVarBodyParameter = {};
|
|
572
|
+
const localVarHeaderParameter = {};
|
|
528
573
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
529
574
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
530
575
|
let _timeUnit;
|
|
@@ -534,12 +579,14 @@ const AssetApiAxiosParamCreator = function(configuration) {
|
|
|
534
579
|
method: "GET",
|
|
535
580
|
queryParams: localVarQueryParameter,
|
|
536
581
|
bodyParams: localVarBodyParameter,
|
|
582
|
+
headerParams: localVarHeaderParameter,
|
|
537
583
|
timeUnit: _timeUnit
|
|
538
584
|
};
|
|
539
585
|
},
|
|
540
586
|
userAsset: async (asset, needBtcValuation, recvWindow) => {
|
|
541
587
|
const localVarQueryParameter = {};
|
|
542
588
|
const localVarBodyParameter = {};
|
|
589
|
+
const localVarHeaderParameter = {};
|
|
543
590
|
if (asset !== void 0 && asset !== null) localVarQueryParameter["asset"] = asset;
|
|
544
591
|
if (needBtcValuation !== void 0 && needBtcValuation !== null) localVarQueryParameter["needBtcValuation"] = needBtcValuation;
|
|
545
592
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
@@ -550,6 +597,7 @@ const AssetApiAxiosParamCreator = function(configuration) {
|
|
|
550
597
|
method: "POST",
|
|
551
598
|
queryParams: localVarQueryParameter,
|
|
552
599
|
bodyParams: localVarBodyParameter,
|
|
600
|
+
headerParams: localVarHeaderParameter,
|
|
553
601
|
timeUnit: _timeUnit
|
|
554
602
|
};
|
|
555
603
|
},
|
|
@@ -559,6 +607,7 @@ const AssetApiAxiosParamCreator = function(configuration) {
|
|
|
559
607
|
assertParamExists("userUniversalTransfer", "amount", amount);
|
|
560
608
|
const localVarQueryParameter = {};
|
|
561
609
|
const localVarBodyParameter = {};
|
|
610
|
+
const localVarHeaderParameter = {};
|
|
562
611
|
if (type !== void 0 && type !== null) localVarQueryParameter["type"] = type;
|
|
563
612
|
if (asset !== void 0 && asset !== null) localVarQueryParameter["asset"] = asset;
|
|
564
613
|
if (amount !== void 0 && amount !== null) localVarQueryParameter["amount"] = amount;
|
|
@@ -572,6 +621,7 @@ const AssetApiAxiosParamCreator = function(configuration) {
|
|
|
572
621
|
method: "POST",
|
|
573
622
|
queryParams: localVarQueryParameter,
|
|
574
623
|
bodyParams: localVarBodyParameter,
|
|
624
|
+
headerParams: localVarHeaderParameter,
|
|
575
625
|
timeUnit: _timeUnit
|
|
576
626
|
};
|
|
577
627
|
}
|
|
@@ -603,7 +653,7 @@ var AssetApi = class {
|
|
|
603
653
|
*/
|
|
604
654
|
async assetDetail(requestParameters = {}) {
|
|
605
655
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.assetDetail(requestParameters?.asset, requestParameters?.recvWindow);
|
|
606
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
656
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
607
657
|
}
|
|
608
658
|
/**
|
|
609
659
|
* Query asset dividend record.
|
|
@@ -622,7 +672,7 @@ var AssetApi = class {
|
|
|
622
672
|
*/
|
|
623
673
|
async assetDividendRecord(requestParameters = {}) {
|
|
624
674
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.assetDividendRecord(requestParameters?.asset, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.limit, requestParameters?.recvWindow);
|
|
625
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
675
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
626
676
|
}
|
|
627
677
|
/**
|
|
628
678
|
* Convert dust assets
|
|
@@ -637,8 +687,8 @@ var AssetApi = class {
|
|
|
637
687
|
* @see {@link https://developers.binance.com/docs/wallet/asset/Dust-Convert Binance API Documentation}
|
|
638
688
|
*/
|
|
639
689
|
async dustConvert(requestParameters) {
|
|
640
|
-
const localVarAxiosArgs = await this.localVarAxiosParamCreator.dustConvert(requestParameters?.asset, requestParameters?.clientId, requestParameters?.targetAsset, requestParameters?.thirdPartyClientId, requestParameters?.dustQuotaAssetToTargetAssetPrice);
|
|
641
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
690
|
+
const localVarAxiosArgs = await this.localVarAxiosParamCreator.dustConvert(requestParameters?.asset, requestParameters?.accountType, requestParameters?.clientId, requestParameters?.targetAsset, requestParameters?.thirdPartyClientId, requestParameters?.dustQuotaAssetToTargetAssetPrice);
|
|
691
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
642
692
|
}
|
|
643
693
|
/**
|
|
644
694
|
* Query dust convertible assets
|
|
@@ -653,8 +703,8 @@ var AssetApi = class {
|
|
|
653
703
|
* @see {@link https://developers.binance.com/docs/wallet/asset/Dust-Convertible-Assets Binance API Documentation}
|
|
654
704
|
*/
|
|
655
705
|
async dustConvertibleAssets(requestParameters) {
|
|
656
|
-
const localVarAxiosArgs = await this.localVarAxiosParamCreator.dustConvertibleAssets(requestParameters?.targetAsset, requestParameters?.dustQuotaAssetToTargetAssetPrice);
|
|
657
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
706
|
+
const localVarAxiosArgs = await this.localVarAxiosParamCreator.dustConvertibleAssets(requestParameters?.targetAsset, requestParameters?.accountType, requestParameters?.dustQuotaAssetToTargetAssetPrice);
|
|
707
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
658
708
|
}
|
|
659
709
|
/**
|
|
660
710
|
* Convert dust assets to BNB.
|
|
@@ -672,7 +722,7 @@ var AssetApi = class {
|
|
|
672
722
|
*/
|
|
673
723
|
async dustTransfer(requestParameters) {
|
|
674
724
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.dustTransfer(requestParameters?.asset, requestParameters?.accountType, requestParameters?.recvWindow);
|
|
675
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
725
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
676
726
|
}
|
|
677
727
|
/**
|
|
678
728
|
* Dustlog
|
|
@@ -691,7 +741,7 @@ var AssetApi = class {
|
|
|
691
741
|
*/
|
|
692
742
|
async dustlog(requestParameters = {}) {
|
|
693
743
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.dustlog(requestParameters?.accountType, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.recvWindow);
|
|
694
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
744
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
695
745
|
}
|
|
696
746
|
/**
|
|
697
747
|
* Query Funding Wallet
|
|
@@ -710,7 +760,7 @@ var AssetApi = class {
|
|
|
710
760
|
*/
|
|
711
761
|
async fundingWallet(requestParameters = {}) {
|
|
712
762
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.fundingWallet(requestParameters?.asset, requestParameters?.needBtcValuation, requestParameters?.recvWindow);
|
|
713
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
763
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
714
764
|
}
|
|
715
765
|
/**
|
|
716
766
|
* Get Assets That Can Be Converted Into BNB
|
|
@@ -726,7 +776,7 @@ var AssetApi = class {
|
|
|
726
776
|
*/
|
|
727
777
|
async getAssetsThatCanBeConvertedIntoBnb(requestParameters = {}) {
|
|
728
778
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getAssetsThatCanBeConvertedIntoBnb(requestParameters?.accountType, requestParameters?.recvWindow);
|
|
729
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
779
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
730
780
|
}
|
|
731
781
|
/**
|
|
732
782
|
* The query of Cloud-Mining payment and refund history
|
|
@@ -745,7 +795,7 @@ var AssetApi = class {
|
|
|
745
795
|
*/
|
|
746
796
|
async getCloudMiningPaymentAndRefundHistory(requestParameters) {
|
|
747
797
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getCloudMiningPaymentAndRefundHistory(requestParameters?.startTime, requestParameters?.endTime, requestParameters?.tranId, requestParameters?.clientTranId, requestParameters?.asset, requestParameters?.current, requestParameters?.size);
|
|
748
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
798
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
749
799
|
}
|
|
750
800
|
/**
|
|
751
801
|
* Get the list of symbols that are scheduled to be opened for trading in the market.
|
|
@@ -760,7 +810,7 @@ var AssetApi = class {
|
|
|
760
810
|
*/
|
|
761
811
|
async getOpenSymbolList() {
|
|
762
812
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getOpenSymbolList();
|
|
763
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
813
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
764
814
|
}
|
|
765
815
|
/**
|
|
766
816
|
* Query User Delegation History
|
|
@@ -776,7 +826,7 @@ var AssetApi = class {
|
|
|
776
826
|
*/
|
|
777
827
|
async queryUserDelegationHistory(requestParameters) {
|
|
778
828
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryUserDelegationHistory(requestParameters?.email, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.type, requestParameters?.asset, requestParameters?.current, requestParameters?.size, requestParameters?.recvWindow);
|
|
779
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
829
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
780
830
|
}
|
|
781
831
|
/**
|
|
782
832
|
* Query User Universal Transfer History
|
|
@@ -798,7 +848,7 @@ var AssetApi = class {
|
|
|
798
848
|
*/
|
|
799
849
|
async queryUserUniversalTransferHistory(requestParameters) {
|
|
800
850
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryUserUniversalTransferHistory(requestParameters?.type, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.current, requestParameters?.size, requestParameters?.fromSymbol, requestParameters?.toSymbol, requestParameters?.recvWindow);
|
|
801
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
851
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
802
852
|
}
|
|
803
853
|
/**
|
|
804
854
|
* Query User Wallet Balance
|
|
@@ -814,7 +864,7 @@ var AssetApi = class {
|
|
|
814
864
|
*/
|
|
815
865
|
async queryUserWalletBalance(requestParameters = {}) {
|
|
816
866
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryUserWalletBalance(requestParameters?.quoteAsset, requestParameters?.recvWindow);
|
|
817
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
867
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
818
868
|
}
|
|
819
869
|
/**
|
|
820
870
|
* Toggle BNB Burn On Spot Trade And Margin Interest
|
|
@@ -832,7 +882,7 @@ var AssetApi = class {
|
|
|
832
882
|
*/
|
|
833
883
|
async toggleBnbBurnOnSpotTradeAndMarginInterest(requestParameters = {}) {
|
|
834
884
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.toggleBnbBurnOnSpotTradeAndMarginInterest(requestParameters?.spotBNBBurn, requestParameters?.interestBNBBurn, requestParameters?.recvWindow);
|
|
835
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
885
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
836
886
|
}
|
|
837
887
|
/**
|
|
838
888
|
* Fetch trade fee
|
|
@@ -848,7 +898,7 @@ var AssetApi = class {
|
|
|
848
898
|
*/
|
|
849
899
|
async tradeFee(requestParameters = {}) {
|
|
850
900
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.tradeFee(requestParameters?.symbol, requestParameters?.recvWindow);
|
|
851
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
901
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
852
902
|
}
|
|
853
903
|
/**
|
|
854
904
|
* Get user assets, just for positive data.
|
|
@@ -867,7 +917,7 @@ var AssetApi = class {
|
|
|
867
917
|
*/
|
|
868
918
|
async userAsset(requestParameters = {}) {
|
|
869
919
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.userAsset(requestParameters?.asset, requestParameters?.needBtcValuation, requestParameters?.recvWindow);
|
|
870
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
920
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
871
921
|
}
|
|
872
922
|
/**
|
|
873
923
|
* user universal transfer
|
|
@@ -918,7 +968,7 @@ var AssetApi = class {
|
|
|
918
968
|
*/
|
|
919
969
|
async userUniversalTransfer(requestParameters) {
|
|
920
970
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.userUniversalTransfer(requestParameters?.type, requestParameters?.asset, requestParameters?.amount, requestParameters?.fromSymbol, requestParameters?.toSymbol, requestParameters?.recvWindow);
|
|
921
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
971
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
922
972
|
}
|
|
923
973
|
};
|
|
924
974
|
|
|
@@ -944,6 +994,7 @@ const CapitalApiAxiosParamCreator = function(configuration) {
|
|
|
944
994
|
allCoinsInformation: async (recvWindow) => {
|
|
945
995
|
const localVarQueryParameter = {};
|
|
946
996
|
const localVarBodyParameter = {};
|
|
997
|
+
const localVarHeaderParameter = {};
|
|
947
998
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
948
999
|
let _timeUnit;
|
|
949
1000
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
@@ -952,6 +1003,7 @@ const CapitalApiAxiosParamCreator = function(configuration) {
|
|
|
952
1003
|
method: "GET",
|
|
953
1004
|
queryParams: localVarQueryParameter,
|
|
954
1005
|
bodyParams: localVarBodyParameter,
|
|
1006
|
+
headerParams: localVarHeaderParameter,
|
|
955
1007
|
timeUnit: _timeUnit
|
|
956
1008
|
};
|
|
957
1009
|
},
|
|
@@ -959,6 +1011,7 @@ const CapitalApiAxiosParamCreator = function(configuration) {
|
|
|
959
1011
|
assertParamExists("depositAddress", "coin", coin);
|
|
960
1012
|
const localVarQueryParameter = {};
|
|
961
1013
|
const localVarBodyParameter = {};
|
|
1014
|
+
const localVarHeaderParameter = {};
|
|
962
1015
|
if (coin !== void 0 && coin !== null) localVarQueryParameter["coin"] = coin;
|
|
963
1016
|
if (network !== void 0 && network !== null) localVarQueryParameter["network"] = network;
|
|
964
1017
|
if (amount !== void 0 && amount !== null) localVarQueryParameter["amount"] = amount;
|
|
@@ -970,12 +1023,14 @@ const CapitalApiAxiosParamCreator = function(configuration) {
|
|
|
970
1023
|
method: "GET",
|
|
971
1024
|
queryParams: localVarQueryParameter,
|
|
972
1025
|
bodyParams: localVarBodyParameter,
|
|
1026
|
+
headerParams: localVarHeaderParameter,
|
|
973
1027
|
timeUnit: _timeUnit
|
|
974
1028
|
};
|
|
975
1029
|
},
|
|
976
1030
|
depositHistory: async (includeSource, coin, status, startTime, endTime, offset, limit, recvWindow, txId) => {
|
|
977
1031
|
const localVarQueryParameter = {};
|
|
978
1032
|
const localVarBodyParameter = {};
|
|
1033
|
+
const localVarHeaderParameter = {};
|
|
979
1034
|
if (includeSource !== void 0 && includeSource !== null) localVarQueryParameter["includeSource"] = includeSource;
|
|
980
1035
|
if (coin !== void 0 && coin !== null) localVarQueryParameter["coin"] = coin;
|
|
981
1036
|
if (status !== void 0 && status !== null) localVarQueryParameter["status"] = status;
|
|
@@ -992,6 +1047,7 @@ const CapitalApiAxiosParamCreator = function(configuration) {
|
|
|
992
1047
|
method: "GET",
|
|
993
1048
|
queryParams: localVarQueryParameter,
|
|
994
1049
|
bodyParams: localVarBodyParameter,
|
|
1050
|
+
headerParams: localVarHeaderParameter,
|
|
995
1051
|
timeUnit: _timeUnit
|
|
996
1052
|
};
|
|
997
1053
|
},
|
|
@@ -999,6 +1055,7 @@ const CapitalApiAxiosParamCreator = function(configuration) {
|
|
|
999
1055
|
assertParamExists("fetchDepositAddressListWithNetwork", "coin", coin);
|
|
1000
1056
|
const localVarQueryParameter = {};
|
|
1001
1057
|
const localVarBodyParameter = {};
|
|
1058
|
+
const localVarHeaderParameter = {};
|
|
1002
1059
|
if (coin !== void 0 && coin !== null) localVarQueryParameter["coin"] = coin;
|
|
1003
1060
|
if (network !== void 0 && network !== null) localVarQueryParameter["network"] = network;
|
|
1004
1061
|
let _timeUnit;
|
|
@@ -1008,12 +1065,14 @@ const CapitalApiAxiosParamCreator = function(configuration) {
|
|
|
1008
1065
|
method: "GET",
|
|
1009
1066
|
queryParams: localVarQueryParameter,
|
|
1010
1067
|
bodyParams: localVarBodyParameter,
|
|
1068
|
+
headerParams: localVarHeaderParameter,
|
|
1011
1069
|
timeUnit: _timeUnit
|
|
1012
1070
|
};
|
|
1013
1071
|
},
|
|
1014
1072
|
fetchWithdrawAddressList: async () => {
|
|
1015
1073
|
const localVarQueryParameter = {};
|
|
1016
1074
|
const localVarBodyParameter = {};
|
|
1075
|
+
const localVarHeaderParameter = {};
|
|
1017
1076
|
let _timeUnit;
|
|
1018
1077
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
1019
1078
|
return {
|
|
@@ -1021,12 +1080,14 @@ const CapitalApiAxiosParamCreator = function(configuration) {
|
|
|
1021
1080
|
method: "GET",
|
|
1022
1081
|
queryParams: localVarQueryParameter,
|
|
1023
1082
|
bodyParams: localVarBodyParameter,
|
|
1083
|
+
headerParams: localVarHeaderParameter,
|
|
1024
1084
|
timeUnit: _timeUnit
|
|
1025
1085
|
};
|
|
1026
1086
|
},
|
|
1027
1087
|
fetchWithdrawQuota: async () => {
|
|
1028
1088
|
const localVarQueryParameter = {};
|
|
1029
1089
|
const localVarBodyParameter = {};
|
|
1090
|
+
const localVarHeaderParameter = {};
|
|
1030
1091
|
let _timeUnit;
|
|
1031
1092
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
1032
1093
|
return {
|
|
@@ -1034,12 +1095,14 @@ const CapitalApiAxiosParamCreator = function(configuration) {
|
|
|
1034
1095
|
method: "GET",
|
|
1035
1096
|
queryParams: localVarQueryParameter,
|
|
1036
1097
|
bodyParams: localVarBodyParameter,
|
|
1098
|
+
headerParams: localVarHeaderParameter,
|
|
1037
1099
|
timeUnit: _timeUnit
|
|
1038
1100
|
};
|
|
1039
1101
|
},
|
|
1040
1102
|
oneClickArrivalDepositApply: async (depositId, txId, subAccountId, subUserId) => {
|
|
1041
1103
|
const localVarQueryParameter = {};
|
|
1042
1104
|
const localVarBodyParameter = {};
|
|
1105
|
+
const localVarHeaderParameter = {};
|
|
1043
1106
|
if (depositId !== void 0 && depositId !== null) localVarQueryParameter["depositId"] = depositId;
|
|
1044
1107
|
if (txId !== void 0 && txId !== null) localVarQueryParameter["txId"] = txId;
|
|
1045
1108
|
if (subAccountId !== void 0 && subAccountId !== null) localVarQueryParameter["subAccountId"] = subAccountId;
|
|
@@ -1051,6 +1114,7 @@ const CapitalApiAxiosParamCreator = function(configuration) {
|
|
|
1051
1114
|
method: "POST",
|
|
1052
1115
|
queryParams: localVarQueryParameter,
|
|
1053
1116
|
bodyParams: localVarBodyParameter,
|
|
1117
|
+
headerParams: localVarHeaderParameter,
|
|
1054
1118
|
timeUnit: _timeUnit
|
|
1055
1119
|
};
|
|
1056
1120
|
},
|
|
@@ -1060,6 +1124,7 @@ const CapitalApiAxiosParamCreator = function(configuration) {
|
|
|
1060
1124
|
assertParamExists("withdraw", "amount", amount);
|
|
1061
1125
|
const localVarQueryParameter = {};
|
|
1062
1126
|
const localVarBodyParameter = {};
|
|
1127
|
+
const localVarHeaderParameter = {};
|
|
1063
1128
|
if (coin !== void 0 && coin !== null) localVarQueryParameter["coin"] = coin;
|
|
1064
1129
|
if (withdrawOrderId !== void 0 && withdrawOrderId !== null) localVarQueryParameter["withdrawOrderId"] = withdrawOrderId;
|
|
1065
1130
|
if (network !== void 0 && network !== null) localVarQueryParameter["network"] = network;
|
|
@@ -1077,12 +1142,14 @@ const CapitalApiAxiosParamCreator = function(configuration) {
|
|
|
1077
1142
|
method: "POST",
|
|
1078
1143
|
queryParams: localVarQueryParameter,
|
|
1079
1144
|
bodyParams: localVarBodyParameter,
|
|
1145
|
+
headerParams: localVarHeaderParameter,
|
|
1080
1146
|
timeUnit: _timeUnit
|
|
1081
1147
|
};
|
|
1082
1148
|
},
|
|
1083
1149
|
withdrawHistory: async (coin, withdrawOrderId, status, offset, limit, idList, startTime, endTime, recvWindow) => {
|
|
1084
1150
|
const localVarQueryParameter = {};
|
|
1085
1151
|
const localVarBodyParameter = {};
|
|
1152
|
+
const localVarHeaderParameter = {};
|
|
1086
1153
|
if (coin !== void 0 && coin !== null) localVarQueryParameter["coin"] = coin;
|
|
1087
1154
|
if (withdrawOrderId !== void 0 && withdrawOrderId !== null) localVarQueryParameter["withdrawOrderId"] = withdrawOrderId;
|
|
1088
1155
|
if (status !== void 0 && status !== null) localVarQueryParameter["status"] = status;
|
|
@@ -1099,6 +1166,7 @@ const CapitalApiAxiosParamCreator = function(configuration) {
|
|
|
1099
1166
|
method: "GET",
|
|
1100
1167
|
queryParams: localVarQueryParameter,
|
|
1101
1168
|
bodyParams: localVarBodyParameter,
|
|
1169
|
+
headerParams: localVarHeaderParameter,
|
|
1102
1170
|
timeUnit: _timeUnit
|
|
1103
1171
|
};
|
|
1104
1172
|
}
|
|
@@ -1127,7 +1195,7 @@ var CapitalApi = class {
|
|
|
1127
1195
|
*/
|
|
1128
1196
|
async allCoinsInformation(requestParameters = {}) {
|
|
1129
1197
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.allCoinsInformation(requestParameters?.recvWindow);
|
|
1130
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1198
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1131
1199
|
}
|
|
1132
1200
|
/**
|
|
1133
1201
|
* Fetch deposit address with network.
|
|
@@ -1147,7 +1215,7 @@ var CapitalApi = class {
|
|
|
1147
1215
|
*/
|
|
1148
1216
|
async depositAddress(requestParameters) {
|
|
1149
1217
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.depositAddress(requestParameters?.coin, requestParameters?.network, requestParameters?.amount, requestParameters?.recvWindow);
|
|
1150
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1218
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1151
1219
|
}
|
|
1152
1220
|
/**
|
|
1153
1221
|
* Fetch deposit history.
|
|
@@ -1167,7 +1235,7 @@ var CapitalApi = class {
|
|
|
1167
1235
|
*/
|
|
1168
1236
|
async depositHistory(requestParameters = {}) {
|
|
1169
1237
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.depositHistory(requestParameters?.includeSource, requestParameters?.coin, requestParameters?.status, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.offset, requestParameters?.limit, requestParameters?.recvWindow, requestParameters?.txId);
|
|
1170
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1238
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1171
1239
|
}
|
|
1172
1240
|
/**
|
|
1173
1241
|
* Fetch deposit address list with network.
|
|
@@ -1187,7 +1255,7 @@ var CapitalApi = class {
|
|
|
1187
1255
|
*/
|
|
1188
1256
|
async fetchDepositAddressListWithNetwork(requestParameters) {
|
|
1189
1257
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.fetchDepositAddressListWithNetwork(requestParameters?.coin, requestParameters?.network);
|
|
1190
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1258
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1191
1259
|
}
|
|
1192
1260
|
/**
|
|
1193
1261
|
* Fetch withdraw address list
|
|
@@ -1202,7 +1270,7 @@ var CapitalApi = class {
|
|
|
1202
1270
|
*/
|
|
1203
1271
|
async fetchWithdrawAddressList() {
|
|
1204
1272
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.fetchWithdrawAddressList();
|
|
1205
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1273
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1206
1274
|
}
|
|
1207
1275
|
/**
|
|
1208
1276
|
* Fetch withdraw quota
|
|
@@ -1217,7 +1285,7 @@ var CapitalApi = class {
|
|
|
1217
1285
|
*/
|
|
1218
1286
|
async fetchWithdrawQuota() {
|
|
1219
1287
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.fetchWithdrawQuota();
|
|
1220
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1288
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1221
1289
|
}
|
|
1222
1290
|
/**
|
|
1223
1291
|
* Apply deposit credit for expired address (One click arrival)
|
|
@@ -1235,7 +1303,7 @@ var CapitalApi = class {
|
|
|
1235
1303
|
*/
|
|
1236
1304
|
async oneClickArrivalDepositApply(requestParameters = {}) {
|
|
1237
1305
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.oneClickArrivalDepositApply(requestParameters?.depositId, requestParameters?.txId, requestParameters?.subAccountId, requestParameters?.subUserId);
|
|
1238
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1306
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1239
1307
|
}
|
|
1240
1308
|
/**
|
|
1241
1309
|
* Submit a withdraw request.
|
|
@@ -1244,6 +1312,9 @@ var CapitalApi = class {
|
|
|
1244
1312
|
* If `network` not send, return with default network of the coin.
|
|
1245
1313
|
* You can get `network` and `isDefault` in `networkList` of a coin in the response of `Get /sapi/v1/capital/config/getall (HMAC SHA256)`.
|
|
1246
1314
|
* 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.
|
|
1315
|
+
* 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`:
|
|
1316
|
+
* If `withdrawTag` = `true` → memo/tag is required.
|
|
1317
|
+
* If `withdrawTag` = `false` → memo/tag is not supported; omit `addressTag`.
|
|
1247
1318
|
*
|
|
1248
1319
|
* Weight: 900
|
|
1249
1320
|
*
|
|
@@ -1256,7 +1327,7 @@ var CapitalApi = class {
|
|
|
1256
1327
|
*/
|
|
1257
1328
|
async withdraw(requestParameters) {
|
|
1258
1329
|
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);
|
|
1259
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1330
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1260
1331
|
}
|
|
1261
1332
|
/**
|
|
1262
1333
|
* Fetch withdraw history.
|
|
@@ -1280,7 +1351,7 @@ var CapitalApi = class {
|
|
|
1280
1351
|
*/
|
|
1281
1352
|
async withdrawHistory(requestParameters = {}) {
|
|
1282
1353
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.withdrawHistory(requestParameters?.coin, requestParameters?.withdrawOrderId, requestParameters?.status, requestParameters?.offset, requestParameters?.limit, requestParameters?.idList, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.recvWindow);
|
|
1283
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1354
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1284
1355
|
}
|
|
1285
1356
|
};
|
|
1286
1357
|
|
|
@@ -1306,6 +1377,7 @@ const OthersApiAxiosParamCreator = function(configuration) {
|
|
|
1306
1377
|
getSymbolsDelistScheduleForSpot: async (recvWindow) => {
|
|
1307
1378
|
const localVarQueryParameter = {};
|
|
1308
1379
|
const localVarBodyParameter = {};
|
|
1380
|
+
const localVarHeaderParameter = {};
|
|
1309
1381
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
1310
1382
|
let _timeUnit;
|
|
1311
1383
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
@@ -1314,12 +1386,14 @@ const OthersApiAxiosParamCreator = function(configuration) {
|
|
|
1314
1386
|
method: "GET",
|
|
1315
1387
|
queryParams: localVarQueryParameter,
|
|
1316
1388
|
bodyParams: localVarBodyParameter,
|
|
1389
|
+
headerParams: localVarHeaderParameter,
|
|
1317
1390
|
timeUnit: _timeUnit
|
|
1318
1391
|
};
|
|
1319
1392
|
},
|
|
1320
1393
|
systemStatus: async () => {
|
|
1321
1394
|
const localVarQueryParameter = {};
|
|
1322
1395
|
const localVarBodyParameter = {};
|
|
1396
|
+
const localVarHeaderParameter = {};
|
|
1323
1397
|
let _timeUnit;
|
|
1324
1398
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
1325
1399
|
return {
|
|
@@ -1327,6 +1401,7 @@ const OthersApiAxiosParamCreator = function(configuration) {
|
|
|
1327
1401
|
method: "GET",
|
|
1328
1402
|
queryParams: localVarQueryParameter,
|
|
1329
1403
|
bodyParams: localVarBodyParameter,
|
|
1404
|
+
headerParams: localVarHeaderParameter,
|
|
1330
1405
|
timeUnit: _timeUnit
|
|
1331
1406
|
};
|
|
1332
1407
|
}
|
|
@@ -1355,7 +1430,7 @@ var OthersApi = class {
|
|
|
1355
1430
|
*/
|
|
1356
1431
|
async getSymbolsDelistScheduleForSpot(requestParameters = {}) {
|
|
1357
1432
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getSymbolsDelistScheduleForSpot(requestParameters?.recvWindow);
|
|
1358
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
1433
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
1359
1434
|
}
|
|
1360
1435
|
/**
|
|
1361
1436
|
* Fetch system status.
|
|
@@ -1370,7 +1445,7 @@ var OthersApi = class {
|
|
|
1370
1445
|
*/
|
|
1371
1446
|
async systemStatus() {
|
|
1372
1447
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.systemStatus();
|
|
1373
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
1448
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
1374
1449
|
}
|
|
1375
1450
|
};
|
|
1376
1451
|
|
|
@@ -1403,6 +1478,7 @@ const TravelRuleApiAxiosParamCreator = function(configuration) {
|
|
|
1403
1478
|
assertParamExists("brokerWithdraw", "signature", signature);
|
|
1404
1479
|
const localVarQueryParameter = {};
|
|
1405
1480
|
const localVarBodyParameter = {};
|
|
1481
|
+
const localVarHeaderParameter = {};
|
|
1406
1482
|
if (address !== void 0 && address !== null) localVarQueryParameter["address"] = address;
|
|
1407
1483
|
if (addressTag !== void 0 && addressTag !== null) localVarQueryParameter["addressTag"] = addressTag;
|
|
1408
1484
|
if (network !== void 0 && network !== null) localVarQueryParameter["network"] = network;
|
|
@@ -1422,12 +1498,14 @@ const TravelRuleApiAxiosParamCreator = function(configuration) {
|
|
|
1422
1498
|
method: "POST",
|
|
1423
1499
|
queryParams: localVarQueryParameter,
|
|
1424
1500
|
bodyParams: localVarBodyParameter,
|
|
1501
|
+
headerParams: localVarHeaderParameter,
|
|
1425
1502
|
timeUnit: _timeUnit
|
|
1426
1503
|
};
|
|
1427
1504
|
},
|
|
1428
1505
|
checkQuestionnaireRequirements: async (recvWindow) => {
|
|
1429
1506
|
const localVarQueryParameter = {};
|
|
1430
1507
|
const localVarBodyParameter = {};
|
|
1508
|
+
const localVarHeaderParameter = {};
|
|
1431
1509
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
1432
1510
|
let _timeUnit;
|
|
1433
1511
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
@@ -1436,12 +1514,14 @@ const TravelRuleApiAxiosParamCreator = function(configuration) {
|
|
|
1436
1514
|
method: "GET",
|
|
1437
1515
|
queryParams: localVarQueryParameter,
|
|
1438
1516
|
bodyParams: localVarBodyParameter,
|
|
1517
|
+
headerParams: localVarHeaderParameter,
|
|
1439
1518
|
timeUnit: _timeUnit
|
|
1440
1519
|
};
|
|
1441
1520
|
},
|
|
1442
1521
|
depositHistoryTravelRule: async (trId, txId, tranId, network, coin, travelRuleStatus, pendingQuestionnaire, startTime, endTime, offset, limit) => {
|
|
1443
1522
|
const localVarQueryParameter = {};
|
|
1444
1523
|
const localVarBodyParameter = {};
|
|
1524
|
+
const localVarHeaderParameter = {};
|
|
1445
1525
|
if (trId !== void 0 && trId !== null) localVarQueryParameter["trId"] = trId;
|
|
1446
1526
|
if (txId !== void 0 && txId !== null) localVarQueryParameter["txId"] = txId;
|
|
1447
1527
|
if (tranId !== void 0 && tranId !== null) localVarQueryParameter["tranId"] = tranId;
|
|
@@ -1460,12 +1540,14 @@ const TravelRuleApiAxiosParamCreator = function(configuration) {
|
|
|
1460
1540
|
method: "GET",
|
|
1461
1541
|
queryParams: localVarQueryParameter,
|
|
1462
1542
|
bodyParams: localVarBodyParameter,
|
|
1543
|
+
headerParams: localVarHeaderParameter,
|
|
1463
1544
|
timeUnit: _timeUnit
|
|
1464
1545
|
};
|
|
1465
1546
|
},
|
|
1466
1547
|
depositHistoryV2: async (depositId, txId, network, coin, retrieveQuestionnaire, startTime, endTime, offset, limit) => {
|
|
1467
1548
|
const localVarQueryParameter = {};
|
|
1468
1549
|
const localVarBodyParameter = {};
|
|
1550
|
+
const localVarHeaderParameter = {};
|
|
1469
1551
|
if (depositId !== void 0 && depositId !== null) localVarQueryParameter["depositId"] = depositId;
|
|
1470
1552
|
if (txId !== void 0 && txId !== null) localVarQueryParameter["txId"] = txId;
|
|
1471
1553
|
if (network !== void 0 && network !== null) localVarQueryParameter["network"] = network;
|
|
@@ -1482,12 +1564,14 @@ const TravelRuleApiAxiosParamCreator = function(configuration) {
|
|
|
1482
1564
|
method: "GET",
|
|
1483
1565
|
queryParams: localVarQueryParameter,
|
|
1484
1566
|
bodyParams: localVarBodyParameter,
|
|
1567
|
+
headerParams: localVarHeaderParameter,
|
|
1485
1568
|
timeUnit: _timeUnit
|
|
1486
1569
|
};
|
|
1487
1570
|
},
|
|
1488
1571
|
fetchAddressVerificationList: async (recvWindow) => {
|
|
1489
1572
|
const localVarQueryParameter = {};
|
|
1490
1573
|
const localVarBodyParameter = {};
|
|
1574
|
+
const localVarHeaderParameter = {};
|
|
1491
1575
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
1492
1576
|
let _timeUnit;
|
|
1493
1577
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
@@ -1496,6 +1580,39 @@ const TravelRuleApiAxiosParamCreator = function(configuration) {
|
|
|
1496
1580
|
method: "GET",
|
|
1497
1581
|
queryParams: localVarQueryParameter,
|
|
1498
1582
|
bodyParams: localVarBodyParameter,
|
|
1583
|
+
headerParams: localVarHeaderParameter,
|
|
1584
|
+
timeUnit: _timeUnit
|
|
1585
|
+
};
|
|
1586
|
+
},
|
|
1587
|
+
getCountryList: async () => {
|
|
1588
|
+
const localVarQueryParameter = {};
|
|
1589
|
+
const localVarBodyParameter = {};
|
|
1590
|
+
const localVarHeaderParameter = {};
|
|
1591
|
+
let _timeUnit;
|
|
1592
|
+
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
1593
|
+
return {
|
|
1594
|
+
endpoint: "/sapi/v1/localentity/country/list",
|
|
1595
|
+
method: "GET",
|
|
1596
|
+
queryParams: localVarQueryParameter,
|
|
1597
|
+
bodyParams: localVarBodyParameter,
|
|
1598
|
+
headerParams: localVarHeaderParameter,
|
|
1599
|
+
timeUnit: _timeUnit
|
|
1600
|
+
};
|
|
1601
|
+
},
|
|
1602
|
+
getRegionList: async (countryCode) => {
|
|
1603
|
+
assertParamExists("getRegionList", "countryCode", countryCode);
|
|
1604
|
+
const localVarQueryParameter = {};
|
|
1605
|
+
const localVarBodyParameter = {};
|
|
1606
|
+
const localVarHeaderParameter = {};
|
|
1607
|
+
if (countryCode !== void 0 && countryCode !== null) localVarQueryParameter["countryCode"] = countryCode;
|
|
1608
|
+
let _timeUnit;
|
|
1609
|
+
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
1610
|
+
return {
|
|
1611
|
+
endpoint: "/sapi/v1/localentity/region/list",
|
|
1612
|
+
method: "GET",
|
|
1613
|
+
queryParams: localVarQueryParameter,
|
|
1614
|
+
bodyParams: localVarBodyParameter,
|
|
1615
|
+
headerParams: localVarHeaderParameter,
|
|
1499
1616
|
timeUnit: _timeUnit
|
|
1500
1617
|
};
|
|
1501
1618
|
},
|
|
@@ -1507,6 +1624,7 @@ const TravelRuleApiAxiosParamCreator = function(configuration) {
|
|
|
1507
1624
|
assertParamExists("submitDepositQuestionnaire", "signature", signature);
|
|
1508
1625
|
const localVarQueryParameter = {};
|
|
1509
1626
|
const localVarBodyParameter = {};
|
|
1627
|
+
const localVarHeaderParameter = {};
|
|
1510
1628
|
if (subAccountId !== void 0 && subAccountId !== null) localVarQueryParameter["subAccountId"] = subAccountId;
|
|
1511
1629
|
if (depositId !== void 0 && depositId !== null) localVarQueryParameter["depositId"] = depositId;
|
|
1512
1630
|
if (questionnaire !== void 0 && questionnaire !== null) localVarQueryParameter["questionnaire"] = questionnaire;
|
|
@@ -1524,6 +1642,7 @@ const TravelRuleApiAxiosParamCreator = function(configuration) {
|
|
|
1524
1642
|
method: "PUT",
|
|
1525
1643
|
queryParams: localVarQueryParameter,
|
|
1526
1644
|
bodyParams: localVarBodyParameter,
|
|
1645
|
+
headerParams: localVarHeaderParameter,
|
|
1527
1646
|
timeUnit: _timeUnit
|
|
1528
1647
|
};
|
|
1529
1648
|
},
|
|
@@ -1532,6 +1651,7 @@ const TravelRuleApiAxiosParamCreator = function(configuration) {
|
|
|
1532
1651
|
assertParamExists("submitDepositQuestionnaireTravelRule", "questionnaire", questionnaire);
|
|
1533
1652
|
const localVarQueryParameter = {};
|
|
1534
1653
|
const localVarBodyParameter = {};
|
|
1654
|
+
const localVarHeaderParameter = {};
|
|
1535
1655
|
if (tranId !== void 0 && tranId !== null) localVarQueryParameter["tranId"] = tranId;
|
|
1536
1656
|
if (questionnaire !== void 0 && questionnaire !== null) localVarQueryParameter["questionnaire"] = questionnaire;
|
|
1537
1657
|
let _timeUnit;
|
|
@@ -1541,6 +1661,7 @@ const TravelRuleApiAxiosParamCreator = function(configuration) {
|
|
|
1541
1661
|
method: "PUT",
|
|
1542
1662
|
queryParams: localVarQueryParameter,
|
|
1543
1663
|
bodyParams: localVarBodyParameter,
|
|
1664
|
+
headerParams: localVarHeaderParameter,
|
|
1544
1665
|
timeUnit: _timeUnit
|
|
1545
1666
|
};
|
|
1546
1667
|
},
|
|
@@ -1549,6 +1670,7 @@ const TravelRuleApiAxiosParamCreator = function(configuration) {
|
|
|
1549
1670
|
assertParamExists("submitDepositQuestionnaireV2", "questionnaire", questionnaire);
|
|
1550
1671
|
const localVarQueryParameter = {};
|
|
1551
1672
|
const localVarBodyParameter = {};
|
|
1673
|
+
const localVarHeaderParameter = {};
|
|
1552
1674
|
if (depositId !== void 0 && depositId !== null) localVarQueryParameter["depositId"] = depositId;
|
|
1553
1675
|
if (questionnaire !== void 0 && questionnaire !== null) localVarQueryParameter["questionnaire"] = questionnaire;
|
|
1554
1676
|
let _timeUnit;
|
|
@@ -1558,12 +1680,14 @@ const TravelRuleApiAxiosParamCreator = function(configuration) {
|
|
|
1558
1680
|
method: "PUT",
|
|
1559
1681
|
queryParams: localVarQueryParameter,
|
|
1560
1682
|
bodyParams: localVarBodyParameter,
|
|
1683
|
+
headerParams: localVarHeaderParameter,
|
|
1561
1684
|
timeUnit: _timeUnit
|
|
1562
1685
|
};
|
|
1563
1686
|
},
|
|
1564
1687
|
vaspList: async (recvWindow) => {
|
|
1565
1688
|
const localVarQueryParameter = {};
|
|
1566
1689
|
const localVarBodyParameter = {};
|
|
1690
|
+
const localVarHeaderParameter = {};
|
|
1567
1691
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
1568
1692
|
let _timeUnit;
|
|
1569
1693
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
@@ -1572,12 +1696,14 @@ const TravelRuleApiAxiosParamCreator = function(configuration) {
|
|
|
1572
1696
|
method: "GET",
|
|
1573
1697
|
queryParams: localVarQueryParameter,
|
|
1574
1698
|
bodyParams: localVarBodyParameter,
|
|
1699
|
+
headerParams: localVarHeaderParameter,
|
|
1575
1700
|
timeUnit: _timeUnit
|
|
1576
1701
|
};
|
|
1577
1702
|
},
|
|
1578
1703
|
withdrawHistoryV1: async (trId, txId, withdrawOrderId, network, coin, travelRuleStatus, offset, limit, startTime, endTime, recvWindow) => {
|
|
1579
1704
|
const localVarQueryParameter = {};
|
|
1580
1705
|
const localVarBodyParameter = {};
|
|
1706
|
+
const localVarHeaderParameter = {};
|
|
1581
1707
|
if (trId !== void 0 && trId !== null) localVarQueryParameter["trId"] = trId;
|
|
1582
1708
|
if (txId !== void 0 && txId !== null) localVarQueryParameter["txId"] = txId;
|
|
1583
1709
|
if (withdrawOrderId !== void 0 && withdrawOrderId !== null) localVarQueryParameter["withdrawOrderId"] = withdrawOrderId;
|
|
@@ -1596,12 +1722,14 @@ const TravelRuleApiAxiosParamCreator = function(configuration) {
|
|
|
1596
1722
|
method: "GET",
|
|
1597
1723
|
queryParams: localVarQueryParameter,
|
|
1598
1724
|
bodyParams: localVarBodyParameter,
|
|
1725
|
+
headerParams: localVarHeaderParameter,
|
|
1599
1726
|
timeUnit: _timeUnit
|
|
1600
1727
|
};
|
|
1601
1728
|
},
|
|
1602
1729
|
withdrawHistoryV2: async (trId, txId, withdrawOrderId, network, coin, travelRuleStatus, offset, limit, startTime, endTime, recvWindow) => {
|
|
1603
1730
|
const localVarQueryParameter = {};
|
|
1604
1731
|
const localVarBodyParameter = {};
|
|
1732
|
+
const localVarHeaderParameter = {};
|
|
1605
1733
|
if (trId !== void 0 && trId !== null) localVarQueryParameter["trId"] = trId;
|
|
1606
1734
|
if (txId !== void 0 && txId !== null) localVarQueryParameter["txId"] = txId;
|
|
1607
1735
|
if (withdrawOrderId !== void 0 && withdrawOrderId !== null) localVarQueryParameter["withdrawOrderId"] = withdrawOrderId;
|
|
@@ -1620,6 +1748,7 @@ const TravelRuleApiAxiosParamCreator = function(configuration) {
|
|
|
1620
1748
|
method: "GET",
|
|
1621
1749
|
queryParams: localVarQueryParameter,
|
|
1622
1750
|
bodyParams: localVarBodyParameter,
|
|
1751
|
+
headerParams: localVarHeaderParameter,
|
|
1623
1752
|
timeUnit: _timeUnit
|
|
1624
1753
|
};
|
|
1625
1754
|
},
|
|
@@ -1630,6 +1759,7 @@ const TravelRuleApiAxiosParamCreator = function(configuration) {
|
|
|
1630
1759
|
assertParamExists("withdrawTravelRule", "questionnaire", questionnaire);
|
|
1631
1760
|
const localVarQueryParameter = {};
|
|
1632
1761
|
const localVarBodyParameter = {};
|
|
1762
|
+
const localVarHeaderParameter = {};
|
|
1633
1763
|
if (coin !== void 0 && coin !== null) localVarQueryParameter["coin"] = coin;
|
|
1634
1764
|
if (withdrawOrderId !== void 0 && withdrawOrderId !== null) localVarQueryParameter["withdrawOrderId"] = withdrawOrderId;
|
|
1635
1765
|
if (network !== void 0 && network !== null) localVarQueryParameter["network"] = network;
|
|
@@ -1648,6 +1778,7 @@ const TravelRuleApiAxiosParamCreator = function(configuration) {
|
|
|
1648
1778
|
method: "POST",
|
|
1649
1779
|
queryParams: localVarQueryParameter,
|
|
1650
1780
|
bodyParams: localVarBodyParameter,
|
|
1781
|
+
headerParams: localVarHeaderParameter,
|
|
1651
1782
|
timeUnit: _timeUnit
|
|
1652
1783
|
};
|
|
1653
1784
|
}
|
|
@@ -1681,7 +1812,7 @@ var TravelRuleApi = class {
|
|
|
1681
1812
|
*/
|
|
1682
1813
|
async brokerWithdraw(requestParameters) {
|
|
1683
1814
|
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);
|
|
1684
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1815
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1685
1816
|
}
|
|
1686
1817
|
/**
|
|
1687
1818
|
* This API will return user-specific Travel Rule questionnaire requirement information in reference to the current API key.
|
|
@@ -1697,7 +1828,7 @@ var TravelRuleApi = class {
|
|
|
1697
1828
|
*/
|
|
1698
1829
|
async checkQuestionnaireRequirements(requestParameters = {}) {
|
|
1699
1830
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.checkQuestionnaireRequirements(requestParameters?.recvWindow);
|
|
1700
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1831
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1701
1832
|
}
|
|
1702
1833
|
/**
|
|
1703
1834
|
* Fetch deposit history for local entities that required travel rule.
|
|
@@ -1717,7 +1848,7 @@ var TravelRuleApi = class {
|
|
|
1717
1848
|
*/
|
|
1718
1849
|
async depositHistoryTravelRule(requestParameters = {}) {
|
|
1719
1850
|
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);
|
|
1720
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1851
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1721
1852
|
}
|
|
1722
1853
|
/**
|
|
1723
1854
|
* Fetch deposit history for local entities that with required travel rule information.
|
|
@@ -1737,7 +1868,7 @@ var TravelRuleApi = class {
|
|
|
1737
1868
|
*/
|
|
1738
1869
|
async depositHistoryV2(requestParameters = {}) {
|
|
1739
1870
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.depositHistoryV2(requestParameters?.depositId, requestParameters?.txId, requestParameters?.network, requestParameters?.coin, requestParameters?.retrieveQuestionnaire, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.offset, requestParameters?.limit);
|
|
1740
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1871
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1741
1872
|
}
|
|
1742
1873
|
/**
|
|
1743
1874
|
* Fetch address verification list for user to check on status and other details for the addresses stored in Address Book.
|
|
@@ -1753,7 +1884,38 @@ var TravelRuleApi = class {
|
|
|
1753
1884
|
*/
|
|
1754
1885
|
async fetchAddressVerificationList(requestParameters = {}) {
|
|
1755
1886
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.fetchAddressVerificationList(requestParameters?.recvWindow);
|
|
1756
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1887
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1888
|
+
}
|
|
1889
|
+
/**
|
|
1890
|
+
* Query the active country list for travel rule questionnaires.
|
|
1891
|
+
*
|
|
1892
|
+
* Weight: 1
|
|
1893
|
+
*
|
|
1894
|
+
* @summary Get Country List (USER_DATA)
|
|
1895
|
+
* @returns {Promise<RestApiResponse<GetCountryListResponse>>}
|
|
1896
|
+
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
1897
|
+
* @memberof TravelRuleApi
|
|
1898
|
+
* @see {@link https://developers.binance.com/docs/wallet/travel-rule/country-list Binance API Documentation}
|
|
1899
|
+
*/
|
|
1900
|
+
async getCountryList() {
|
|
1901
|
+
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getCountryList();
|
|
1902
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1903
|
+
}
|
|
1904
|
+
/**
|
|
1905
|
+
* Query the active region/city list for a given country.
|
|
1906
|
+
*
|
|
1907
|
+
* Weight: 1
|
|
1908
|
+
*
|
|
1909
|
+
* @summary Get Region List (USER_DATA)
|
|
1910
|
+
* @param {GetRegionListRequest} requestParameters Request parameters.
|
|
1911
|
+
* @returns {Promise<RestApiResponse<GetRegionListResponse>>}
|
|
1912
|
+
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
1913
|
+
* @memberof TravelRuleApi
|
|
1914
|
+
* @see {@link https://developers.binance.com/docs/wallet/travel-rule/region-list Binance API Documentation}
|
|
1915
|
+
*/
|
|
1916
|
+
async getRegionList(requestParameters) {
|
|
1917
|
+
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getRegionList(requestParameters?.countryCode);
|
|
1918
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1757
1919
|
}
|
|
1758
1920
|
/**
|
|
1759
1921
|
* Submit questionnaire for brokers of local entities that require travel rule.
|
|
@@ -1774,7 +1936,7 @@ var TravelRuleApi = class {
|
|
|
1774
1936
|
*/
|
|
1775
1937
|
async submitDepositQuestionnaire(requestParameters) {
|
|
1776
1938
|
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);
|
|
1777
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1939
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1778
1940
|
}
|
|
1779
1941
|
/**
|
|
1780
1942
|
* Submit questionnaire for local entities that require travel rule.
|
|
@@ -1795,7 +1957,7 @@ var TravelRuleApi = class {
|
|
|
1795
1957
|
*/
|
|
1796
1958
|
async submitDepositQuestionnaireTravelRule(requestParameters) {
|
|
1797
1959
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.submitDepositQuestionnaireTravelRule(requestParameters?.tranId, requestParameters?.questionnaire);
|
|
1798
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1960
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1799
1961
|
}
|
|
1800
1962
|
/**
|
|
1801
1963
|
* Submit questionnaire for local entities that require travel rule.
|
|
@@ -1816,7 +1978,7 @@ var TravelRuleApi = class {
|
|
|
1816
1978
|
*/
|
|
1817
1979
|
async submitDepositQuestionnaireV2(requestParameters) {
|
|
1818
1980
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.submitDepositQuestionnaireV2(requestParameters?.depositId, requestParameters?.questionnaire);
|
|
1819
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1981
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1820
1982
|
}
|
|
1821
1983
|
/**
|
|
1822
1984
|
* Fetch the VASP list for local entities.
|
|
@@ -1832,7 +1994,7 @@ var TravelRuleApi = class {
|
|
|
1832
1994
|
*/
|
|
1833
1995
|
async vaspList(requestParameters = {}) {
|
|
1834
1996
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.vaspList(requestParameters?.recvWindow);
|
|
1835
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1997
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1836
1998
|
}
|
|
1837
1999
|
/**
|
|
1838
2000
|
* Fetch withdraw history for local entities that required travel rule.
|
|
@@ -1852,7 +2014,7 @@ var TravelRuleApi = class {
|
|
|
1852
2014
|
*/
|
|
1853
2015
|
async withdrawHistoryV1(requestParameters = {}) {
|
|
1854
2016
|
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);
|
|
1855
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
2017
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1856
2018
|
}
|
|
1857
2019
|
/**
|
|
1858
2020
|
* Fetch withdraw history for local entities that required travel rule.
|
|
@@ -1878,7 +2040,7 @@ var TravelRuleApi = class {
|
|
|
1878
2040
|
*/
|
|
1879
2041
|
async withdrawHistoryV2(requestParameters = {}) {
|
|
1880
2042
|
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);
|
|
1881
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
2043
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1882
2044
|
}
|
|
1883
2045
|
/**
|
|
1884
2046
|
* Submit a withdrawal request for local entities that required travel rule.
|
|
@@ -1899,7 +2061,7 @@ var TravelRuleApi = class {
|
|
|
1899
2061
|
*/
|
|
1900
2062
|
async withdrawTravelRule(requestParameters) {
|
|
1901
2063
|
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);
|
|
1902
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
2064
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1903
2065
|
}
|
|
1904
2066
|
};
|
|
1905
2067
|
|
|
@@ -1936,7 +2098,7 @@ var RestAPI = class {
|
|
|
1936
2098
|
* @returns A promise resolving to the response data object.
|
|
1937
2099
|
*/
|
|
1938
2100
|
sendRequest(endpoint, method, queryParams = {}, bodyParams = {}) {
|
|
1939
|
-
return sendRequest(this.configuration, endpoint, method, queryParams, bodyParams, void 0);
|
|
2101
|
+
return sendRequest(this.configuration, endpoint, method, queryParams, bodyParams, void 0, void 0);
|
|
1940
2102
|
}
|
|
1941
2103
|
/**
|
|
1942
2104
|
* Generic function to send a signed request.
|
|
@@ -1948,7 +2110,7 @@ var RestAPI = class {
|
|
|
1948
2110
|
* @returns A promise resolving to the response data object.
|
|
1949
2111
|
*/
|
|
1950
2112
|
sendSignedRequest(endpoint, method, queryParams = {}, bodyParams = {}) {
|
|
1951
|
-
return sendRequest(this.configuration, endpoint, method, queryParams, bodyParams, void 0, { isSigned: true });
|
|
2113
|
+
return sendRequest(this.configuration, endpoint, method, queryParams, bodyParams, void 0, void 0, { isSigned: true });
|
|
1952
2114
|
}
|
|
1953
2115
|
/**
|
|
1954
2116
|
* Fetch account api trading status detail.
|
|
@@ -2502,6 +2664,9 @@ var RestAPI = class {
|
|
|
2502
2664
|
* If `network` not send, return with default network of the coin.
|
|
2503
2665
|
* You can get `network` and `isDefault` in `networkList` of a coin in the response of `Get /sapi/v1/capital/config/getall (HMAC SHA256)`.
|
|
2504
2666
|
* 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.
|
|
2667
|
+
* 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`:
|
|
2668
|
+
* If `withdrawTag` = `true` → memo/tag is required.
|
|
2669
|
+
* If `withdrawTag` = `false` → memo/tag is not supported; omit `addressTag`.
|
|
2505
2670
|
*
|
|
2506
2671
|
* Weight: 900
|
|
2507
2672
|
*
|
|
@@ -2656,6 +2821,35 @@ var RestAPI = class {
|
|
|
2656
2821
|
return this.travelRuleApi.fetchAddressVerificationList(requestParameters);
|
|
2657
2822
|
}
|
|
2658
2823
|
/**
|
|
2824
|
+
* Query the active country list for travel rule questionnaires.
|
|
2825
|
+
*
|
|
2826
|
+
* Weight: 1
|
|
2827
|
+
*
|
|
2828
|
+
* @summary Get Country List (USER_DATA)
|
|
2829
|
+
*
|
|
2830
|
+
* @returns {Promise<RestApiResponse<GetCountryListResponse>>}
|
|
2831
|
+
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
2832
|
+
* @see {@link https://developers.binance.com/docs/wallet/travel-rule/country-list Binance API Documentation}
|
|
2833
|
+
*/
|
|
2834
|
+
getCountryList() {
|
|
2835
|
+
return this.travelRuleApi.getCountryList();
|
|
2836
|
+
}
|
|
2837
|
+
/**
|
|
2838
|
+
* Query the active region/city list for a given country.
|
|
2839
|
+
*
|
|
2840
|
+
* Weight: 1
|
|
2841
|
+
*
|
|
2842
|
+
* @summary Get Region List (USER_DATA)
|
|
2843
|
+
* @param {GetRegionListRequest} requestParameters Request parameters.
|
|
2844
|
+
*
|
|
2845
|
+
* @returns {Promise<RestApiResponse<GetRegionListResponse>>}
|
|
2846
|
+
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
2847
|
+
* @see {@link https://developers.binance.com/docs/wallet/travel-rule/region-list Binance API Documentation}
|
|
2848
|
+
*/
|
|
2849
|
+
getRegionList(requestParameters) {
|
|
2850
|
+
return this.travelRuleApi.getRegionList(requestParameters);
|
|
2851
|
+
}
|
|
2852
|
+
/**
|
|
2659
2853
|
* Submit questionnaire for brokers of local entities that require travel rule.
|
|
2660
2854
|
* The questionnaire is only applies to transactions from un-hosted wallets or VASPs that are not
|
|
2661
2855
|
* yet onboarded with GTR.
|