@binance/wallet 18.0.0 → 19.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +236 -1
- package/dist/index.d.ts +236 -1
- package/dist/index.js +236 -50
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +236 -50
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.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.1";
|
|
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,6 +324,7 @@ 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
|
},
|
|
@@ -314,6 +332,7 @@ const AssetApiAxiosParamCreator = function(configuration) {
|
|
|
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;
|
|
318
337
|
if (accountType !== void 0 && accountType !== null) localVarQueryParameter["accountType"] = accountType;
|
|
319
338
|
if (clientId !== void 0 && clientId !== null) localVarQueryParameter["clientId"] = clientId;
|
|
@@ -327,6 +346,7 @@ const AssetApiAxiosParamCreator = function(configuration) {
|
|
|
327
346
|
method: "POST",
|
|
328
347
|
queryParams: localVarQueryParameter,
|
|
329
348
|
bodyParams: localVarBodyParameter,
|
|
349
|
+
headerParams: localVarHeaderParameter,
|
|
330
350
|
timeUnit: _timeUnit
|
|
331
351
|
};
|
|
332
352
|
},
|
|
@@ -334,6 +354,7 @@ const AssetApiAxiosParamCreator = function(configuration) {
|
|
|
334
354
|
assertParamExists("dustConvertibleAssets", "targetAsset", targetAsset);
|
|
335
355
|
const localVarQueryParameter = {};
|
|
336
356
|
const localVarBodyParameter = {};
|
|
357
|
+
const localVarHeaderParameter = {};
|
|
337
358
|
if (accountType !== void 0 && accountType !== null) localVarQueryParameter["accountType"] = accountType;
|
|
338
359
|
if (targetAsset !== void 0 && targetAsset !== null) localVarQueryParameter["targetAsset"] = targetAsset;
|
|
339
360
|
if (dustQuotaAssetToTargetAssetPrice !== void 0 && dustQuotaAssetToTargetAssetPrice !== null) localVarQueryParameter["dustQuotaAssetToTargetAssetPrice"] = dustQuotaAssetToTargetAssetPrice;
|
|
@@ -344,6 +365,7 @@ const AssetApiAxiosParamCreator = function(configuration) {
|
|
|
344
365
|
method: "POST",
|
|
345
366
|
queryParams: localVarQueryParameter,
|
|
346
367
|
bodyParams: localVarBodyParameter,
|
|
368
|
+
headerParams: localVarHeaderParameter,
|
|
347
369
|
timeUnit: _timeUnit
|
|
348
370
|
};
|
|
349
371
|
},
|
|
@@ -351,6 +373,7 @@ const AssetApiAxiosParamCreator = function(configuration) {
|
|
|
351
373
|
assertParamExists("dustTransfer", "asset", asset);
|
|
352
374
|
const localVarQueryParameter = {};
|
|
353
375
|
const localVarBodyParameter = {};
|
|
376
|
+
const localVarHeaderParameter = {};
|
|
354
377
|
if (asset !== void 0 && asset !== null) localVarQueryParameter["asset"] = asset;
|
|
355
378
|
if (accountType !== void 0 && accountType !== null) localVarQueryParameter["accountType"] = accountType;
|
|
356
379
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
@@ -361,12 +384,14 @@ const AssetApiAxiosParamCreator = function(configuration) {
|
|
|
361
384
|
method: "POST",
|
|
362
385
|
queryParams: localVarQueryParameter,
|
|
363
386
|
bodyParams: localVarBodyParameter,
|
|
387
|
+
headerParams: localVarHeaderParameter,
|
|
364
388
|
timeUnit: _timeUnit
|
|
365
389
|
};
|
|
366
390
|
},
|
|
367
391
|
dustlog: async (accountType, startTime, endTime, recvWindow) => {
|
|
368
392
|
const localVarQueryParameter = {};
|
|
369
393
|
const localVarBodyParameter = {};
|
|
394
|
+
const localVarHeaderParameter = {};
|
|
370
395
|
if (accountType !== void 0 && accountType !== null) localVarQueryParameter["accountType"] = accountType;
|
|
371
396
|
if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
|
|
372
397
|
if (endTime !== void 0 && endTime !== null) localVarQueryParameter["endTime"] = endTime;
|
|
@@ -378,12 +403,14 @@ const AssetApiAxiosParamCreator = function(configuration) {
|
|
|
378
403
|
method: "GET",
|
|
379
404
|
queryParams: localVarQueryParameter,
|
|
380
405
|
bodyParams: localVarBodyParameter,
|
|
406
|
+
headerParams: localVarHeaderParameter,
|
|
381
407
|
timeUnit: _timeUnit
|
|
382
408
|
};
|
|
383
409
|
},
|
|
384
410
|
fundingWallet: async (asset, needBtcValuation, recvWindow) => {
|
|
385
411
|
const localVarQueryParameter = {};
|
|
386
412
|
const localVarBodyParameter = {};
|
|
413
|
+
const localVarHeaderParameter = {};
|
|
387
414
|
if (asset !== void 0 && asset !== null) localVarQueryParameter["asset"] = asset;
|
|
388
415
|
if (needBtcValuation !== void 0 && needBtcValuation !== null) localVarQueryParameter["needBtcValuation"] = needBtcValuation;
|
|
389
416
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
@@ -394,12 +421,14 @@ const AssetApiAxiosParamCreator = function(configuration) {
|
|
|
394
421
|
method: "POST",
|
|
395
422
|
queryParams: localVarQueryParameter,
|
|
396
423
|
bodyParams: localVarBodyParameter,
|
|
424
|
+
headerParams: localVarHeaderParameter,
|
|
397
425
|
timeUnit: _timeUnit
|
|
398
426
|
};
|
|
399
427
|
},
|
|
400
428
|
getAssetsThatCanBeConvertedIntoBnb: async (accountType, recvWindow) => {
|
|
401
429
|
const localVarQueryParameter = {};
|
|
402
430
|
const localVarBodyParameter = {};
|
|
431
|
+
const localVarHeaderParameter = {};
|
|
403
432
|
if (accountType !== void 0 && accountType !== null) localVarQueryParameter["accountType"] = accountType;
|
|
404
433
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
405
434
|
let _timeUnit;
|
|
@@ -409,6 +438,7 @@ const AssetApiAxiosParamCreator = function(configuration) {
|
|
|
409
438
|
method: "POST",
|
|
410
439
|
queryParams: localVarQueryParameter,
|
|
411
440
|
bodyParams: localVarBodyParameter,
|
|
441
|
+
headerParams: localVarHeaderParameter,
|
|
412
442
|
timeUnit: _timeUnit
|
|
413
443
|
};
|
|
414
444
|
},
|
|
@@ -417,6 +447,7 @@ const AssetApiAxiosParamCreator = function(configuration) {
|
|
|
417
447
|
assertParamExists("getCloudMiningPaymentAndRefundHistory", "endTime", endTime);
|
|
418
448
|
const localVarQueryParameter = {};
|
|
419
449
|
const localVarBodyParameter = {};
|
|
450
|
+
const localVarHeaderParameter = {};
|
|
420
451
|
if (tranId !== void 0 && tranId !== null) localVarQueryParameter["tranId"] = tranId;
|
|
421
452
|
if (clientTranId !== void 0 && clientTranId !== null) localVarQueryParameter["clientTranId"] = clientTranId;
|
|
422
453
|
if (asset !== void 0 && asset !== null) localVarQueryParameter["asset"] = asset;
|
|
@@ -431,12 +462,14 @@ const AssetApiAxiosParamCreator = function(configuration) {
|
|
|
431
462
|
method: "GET",
|
|
432
463
|
queryParams: localVarQueryParameter,
|
|
433
464
|
bodyParams: localVarBodyParameter,
|
|
465
|
+
headerParams: localVarHeaderParameter,
|
|
434
466
|
timeUnit: _timeUnit
|
|
435
467
|
};
|
|
436
468
|
},
|
|
437
469
|
getOpenSymbolList: async () => {
|
|
438
470
|
const localVarQueryParameter = {};
|
|
439
471
|
const localVarBodyParameter = {};
|
|
472
|
+
const localVarHeaderParameter = {};
|
|
440
473
|
let _timeUnit;
|
|
441
474
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
442
475
|
return {
|
|
@@ -444,6 +477,7 @@ const AssetApiAxiosParamCreator = function(configuration) {
|
|
|
444
477
|
method: "GET",
|
|
445
478
|
queryParams: localVarQueryParameter,
|
|
446
479
|
bodyParams: localVarBodyParameter,
|
|
480
|
+
headerParams: localVarHeaderParameter,
|
|
447
481
|
timeUnit: _timeUnit
|
|
448
482
|
};
|
|
449
483
|
},
|
|
@@ -453,6 +487,7 @@ const AssetApiAxiosParamCreator = function(configuration) {
|
|
|
453
487
|
assertParamExists("queryUserDelegationHistory", "endTime", endTime);
|
|
454
488
|
const localVarQueryParameter = {};
|
|
455
489
|
const localVarBodyParameter = {};
|
|
490
|
+
const localVarHeaderParameter = {};
|
|
456
491
|
if (email !== void 0 && email !== null) localVarQueryParameter["email"] = email;
|
|
457
492
|
if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
|
|
458
493
|
if (endTime !== void 0 && endTime !== null) localVarQueryParameter["endTime"] = endTime;
|
|
@@ -468,6 +503,7 @@ const AssetApiAxiosParamCreator = function(configuration) {
|
|
|
468
503
|
method: "GET",
|
|
469
504
|
queryParams: localVarQueryParameter,
|
|
470
505
|
bodyParams: localVarBodyParameter,
|
|
506
|
+
headerParams: localVarHeaderParameter,
|
|
471
507
|
timeUnit: _timeUnit
|
|
472
508
|
};
|
|
473
509
|
},
|
|
@@ -475,6 +511,7 @@ const AssetApiAxiosParamCreator = function(configuration) {
|
|
|
475
511
|
assertParamExists("queryUserUniversalTransferHistory", "type", type);
|
|
476
512
|
const localVarQueryParameter = {};
|
|
477
513
|
const localVarBodyParameter = {};
|
|
514
|
+
const localVarHeaderParameter = {};
|
|
478
515
|
if (type !== void 0 && type !== null) localVarQueryParameter["type"] = type;
|
|
479
516
|
if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
|
|
480
517
|
if (endTime !== void 0 && endTime !== null) localVarQueryParameter["endTime"] = endTime;
|
|
@@ -490,12 +527,14 @@ const AssetApiAxiosParamCreator = function(configuration) {
|
|
|
490
527
|
method: "GET",
|
|
491
528
|
queryParams: localVarQueryParameter,
|
|
492
529
|
bodyParams: localVarBodyParameter,
|
|
530
|
+
headerParams: localVarHeaderParameter,
|
|
493
531
|
timeUnit: _timeUnit
|
|
494
532
|
};
|
|
495
533
|
},
|
|
496
534
|
queryUserWalletBalance: async (quoteAsset, recvWindow) => {
|
|
497
535
|
const localVarQueryParameter = {};
|
|
498
536
|
const localVarBodyParameter = {};
|
|
537
|
+
const localVarHeaderParameter = {};
|
|
499
538
|
if (quoteAsset !== void 0 && quoteAsset !== null) localVarQueryParameter["quoteAsset"] = quoteAsset;
|
|
500
539
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
501
540
|
let _timeUnit;
|
|
@@ -505,12 +544,14 @@ const AssetApiAxiosParamCreator = function(configuration) {
|
|
|
505
544
|
method: "GET",
|
|
506
545
|
queryParams: localVarQueryParameter,
|
|
507
546
|
bodyParams: localVarBodyParameter,
|
|
547
|
+
headerParams: localVarHeaderParameter,
|
|
508
548
|
timeUnit: _timeUnit
|
|
509
549
|
};
|
|
510
550
|
},
|
|
511
551
|
toggleBnbBurnOnSpotTradeAndMarginInterest: async (spotBNBBurn, interestBNBBurn, recvWindow) => {
|
|
512
552
|
const localVarQueryParameter = {};
|
|
513
553
|
const localVarBodyParameter = {};
|
|
554
|
+
const localVarHeaderParameter = {};
|
|
514
555
|
if (spotBNBBurn !== void 0 && spotBNBBurn !== null) localVarQueryParameter["spotBNBBurn"] = spotBNBBurn;
|
|
515
556
|
if (interestBNBBurn !== void 0 && interestBNBBurn !== null) localVarQueryParameter["interestBNBBurn"] = interestBNBBurn;
|
|
516
557
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
@@ -521,12 +562,14 @@ const AssetApiAxiosParamCreator = function(configuration) {
|
|
|
521
562
|
method: "POST",
|
|
522
563
|
queryParams: localVarQueryParameter,
|
|
523
564
|
bodyParams: localVarBodyParameter,
|
|
565
|
+
headerParams: localVarHeaderParameter,
|
|
524
566
|
timeUnit: _timeUnit
|
|
525
567
|
};
|
|
526
568
|
},
|
|
527
569
|
tradeFee: async (symbol, recvWindow) => {
|
|
528
570
|
const localVarQueryParameter = {};
|
|
529
571
|
const localVarBodyParameter = {};
|
|
572
|
+
const localVarHeaderParameter = {};
|
|
530
573
|
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
531
574
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
532
575
|
let _timeUnit;
|
|
@@ -536,12 +579,14 @@ const AssetApiAxiosParamCreator = function(configuration) {
|
|
|
536
579
|
method: "GET",
|
|
537
580
|
queryParams: localVarQueryParameter,
|
|
538
581
|
bodyParams: localVarBodyParameter,
|
|
582
|
+
headerParams: localVarHeaderParameter,
|
|
539
583
|
timeUnit: _timeUnit
|
|
540
584
|
};
|
|
541
585
|
},
|
|
542
586
|
userAsset: async (asset, needBtcValuation, recvWindow) => {
|
|
543
587
|
const localVarQueryParameter = {};
|
|
544
588
|
const localVarBodyParameter = {};
|
|
589
|
+
const localVarHeaderParameter = {};
|
|
545
590
|
if (asset !== void 0 && asset !== null) localVarQueryParameter["asset"] = asset;
|
|
546
591
|
if (needBtcValuation !== void 0 && needBtcValuation !== null) localVarQueryParameter["needBtcValuation"] = needBtcValuation;
|
|
547
592
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
@@ -552,6 +597,7 @@ const AssetApiAxiosParamCreator = function(configuration) {
|
|
|
552
597
|
method: "POST",
|
|
553
598
|
queryParams: localVarQueryParameter,
|
|
554
599
|
bodyParams: localVarBodyParameter,
|
|
600
|
+
headerParams: localVarHeaderParameter,
|
|
555
601
|
timeUnit: _timeUnit
|
|
556
602
|
};
|
|
557
603
|
},
|
|
@@ -561,6 +607,7 @@ const AssetApiAxiosParamCreator = function(configuration) {
|
|
|
561
607
|
assertParamExists("userUniversalTransfer", "amount", amount);
|
|
562
608
|
const localVarQueryParameter = {};
|
|
563
609
|
const localVarBodyParameter = {};
|
|
610
|
+
const localVarHeaderParameter = {};
|
|
564
611
|
if (type !== void 0 && type !== null) localVarQueryParameter["type"] = type;
|
|
565
612
|
if (asset !== void 0 && asset !== null) localVarQueryParameter["asset"] = asset;
|
|
566
613
|
if (amount !== void 0 && amount !== null) localVarQueryParameter["amount"] = amount;
|
|
@@ -574,6 +621,7 @@ const AssetApiAxiosParamCreator = function(configuration) {
|
|
|
574
621
|
method: "POST",
|
|
575
622
|
queryParams: localVarQueryParameter,
|
|
576
623
|
bodyParams: localVarBodyParameter,
|
|
624
|
+
headerParams: localVarHeaderParameter,
|
|
577
625
|
timeUnit: _timeUnit
|
|
578
626
|
};
|
|
579
627
|
}
|
|
@@ -605,7 +653,7 @@ var AssetApi = class {
|
|
|
605
653
|
*/
|
|
606
654
|
async assetDetail(requestParameters = {}) {
|
|
607
655
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.assetDetail(requestParameters?.asset, requestParameters?.recvWindow);
|
|
608
|
-
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 });
|
|
609
657
|
}
|
|
610
658
|
/**
|
|
611
659
|
* Query asset dividend record.
|
|
@@ -624,7 +672,7 @@ var AssetApi = class {
|
|
|
624
672
|
*/
|
|
625
673
|
async assetDividendRecord(requestParameters = {}) {
|
|
626
674
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.assetDividendRecord(requestParameters?.asset, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.limit, requestParameters?.recvWindow);
|
|
627
|
-
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 });
|
|
628
676
|
}
|
|
629
677
|
/**
|
|
630
678
|
* Convert dust assets
|
|
@@ -640,7 +688,7 @@ var AssetApi = class {
|
|
|
640
688
|
*/
|
|
641
689
|
async dustConvert(requestParameters) {
|
|
642
690
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.dustConvert(requestParameters?.asset, requestParameters?.accountType, requestParameters?.clientId, requestParameters?.targetAsset, requestParameters?.thirdPartyClientId, requestParameters?.dustQuotaAssetToTargetAssetPrice);
|
|
643
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
691
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
644
692
|
}
|
|
645
693
|
/**
|
|
646
694
|
* Query dust convertible assets
|
|
@@ -656,7 +704,7 @@ var AssetApi = class {
|
|
|
656
704
|
*/
|
|
657
705
|
async dustConvertibleAssets(requestParameters) {
|
|
658
706
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.dustConvertibleAssets(requestParameters?.targetAsset, requestParameters?.accountType, requestParameters?.dustQuotaAssetToTargetAssetPrice);
|
|
659
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
707
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
660
708
|
}
|
|
661
709
|
/**
|
|
662
710
|
* Convert dust assets to BNB.
|
|
@@ -674,7 +722,7 @@ var AssetApi = class {
|
|
|
674
722
|
*/
|
|
675
723
|
async dustTransfer(requestParameters) {
|
|
676
724
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.dustTransfer(requestParameters?.asset, requestParameters?.accountType, requestParameters?.recvWindow);
|
|
677
|
-
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 });
|
|
678
726
|
}
|
|
679
727
|
/**
|
|
680
728
|
* Dustlog
|
|
@@ -693,7 +741,7 @@ var AssetApi = class {
|
|
|
693
741
|
*/
|
|
694
742
|
async dustlog(requestParameters = {}) {
|
|
695
743
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.dustlog(requestParameters?.accountType, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.recvWindow);
|
|
696
|
-
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 });
|
|
697
745
|
}
|
|
698
746
|
/**
|
|
699
747
|
* Query Funding Wallet
|
|
@@ -712,7 +760,7 @@ var AssetApi = class {
|
|
|
712
760
|
*/
|
|
713
761
|
async fundingWallet(requestParameters = {}) {
|
|
714
762
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.fundingWallet(requestParameters?.asset, requestParameters?.needBtcValuation, requestParameters?.recvWindow);
|
|
715
|
-
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 });
|
|
716
764
|
}
|
|
717
765
|
/**
|
|
718
766
|
* Get Assets That Can Be Converted Into BNB
|
|
@@ -728,7 +776,7 @@ var AssetApi = class {
|
|
|
728
776
|
*/
|
|
729
777
|
async getAssetsThatCanBeConvertedIntoBnb(requestParameters = {}) {
|
|
730
778
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getAssetsThatCanBeConvertedIntoBnb(requestParameters?.accountType, requestParameters?.recvWindow);
|
|
731
|
-
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 });
|
|
732
780
|
}
|
|
733
781
|
/**
|
|
734
782
|
* The query of Cloud-Mining payment and refund history
|
|
@@ -747,7 +795,7 @@ var AssetApi = class {
|
|
|
747
795
|
*/
|
|
748
796
|
async getCloudMiningPaymentAndRefundHistory(requestParameters) {
|
|
749
797
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getCloudMiningPaymentAndRefundHistory(requestParameters?.startTime, requestParameters?.endTime, requestParameters?.tranId, requestParameters?.clientTranId, requestParameters?.asset, requestParameters?.current, requestParameters?.size);
|
|
750
|
-
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 });
|
|
751
799
|
}
|
|
752
800
|
/**
|
|
753
801
|
* Get the list of symbols that are scheduled to be opened for trading in the market.
|
|
@@ -762,7 +810,7 @@ var AssetApi = class {
|
|
|
762
810
|
*/
|
|
763
811
|
async getOpenSymbolList() {
|
|
764
812
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getOpenSymbolList();
|
|
765
|
-
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 });
|
|
766
814
|
}
|
|
767
815
|
/**
|
|
768
816
|
* Query User Delegation History
|
|
@@ -778,7 +826,7 @@ var AssetApi = class {
|
|
|
778
826
|
*/
|
|
779
827
|
async queryUserDelegationHistory(requestParameters) {
|
|
780
828
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryUserDelegationHistory(requestParameters?.email, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.type, requestParameters?.asset, requestParameters?.current, requestParameters?.size, requestParameters?.recvWindow);
|
|
781
|
-
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 });
|
|
782
830
|
}
|
|
783
831
|
/**
|
|
784
832
|
* Query User Universal Transfer History
|
|
@@ -800,7 +848,7 @@ var AssetApi = class {
|
|
|
800
848
|
*/
|
|
801
849
|
async queryUserUniversalTransferHistory(requestParameters) {
|
|
802
850
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryUserUniversalTransferHistory(requestParameters?.type, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.current, requestParameters?.size, requestParameters?.fromSymbol, requestParameters?.toSymbol, requestParameters?.recvWindow);
|
|
803
|
-
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 });
|
|
804
852
|
}
|
|
805
853
|
/**
|
|
806
854
|
* Query User Wallet Balance
|
|
@@ -816,7 +864,7 @@ var AssetApi = class {
|
|
|
816
864
|
*/
|
|
817
865
|
async queryUserWalletBalance(requestParameters = {}) {
|
|
818
866
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryUserWalletBalance(requestParameters?.quoteAsset, requestParameters?.recvWindow);
|
|
819
|
-
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 });
|
|
820
868
|
}
|
|
821
869
|
/**
|
|
822
870
|
* Toggle BNB Burn On Spot Trade And Margin Interest
|
|
@@ -834,7 +882,7 @@ var AssetApi = class {
|
|
|
834
882
|
*/
|
|
835
883
|
async toggleBnbBurnOnSpotTradeAndMarginInterest(requestParameters = {}) {
|
|
836
884
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.toggleBnbBurnOnSpotTradeAndMarginInterest(requestParameters?.spotBNBBurn, requestParameters?.interestBNBBurn, requestParameters?.recvWindow);
|
|
837
|
-
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 });
|
|
838
886
|
}
|
|
839
887
|
/**
|
|
840
888
|
* Fetch trade fee
|
|
@@ -850,7 +898,7 @@ var AssetApi = class {
|
|
|
850
898
|
*/
|
|
851
899
|
async tradeFee(requestParameters = {}) {
|
|
852
900
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.tradeFee(requestParameters?.symbol, requestParameters?.recvWindow);
|
|
853
|
-
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 });
|
|
854
902
|
}
|
|
855
903
|
/**
|
|
856
904
|
* Get user assets, just for positive data.
|
|
@@ -869,7 +917,7 @@ var AssetApi = class {
|
|
|
869
917
|
*/
|
|
870
918
|
async userAsset(requestParameters = {}) {
|
|
871
919
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.userAsset(requestParameters?.asset, requestParameters?.needBtcValuation, requestParameters?.recvWindow);
|
|
872
|
-
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 });
|
|
873
921
|
}
|
|
874
922
|
/**
|
|
875
923
|
* user universal transfer
|
|
@@ -920,7 +968,7 @@ var AssetApi = class {
|
|
|
920
968
|
*/
|
|
921
969
|
async userUniversalTransfer(requestParameters) {
|
|
922
970
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.userUniversalTransfer(requestParameters?.type, requestParameters?.asset, requestParameters?.amount, requestParameters?.fromSymbol, requestParameters?.toSymbol, requestParameters?.recvWindow);
|
|
923
|
-
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 });
|
|
924
972
|
}
|
|
925
973
|
};
|
|
926
974
|
|
|
@@ -946,6 +994,7 @@ const CapitalApiAxiosParamCreator = function(configuration) {
|
|
|
946
994
|
allCoinsInformation: async (recvWindow) => {
|
|
947
995
|
const localVarQueryParameter = {};
|
|
948
996
|
const localVarBodyParameter = {};
|
|
997
|
+
const localVarHeaderParameter = {};
|
|
949
998
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
950
999
|
let _timeUnit;
|
|
951
1000
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
@@ -954,6 +1003,7 @@ const CapitalApiAxiosParamCreator = function(configuration) {
|
|
|
954
1003
|
method: "GET",
|
|
955
1004
|
queryParams: localVarQueryParameter,
|
|
956
1005
|
bodyParams: localVarBodyParameter,
|
|
1006
|
+
headerParams: localVarHeaderParameter,
|
|
957
1007
|
timeUnit: _timeUnit
|
|
958
1008
|
};
|
|
959
1009
|
},
|
|
@@ -961,6 +1011,7 @@ const CapitalApiAxiosParamCreator = function(configuration) {
|
|
|
961
1011
|
assertParamExists("depositAddress", "coin", coin);
|
|
962
1012
|
const localVarQueryParameter = {};
|
|
963
1013
|
const localVarBodyParameter = {};
|
|
1014
|
+
const localVarHeaderParameter = {};
|
|
964
1015
|
if (coin !== void 0 && coin !== null) localVarQueryParameter["coin"] = coin;
|
|
965
1016
|
if (network !== void 0 && network !== null) localVarQueryParameter["network"] = network;
|
|
966
1017
|
if (amount !== void 0 && amount !== null) localVarQueryParameter["amount"] = amount;
|
|
@@ -972,12 +1023,14 @@ const CapitalApiAxiosParamCreator = function(configuration) {
|
|
|
972
1023
|
method: "GET",
|
|
973
1024
|
queryParams: localVarQueryParameter,
|
|
974
1025
|
bodyParams: localVarBodyParameter,
|
|
1026
|
+
headerParams: localVarHeaderParameter,
|
|
975
1027
|
timeUnit: _timeUnit
|
|
976
1028
|
};
|
|
977
1029
|
},
|
|
978
1030
|
depositHistory: async (includeSource, coin, status, startTime, endTime, offset, limit, recvWindow, txId) => {
|
|
979
1031
|
const localVarQueryParameter = {};
|
|
980
1032
|
const localVarBodyParameter = {};
|
|
1033
|
+
const localVarHeaderParameter = {};
|
|
981
1034
|
if (includeSource !== void 0 && includeSource !== null) localVarQueryParameter["includeSource"] = includeSource;
|
|
982
1035
|
if (coin !== void 0 && coin !== null) localVarQueryParameter["coin"] = coin;
|
|
983
1036
|
if (status !== void 0 && status !== null) localVarQueryParameter["status"] = status;
|
|
@@ -994,6 +1047,7 @@ const CapitalApiAxiosParamCreator = function(configuration) {
|
|
|
994
1047
|
method: "GET",
|
|
995
1048
|
queryParams: localVarQueryParameter,
|
|
996
1049
|
bodyParams: localVarBodyParameter,
|
|
1050
|
+
headerParams: localVarHeaderParameter,
|
|
997
1051
|
timeUnit: _timeUnit
|
|
998
1052
|
};
|
|
999
1053
|
},
|
|
@@ -1001,6 +1055,7 @@ const CapitalApiAxiosParamCreator = function(configuration) {
|
|
|
1001
1055
|
assertParamExists("fetchDepositAddressListWithNetwork", "coin", coin);
|
|
1002
1056
|
const localVarQueryParameter = {};
|
|
1003
1057
|
const localVarBodyParameter = {};
|
|
1058
|
+
const localVarHeaderParameter = {};
|
|
1004
1059
|
if (coin !== void 0 && coin !== null) localVarQueryParameter["coin"] = coin;
|
|
1005
1060
|
if (network !== void 0 && network !== null) localVarQueryParameter["network"] = network;
|
|
1006
1061
|
let _timeUnit;
|
|
@@ -1010,12 +1065,14 @@ const CapitalApiAxiosParamCreator = function(configuration) {
|
|
|
1010
1065
|
method: "GET",
|
|
1011
1066
|
queryParams: localVarQueryParameter,
|
|
1012
1067
|
bodyParams: localVarBodyParameter,
|
|
1068
|
+
headerParams: localVarHeaderParameter,
|
|
1013
1069
|
timeUnit: _timeUnit
|
|
1014
1070
|
};
|
|
1015
1071
|
},
|
|
1016
1072
|
fetchWithdrawAddressList: async () => {
|
|
1017
1073
|
const localVarQueryParameter = {};
|
|
1018
1074
|
const localVarBodyParameter = {};
|
|
1075
|
+
const localVarHeaderParameter = {};
|
|
1019
1076
|
let _timeUnit;
|
|
1020
1077
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
1021
1078
|
return {
|
|
@@ -1023,12 +1080,14 @@ const CapitalApiAxiosParamCreator = function(configuration) {
|
|
|
1023
1080
|
method: "GET",
|
|
1024
1081
|
queryParams: localVarQueryParameter,
|
|
1025
1082
|
bodyParams: localVarBodyParameter,
|
|
1083
|
+
headerParams: localVarHeaderParameter,
|
|
1026
1084
|
timeUnit: _timeUnit
|
|
1027
1085
|
};
|
|
1028
1086
|
},
|
|
1029
1087
|
fetchWithdrawQuota: async () => {
|
|
1030
1088
|
const localVarQueryParameter = {};
|
|
1031
1089
|
const localVarBodyParameter = {};
|
|
1090
|
+
const localVarHeaderParameter = {};
|
|
1032
1091
|
let _timeUnit;
|
|
1033
1092
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
1034
1093
|
return {
|
|
@@ -1036,12 +1095,14 @@ const CapitalApiAxiosParamCreator = function(configuration) {
|
|
|
1036
1095
|
method: "GET",
|
|
1037
1096
|
queryParams: localVarQueryParameter,
|
|
1038
1097
|
bodyParams: localVarBodyParameter,
|
|
1098
|
+
headerParams: localVarHeaderParameter,
|
|
1039
1099
|
timeUnit: _timeUnit
|
|
1040
1100
|
};
|
|
1041
1101
|
},
|
|
1042
1102
|
oneClickArrivalDepositApply: async (depositId, txId, subAccountId, subUserId) => {
|
|
1043
1103
|
const localVarQueryParameter = {};
|
|
1044
1104
|
const localVarBodyParameter = {};
|
|
1105
|
+
const localVarHeaderParameter = {};
|
|
1045
1106
|
if (depositId !== void 0 && depositId !== null) localVarQueryParameter["depositId"] = depositId;
|
|
1046
1107
|
if (txId !== void 0 && txId !== null) localVarQueryParameter["txId"] = txId;
|
|
1047
1108
|
if (subAccountId !== void 0 && subAccountId !== null) localVarQueryParameter["subAccountId"] = subAccountId;
|
|
@@ -1053,6 +1114,7 @@ const CapitalApiAxiosParamCreator = function(configuration) {
|
|
|
1053
1114
|
method: "POST",
|
|
1054
1115
|
queryParams: localVarQueryParameter,
|
|
1055
1116
|
bodyParams: localVarBodyParameter,
|
|
1117
|
+
headerParams: localVarHeaderParameter,
|
|
1056
1118
|
timeUnit: _timeUnit
|
|
1057
1119
|
};
|
|
1058
1120
|
},
|
|
@@ -1062,6 +1124,7 @@ const CapitalApiAxiosParamCreator = function(configuration) {
|
|
|
1062
1124
|
assertParamExists("withdraw", "amount", amount);
|
|
1063
1125
|
const localVarQueryParameter = {};
|
|
1064
1126
|
const localVarBodyParameter = {};
|
|
1127
|
+
const localVarHeaderParameter = {};
|
|
1065
1128
|
if (coin !== void 0 && coin !== null) localVarQueryParameter["coin"] = coin;
|
|
1066
1129
|
if (withdrawOrderId !== void 0 && withdrawOrderId !== null) localVarQueryParameter["withdrawOrderId"] = withdrawOrderId;
|
|
1067
1130
|
if (network !== void 0 && network !== null) localVarQueryParameter["network"] = network;
|
|
@@ -1079,12 +1142,14 @@ const CapitalApiAxiosParamCreator = function(configuration) {
|
|
|
1079
1142
|
method: "POST",
|
|
1080
1143
|
queryParams: localVarQueryParameter,
|
|
1081
1144
|
bodyParams: localVarBodyParameter,
|
|
1145
|
+
headerParams: localVarHeaderParameter,
|
|
1082
1146
|
timeUnit: _timeUnit
|
|
1083
1147
|
};
|
|
1084
1148
|
},
|
|
1085
1149
|
withdrawHistory: async (coin, withdrawOrderId, status, offset, limit, idList, startTime, endTime, recvWindow) => {
|
|
1086
1150
|
const localVarQueryParameter = {};
|
|
1087
1151
|
const localVarBodyParameter = {};
|
|
1152
|
+
const localVarHeaderParameter = {};
|
|
1088
1153
|
if (coin !== void 0 && coin !== null) localVarQueryParameter["coin"] = coin;
|
|
1089
1154
|
if (withdrawOrderId !== void 0 && withdrawOrderId !== null) localVarQueryParameter["withdrawOrderId"] = withdrawOrderId;
|
|
1090
1155
|
if (status !== void 0 && status !== null) localVarQueryParameter["status"] = status;
|
|
@@ -1101,6 +1166,7 @@ const CapitalApiAxiosParamCreator = function(configuration) {
|
|
|
1101
1166
|
method: "GET",
|
|
1102
1167
|
queryParams: localVarQueryParameter,
|
|
1103
1168
|
bodyParams: localVarBodyParameter,
|
|
1169
|
+
headerParams: localVarHeaderParameter,
|
|
1104
1170
|
timeUnit: _timeUnit
|
|
1105
1171
|
};
|
|
1106
1172
|
}
|
|
@@ -1129,7 +1195,7 @@ var CapitalApi = class {
|
|
|
1129
1195
|
*/
|
|
1130
1196
|
async allCoinsInformation(requestParameters = {}) {
|
|
1131
1197
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.allCoinsInformation(requestParameters?.recvWindow);
|
|
1132
|
-
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 });
|
|
1133
1199
|
}
|
|
1134
1200
|
/**
|
|
1135
1201
|
* Fetch deposit address with network.
|
|
@@ -1149,7 +1215,7 @@ var CapitalApi = class {
|
|
|
1149
1215
|
*/
|
|
1150
1216
|
async depositAddress(requestParameters) {
|
|
1151
1217
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.depositAddress(requestParameters?.coin, requestParameters?.network, requestParameters?.amount, requestParameters?.recvWindow);
|
|
1152
|
-
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 });
|
|
1153
1219
|
}
|
|
1154
1220
|
/**
|
|
1155
1221
|
* Fetch deposit history.
|
|
@@ -1169,7 +1235,7 @@ var CapitalApi = class {
|
|
|
1169
1235
|
*/
|
|
1170
1236
|
async depositHistory(requestParameters = {}) {
|
|
1171
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);
|
|
1172
|
-
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 });
|
|
1173
1239
|
}
|
|
1174
1240
|
/**
|
|
1175
1241
|
* Fetch deposit address list with network.
|
|
@@ -1189,7 +1255,7 @@ var CapitalApi = class {
|
|
|
1189
1255
|
*/
|
|
1190
1256
|
async fetchDepositAddressListWithNetwork(requestParameters) {
|
|
1191
1257
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.fetchDepositAddressListWithNetwork(requestParameters?.coin, requestParameters?.network);
|
|
1192
|
-
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 });
|
|
1193
1259
|
}
|
|
1194
1260
|
/**
|
|
1195
1261
|
* Fetch withdraw address list
|
|
@@ -1204,7 +1270,7 @@ var CapitalApi = class {
|
|
|
1204
1270
|
*/
|
|
1205
1271
|
async fetchWithdrawAddressList() {
|
|
1206
1272
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.fetchWithdrawAddressList();
|
|
1207
|
-
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 });
|
|
1208
1274
|
}
|
|
1209
1275
|
/**
|
|
1210
1276
|
* Fetch withdraw quota
|
|
@@ -1219,7 +1285,7 @@ var CapitalApi = class {
|
|
|
1219
1285
|
*/
|
|
1220
1286
|
async fetchWithdrawQuota() {
|
|
1221
1287
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.fetchWithdrawQuota();
|
|
1222
|
-
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 });
|
|
1223
1289
|
}
|
|
1224
1290
|
/**
|
|
1225
1291
|
* Apply deposit credit for expired address (One click arrival)
|
|
@@ -1237,7 +1303,7 @@ var CapitalApi = class {
|
|
|
1237
1303
|
*/
|
|
1238
1304
|
async oneClickArrivalDepositApply(requestParameters = {}) {
|
|
1239
1305
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.oneClickArrivalDepositApply(requestParameters?.depositId, requestParameters?.txId, requestParameters?.subAccountId, requestParameters?.subUserId);
|
|
1240
|
-
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 });
|
|
1241
1307
|
}
|
|
1242
1308
|
/**
|
|
1243
1309
|
* Submit a withdraw request.
|
|
@@ -1261,7 +1327,7 @@ var CapitalApi = class {
|
|
|
1261
1327
|
*/
|
|
1262
1328
|
async withdraw(requestParameters) {
|
|
1263
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);
|
|
1264
|
-
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 });
|
|
1265
1331
|
}
|
|
1266
1332
|
/**
|
|
1267
1333
|
* Fetch withdraw history.
|
|
@@ -1285,7 +1351,7 @@ var CapitalApi = class {
|
|
|
1285
1351
|
*/
|
|
1286
1352
|
async withdrawHistory(requestParameters = {}) {
|
|
1287
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);
|
|
1288
|
-
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 });
|
|
1289
1355
|
}
|
|
1290
1356
|
};
|
|
1291
1357
|
|
|
@@ -1311,6 +1377,7 @@ const OthersApiAxiosParamCreator = function(configuration) {
|
|
|
1311
1377
|
getSymbolsDelistScheduleForSpot: async (recvWindow) => {
|
|
1312
1378
|
const localVarQueryParameter = {};
|
|
1313
1379
|
const localVarBodyParameter = {};
|
|
1380
|
+
const localVarHeaderParameter = {};
|
|
1314
1381
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
1315
1382
|
let _timeUnit;
|
|
1316
1383
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
@@ -1319,12 +1386,14 @@ const OthersApiAxiosParamCreator = function(configuration) {
|
|
|
1319
1386
|
method: "GET",
|
|
1320
1387
|
queryParams: localVarQueryParameter,
|
|
1321
1388
|
bodyParams: localVarBodyParameter,
|
|
1389
|
+
headerParams: localVarHeaderParameter,
|
|
1322
1390
|
timeUnit: _timeUnit
|
|
1323
1391
|
};
|
|
1324
1392
|
},
|
|
1325
1393
|
systemStatus: async () => {
|
|
1326
1394
|
const localVarQueryParameter = {};
|
|
1327
1395
|
const localVarBodyParameter = {};
|
|
1396
|
+
const localVarHeaderParameter = {};
|
|
1328
1397
|
let _timeUnit;
|
|
1329
1398
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
1330
1399
|
return {
|
|
@@ -1332,6 +1401,7 @@ const OthersApiAxiosParamCreator = function(configuration) {
|
|
|
1332
1401
|
method: "GET",
|
|
1333
1402
|
queryParams: localVarQueryParameter,
|
|
1334
1403
|
bodyParams: localVarBodyParameter,
|
|
1404
|
+
headerParams: localVarHeaderParameter,
|
|
1335
1405
|
timeUnit: _timeUnit
|
|
1336
1406
|
};
|
|
1337
1407
|
}
|
|
@@ -1360,7 +1430,7 @@ var OthersApi = class {
|
|
|
1360
1430
|
*/
|
|
1361
1431
|
async getSymbolsDelistScheduleForSpot(requestParameters = {}) {
|
|
1362
1432
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getSymbolsDelistScheduleForSpot(requestParameters?.recvWindow);
|
|
1363
|
-
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 });
|
|
1364
1434
|
}
|
|
1365
1435
|
/**
|
|
1366
1436
|
* Fetch system status.
|
|
@@ -1375,7 +1445,7 @@ var OthersApi = class {
|
|
|
1375
1445
|
*/
|
|
1376
1446
|
async systemStatus() {
|
|
1377
1447
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.systemStatus();
|
|
1378
|
-
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 });
|
|
1379
1449
|
}
|
|
1380
1450
|
};
|
|
1381
1451
|
|
|
@@ -1408,6 +1478,7 @@ const TravelRuleApiAxiosParamCreator = function(configuration) {
|
|
|
1408
1478
|
assertParamExists("brokerWithdraw", "signature", signature);
|
|
1409
1479
|
const localVarQueryParameter = {};
|
|
1410
1480
|
const localVarBodyParameter = {};
|
|
1481
|
+
const localVarHeaderParameter = {};
|
|
1411
1482
|
if (address !== void 0 && address !== null) localVarQueryParameter["address"] = address;
|
|
1412
1483
|
if (addressTag !== void 0 && addressTag !== null) localVarQueryParameter["addressTag"] = addressTag;
|
|
1413
1484
|
if (network !== void 0 && network !== null) localVarQueryParameter["network"] = network;
|
|
@@ -1427,12 +1498,14 @@ const TravelRuleApiAxiosParamCreator = function(configuration) {
|
|
|
1427
1498
|
method: "POST",
|
|
1428
1499
|
queryParams: localVarQueryParameter,
|
|
1429
1500
|
bodyParams: localVarBodyParameter,
|
|
1501
|
+
headerParams: localVarHeaderParameter,
|
|
1430
1502
|
timeUnit: _timeUnit
|
|
1431
1503
|
};
|
|
1432
1504
|
},
|
|
1433
1505
|
checkQuestionnaireRequirements: async (recvWindow) => {
|
|
1434
1506
|
const localVarQueryParameter = {};
|
|
1435
1507
|
const localVarBodyParameter = {};
|
|
1508
|
+
const localVarHeaderParameter = {};
|
|
1436
1509
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
1437
1510
|
let _timeUnit;
|
|
1438
1511
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
@@ -1441,12 +1514,14 @@ const TravelRuleApiAxiosParamCreator = function(configuration) {
|
|
|
1441
1514
|
method: "GET",
|
|
1442
1515
|
queryParams: localVarQueryParameter,
|
|
1443
1516
|
bodyParams: localVarBodyParameter,
|
|
1517
|
+
headerParams: localVarHeaderParameter,
|
|
1444
1518
|
timeUnit: _timeUnit
|
|
1445
1519
|
};
|
|
1446
1520
|
},
|
|
1447
1521
|
depositHistoryTravelRule: async (trId, txId, tranId, network, coin, travelRuleStatus, pendingQuestionnaire, startTime, endTime, offset, limit) => {
|
|
1448
1522
|
const localVarQueryParameter = {};
|
|
1449
1523
|
const localVarBodyParameter = {};
|
|
1524
|
+
const localVarHeaderParameter = {};
|
|
1450
1525
|
if (trId !== void 0 && trId !== null) localVarQueryParameter["trId"] = trId;
|
|
1451
1526
|
if (txId !== void 0 && txId !== null) localVarQueryParameter["txId"] = txId;
|
|
1452
1527
|
if (tranId !== void 0 && tranId !== null) localVarQueryParameter["tranId"] = tranId;
|
|
@@ -1465,12 +1540,14 @@ const TravelRuleApiAxiosParamCreator = function(configuration) {
|
|
|
1465
1540
|
method: "GET",
|
|
1466
1541
|
queryParams: localVarQueryParameter,
|
|
1467
1542
|
bodyParams: localVarBodyParameter,
|
|
1543
|
+
headerParams: localVarHeaderParameter,
|
|
1468
1544
|
timeUnit: _timeUnit
|
|
1469
1545
|
};
|
|
1470
1546
|
},
|
|
1471
1547
|
depositHistoryV2: async (depositId, txId, network, coin, retrieveQuestionnaire, startTime, endTime, offset, limit) => {
|
|
1472
1548
|
const localVarQueryParameter = {};
|
|
1473
1549
|
const localVarBodyParameter = {};
|
|
1550
|
+
const localVarHeaderParameter = {};
|
|
1474
1551
|
if (depositId !== void 0 && depositId !== null) localVarQueryParameter["depositId"] = depositId;
|
|
1475
1552
|
if (txId !== void 0 && txId !== null) localVarQueryParameter["txId"] = txId;
|
|
1476
1553
|
if (network !== void 0 && network !== null) localVarQueryParameter["network"] = network;
|
|
@@ -1487,12 +1564,14 @@ const TravelRuleApiAxiosParamCreator = function(configuration) {
|
|
|
1487
1564
|
method: "GET",
|
|
1488
1565
|
queryParams: localVarQueryParameter,
|
|
1489
1566
|
bodyParams: localVarBodyParameter,
|
|
1567
|
+
headerParams: localVarHeaderParameter,
|
|
1490
1568
|
timeUnit: _timeUnit
|
|
1491
1569
|
};
|
|
1492
1570
|
},
|
|
1493
1571
|
fetchAddressVerificationList: async (recvWindow) => {
|
|
1494
1572
|
const localVarQueryParameter = {};
|
|
1495
1573
|
const localVarBodyParameter = {};
|
|
1574
|
+
const localVarHeaderParameter = {};
|
|
1496
1575
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
1497
1576
|
let _timeUnit;
|
|
1498
1577
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
@@ -1501,6 +1580,39 @@ const TravelRuleApiAxiosParamCreator = function(configuration) {
|
|
|
1501
1580
|
method: "GET",
|
|
1502
1581
|
queryParams: localVarQueryParameter,
|
|
1503
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,
|
|
1504
1616
|
timeUnit: _timeUnit
|
|
1505
1617
|
};
|
|
1506
1618
|
},
|
|
@@ -1512,6 +1624,7 @@ const TravelRuleApiAxiosParamCreator = function(configuration) {
|
|
|
1512
1624
|
assertParamExists("submitDepositQuestionnaire", "signature", signature);
|
|
1513
1625
|
const localVarQueryParameter = {};
|
|
1514
1626
|
const localVarBodyParameter = {};
|
|
1627
|
+
const localVarHeaderParameter = {};
|
|
1515
1628
|
if (subAccountId !== void 0 && subAccountId !== null) localVarQueryParameter["subAccountId"] = subAccountId;
|
|
1516
1629
|
if (depositId !== void 0 && depositId !== null) localVarQueryParameter["depositId"] = depositId;
|
|
1517
1630
|
if (questionnaire !== void 0 && questionnaire !== null) localVarQueryParameter["questionnaire"] = questionnaire;
|
|
@@ -1529,6 +1642,7 @@ const TravelRuleApiAxiosParamCreator = function(configuration) {
|
|
|
1529
1642
|
method: "PUT",
|
|
1530
1643
|
queryParams: localVarQueryParameter,
|
|
1531
1644
|
bodyParams: localVarBodyParameter,
|
|
1645
|
+
headerParams: localVarHeaderParameter,
|
|
1532
1646
|
timeUnit: _timeUnit
|
|
1533
1647
|
};
|
|
1534
1648
|
},
|
|
@@ -1537,6 +1651,7 @@ const TravelRuleApiAxiosParamCreator = function(configuration) {
|
|
|
1537
1651
|
assertParamExists("submitDepositQuestionnaireTravelRule", "questionnaire", questionnaire);
|
|
1538
1652
|
const localVarQueryParameter = {};
|
|
1539
1653
|
const localVarBodyParameter = {};
|
|
1654
|
+
const localVarHeaderParameter = {};
|
|
1540
1655
|
if (tranId !== void 0 && tranId !== null) localVarQueryParameter["tranId"] = tranId;
|
|
1541
1656
|
if (questionnaire !== void 0 && questionnaire !== null) localVarQueryParameter["questionnaire"] = questionnaire;
|
|
1542
1657
|
let _timeUnit;
|
|
@@ -1546,6 +1661,7 @@ const TravelRuleApiAxiosParamCreator = function(configuration) {
|
|
|
1546
1661
|
method: "PUT",
|
|
1547
1662
|
queryParams: localVarQueryParameter,
|
|
1548
1663
|
bodyParams: localVarBodyParameter,
|
|
1664
|
+
headerParams: localVarHeaderParameter,
|
|
1549
1665
|
timeUnit: _timeUnit
|
|
1550
1666
|
};
|
|
1551
1667
|
},
|
|
@@ -1554,6 +1670,7 @@ const TravelRuleApiAxiosParamCreator = function(configuration) {
|
|
|
1554
1670
|
assertParamExists("submitDepositQuestionnaireV2", "questionnaire", questionnaire);
|
|
1555
1671
|
const localVarQueryParameter = {};
|
|
1556
1672
|
const localVarBodyParameter = {};
|
|
1673
|
+
const localVarHeaderParameter = {};
|
|
1557
1674
|
if (depositId !== void 0 && depositId !== null) localVarQueryParameter["depositId"] = depositId;
|
|
1558
1675
|
if (questionnaire !== void 0 && questionnaire !== null) localVarQueryParameter["questionnaire"] = questionnaire;
|
|
1559
1676
|
let _timeUnit;
|
|
@@ -1563,12 +1680,14 @@ const TravelRuleApiAxiosParamCreator = function(configuration) {
|
|
|
1563
1680
|
method: "PUT",
|
|
1564
1681
|
queryParams: localVarQueryParameter,
|
|
1565
1682
|
bodyParams: localVarBodyParameter,
|
|
1683
|
+
headerParams: localVarHeaderParameter,
|
|
1566
1684
|
timeUnit: _timeUnit
|
|
1567
1685
|
};
|
|
1568
1686
|
},
|
|
1569
1687
|
vaspList: async (recvWindow) => {
|
|
1570
1688
|
const localVarQueryParameter = {};
|
|
1571
1689
|
const localVarBodyParameter = {};
|
|
1690
|
+
const localVarHeaderParameter = {};
|
|
1572
1691
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
1573
1692
|
let _timeUnit;
|
|
1574
1693
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
@@ -1577,12 +1696,14 @@ const TravelRuleApiAxiosParamCreator = function(configuration) {
|
|
|
1577
1696
|
method: "GET",
|
|
1578
1697
|
queryParams: localVarQueryParameter,
|
|
1579
1698
|
bodyParams: localVarBodyParameter,
|
|
1699
|
+
headerParams: localVarHeaderParameter,
|
|
1580
1700
|
timeUnit: _timeUnit
|
|
1581
1701
|
};
|
|
1582
1702
|
},
|
|
1583
1703
|
withdrawHistoryV1: async (trId, txId, withdrawOrderId, network, coin, travelRuleStatus, offset, limit, startTime, endTime, recvWindow) => {
|
|
1584
1704
|
const localVarQueryParameter = {};
|
|
1585
1705
|
const localVarBodyParameter = {};
|
|
1706
|
+
const localVarHeaderParameter = {};
|
|
1586
1707
|
if (trId !== void 0 && trId !== null) localVarQueryParameter["trId"] = trId;
|
|
1587
1708
|
if (txId !== void 0 && txId !== null) localVarQueryParameter["txId"] = txId;
|
|
1588
1709
|
if (withdrawOrderId !== void 0 && withdrawOrderId !== null) localVarQueryParameter["withdrawOrderId"] = withdrawOrderId;
|
|
@@ -1601,12 +1722,14 @@ const TravelRuleApiAxiosParamCreator = function(configuration) {
|
|
|
1601
1722
|
method: "GET",
|
|
1602
1723
|
queryParams: localVarQueryParameter,
|
|
1603
1724
|
bodyParams: localVarBodyParameter,
|
|
1725
|
+
headerParams: localVarHeaderParameter,
|
|
1604
1726
|
timeUnit: _timeUnit
|
|
1605
1727
|
};
|
|
1606
1728
|
},
|
|
1607
1729
|
withdrawHistoryV2: async (trId, txId, withdrawOrderId, network, coin, travelRuleStatus, offset, limit, startTime, endTime, recvWindow) => {
|
|
1608
1730
|
const localVarQueryParameter = {};
|
|
1609
1731
|
const localVarBodyParameter = {};
|
|
1732
|
+
const localVarHeaderParameter = {};
|
|
1610
1733
|
if (trId !== void 0 && trId !== null) localVarQueryParameter["trId"] = trId;
|
|
1611
1734
|
if (txId !== void 0 && txId !== null) localVarQueryParameter["txId"] = txId;
|
|
1612
1735
|
if (withdrawOrderId !== void 0 && withdrawOrderId !== null) localVarQueryParameter["withdrawOrderId"] = withdrawOrderId;
|
|
@@ -1625,6 +1748,7 @@ const TravelRuleApiAxiosParamCreator = function(configuration) {
|
|
|
1625
1748
|
method: "GET",
|
|
1626
1749
|
queryParams: localVarQueryParameter,
|
|
1627
1750
|
bodyParams: localVarBodyParameter,
|
|
1751
|
+
headerParams: localVarHeaderParameter,
|
|
1628
1752
|
timeUnit: _timeUnit
|
|
1629
1753
|
};
|
|
1630
1754
|
},
|
|
@@ -1635,6 +1759,7 @@ const TravelRuleApiAxiosParamCreator = function(configuration) {
|
|
|
1635
1759
|
assertParamExists("withdrawTravelRule", "questionnaire", questionnaire);
|
|
1636
1760
|
const localVarQueryParameter = {};
|
|
1637
1761
|
const localVarBodyParameter = {};
|
|
1762
|
+
const localVarHeaderParameter = {};
|
|
1638
1763
|
if (coin !== void 0 && coin !== null) localVarQueryParameter["coin"] = coin;
|
|
1639
1764
|
if (withdrawOrderId !== void 0 && withdrawOrderId !== null) localVarQueryParameter["withdrawOrderId"] = withdrawOrderId;
|
|
1640
1765
|
if (network !== void 0 && network !== null) localVarQueryParameter["network"] = network;
|
|
@@ -1653,6 +1778,7 @@ const TravelRuleApiAxiosParamCreator = function(configuration) {
|
|
|
1653
1778
|
method: "POST",
|
|
1654
1779
|
queryParams: localVarQueryParameter,
|
|
1655
1780
|
bodyParams: localVarBodyParameter,
|
|
1781
|
+
headerParams: localVarHeaderParameter,
|
|
1656
1782
|
timeUnit: _timeUnit
|
|
1657
1783
|
};
|
|
1658
1784
|
}
|
|
@@ -1686,7 +1812,7 @@ var TravelRuleApi = class {
|
|
|
1686
1812
|
*/
|
|
1687
1813
|
async brokerWithdraw(requestParameters) {
|
|
1688
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);
|
|
1689
|
-
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 });
|
|
1690
1816
|
}
|
|
1691
1817
|
/**
|
|
1692
1818
|
* This API will return user-specific Travel Rule questionnaire requirement information in reference to the current API key.
|
|
@@ -1702,7 +1828,7 @@ var TravelRuleApi = class {
|
|
|
1702
1828
|
*/
|
|
1703
1829
|
async checkQuestionnaireRequirements(requestParameters = {}) {
|
|
1704
1830
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.checkQuestionnaireRequirements(requestParameters?.recvWindow);
|
|
1705
|
-
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 });
|
|
1706
1832
|
}
|
|
1707
1833
|
/**
|
|
1708
1834
|
* Fetch deposit history for local entities that required travel rule.
|
|
@@ -1722,7 +1848,7 @@ var TravelRuleApi = class {
|
|
|
1722
1848
|
*/
|
|
1723
1849
|
async depositHistoryTravelRule(requestParameters = {}) {
|
|
1724
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);
|
|
1725
|
-
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 });
|
|
1726
1852
|
}
|
|
1727
1853
|
/**
|
|
1728
1854
|
* Fetch deposit history for local entities that with required travel rule information.
|
|
@@ -1742,7 +1868,7 @@ var TravelRuleApi = class {
|
|
|
1742
1868
|
*/
|
|
1743
1869
|
async depositHistoryV2(requestParameters = {}) {
|
|
1744
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);
|
|
1745
|
-
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 });
|
|
1746
1872
|
}
|
|
1747
1873
|
/**
|
|
1748
1874
|
* Fetch address verification list for user to check on status and other details for the addresses stored in Address Book.
|
|
@@ -1758,7 +1884,38 @@ var TravelRuleApi = class {
|
|
|
1758
1884
|
*/
|
|
1759
1885
|
async fetchAddressVerificationList(requestParameters = {}) {
|
|
1760
1886
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.fetchAddressVerificationList(requestParameters?.recvWindow);
|
|
1761
|
-
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 });
|
|
1762
1919
|
}
|
|
1763
1920
|
/**
|
|
1764
1921
|
* Submit questionnaire for brokers of local entities that require travel rule.
|
|
@@ -1779,7 +1936,7 @@ var TravelRuleApi = class {
|
|
|
1779
1936
|
*/
|
|
1780
1937
|
async submitDepositQuestionnaire(requestParameters) {
|
|
1781
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);
|
|
1782
|
-
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 });
|
|
1783
1940
|
}
|
|
1784
1941
|
/**
|
|
1785
1942
|
* Submit questionnaire for local entities that require travel rule.
|
|
@@ -1800,7 +1957,7 @@ var TravelRuleApi = class {
|
|
|
1800
1957
|
*/
|
|
1801
1958
|
async submitDepositQuestionnaireTravelRule(requestParameters) {
|
|
1802
1959
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.submitDepositQuestionnaireTravelRule(requestParameters?.tranId, requestParameters?.questionnaire);
|
|
1803
|
-
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 });
|
|
1804
1961
|
}
|
|
1805
1962
|
/**
|
|
1806
1963
|
* Submit questionnaire for local entities that require travel rule.
|
|
@@ -1821,7 +1978,7 @@ var TravelRuleApi = class {
|
|
|
1821
1978
|
*/
|
|
1822
1979
|
async submitDepositQuestionnaireV2(requestParameters) {
|
|
1823
1980
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.submitDepositQuestionnaireV2(requestParameters?.depositId, requestParameters?.questionnaire);
|
|
1824
|
-
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 });
|
|
1825
1982
|
}
|
|
1826
1983
|
/**
|
|
1827
1984
|
* Fetch the VASP list for local entities.
|
|
@@ -1837,7 +1994,7 @@ var TravelRuleApi = class {
|
|
|
1837
1994
|
*/
|
|
1838
1995
|
async vaspList(requestParameters = {}) {
|
|
1839
1996
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.vaspList(requestParameters?.recvWindow);
|
|
1840
|
-
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 });
|
|
1841
1998
|
}
|
|
1842
1999
|
/**
|
|
1843
2000
|
* Fetch withdraw history for local entities that required travel rule.
|
|
@@ -1857,7 +2014,7 @@ var TravelRuleApi = class {
|
|
|
1857
2014
|
*/
|
|
1858
2015
|
async withdrawHistoryV1(requestParameters = {}) {
|
|
1859
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);
|
|
1860
|
-
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 });
|
|
1861
2018
|
}
|
|
1862
2019
|
/**
|
|
1863
2020
|
* Fetch withdraw history for local entities that required travel rule.
|
|
@@ -1883,7 +2040,7 @@ var TravelRuleApi = class {
|
|
|
1883
2040
|
*/
|
|
1884
2041
|
async withdrawHistoryV2(requestParameters = {}) {
|
|
1885
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);
|
|
1886
|
-
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 });
|
|
1887
2044
|
}
|
|
1888
2045
|
/**
|
|
1889
2046
|
* Submit a withdrawal request for local entities that required travel rule.
|
|
@@ -1904,7 +2061,7 @@ var TravelRuleApi = class {
|
|
|
1904
2061
|
*/
|
|
1905
2062
|
async withdrawTravelRule(requestParameters) {
|
|
1906
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);
|
|
1907
|
-
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 });
|
|
1908
2065
|
}
|
|
1909
2066
|
};
|
|
1910
2067
|
|
|
@@ -1941,7 +2098,7 @@ var RestAPI = class {
|
|
|
1941
2098
|
* @returns A promise resolving to the response data object.
|
|
1942
2099
|
*/
|
|
1943
2100
|
sendRequest(endpoint, method, queryParams = {}, bodyParams = {}) {
|
|
1944
|
-
return sendRequest(this.configuration, endpoint, method, queryParams, bodyParams, void 0);
|
|
2101
|
+
return sendRequest(this.configuration, endpoint, method, queryParams, bodyParams, void 0, void 0);
|
|
1945
2102
|
}
|
|
1946
2103
|
/**
|
|
1947
2104
|
* Generic function to send a signed request.
|
|
@@ -1953,7 +2110,7 @@ var RestAPI = class {
|
|
|
1953
2110
|
* @returns A promise resolving to the response data object.
|
|
1954
2111
|
*/
|
|
1955
2112
|
sendSignedRequest(endpoint, method, queryParams = {}, bodyParams = {}) {
|
|
1956
|
-
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 });
|
|
1957
2114
|
}
|
|
1958
2115
|
/**
|
|
1959
2116
|
* Fetch account api trading status detail.
|
|
@@ -2664,6 +2821,35 @@ var RestAPI = class {
|
|
|
2664
2821
|
return this.travelRuleApi.fetchAddressVerificationList(requestParameters);
|
|
2665
2822
|
}
|
|
2666
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
|
+
/**
|
|
2667
2853
|
* Submit questionnaire for brokers of local entities that require travel rule.
|
|
2668
2854
|
* The questionnaire is only applies to transactions from un-hosted wallets or VASPs that are not
|
|
2669
2855
|
* yet onboarded with GTR.
|