@binance/simple-earn 11.0.0 → 11.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +7 -5
- package/dist/index.d.ts +7 -5
- package/dist/index.js +169 -93
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +170 -88
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -14,7 +14,7 @@ let __binance_common = require("@binance/common");
|
|
|
14
14
|
|
|
15
15
|
//#region package.json
|
|
16
16
|
var name = "@binance/simple-earn";
|
|
17
|
-
var version = "11.
|
|
17
|
+
var version = "11.1.0";
|
|
18
18
|
|
|
19
19
|
//#endregion
|
|
20
20
|
//#region src/rest-api/modules/bfusd-api.ts
|
|
@@ -37,30 +37,35 @@ const BfusdApiAxiosParamCreator = function(configuration) {
|
|
|
37
37
|
return {
|
|
38
38
|
getBfusdAccount: async (recvWindow) => {
|
|
39
39
|
const localVarQueryParameter = {};
|
|
40
|
+
const localVarBodyParameter = {};
|
|
40
41
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
41
42
|
let _timeUnit;
|
|
42
43
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
43
44
|
return {
|
|
44
45
|
endpoint: "/sapi/v1/bfusd/account",
|
|
45
46
|
method: "GET",
|
|
46
|
-
|
|
47
|
+
queryParams: localVarQueryParameter,
|
|
48
|
+
bodyParams: localVarBodyParameter,
|
|
47
49
|
timeUnit: _timeUnit
|
|
48
50
|
};
|
|
49
51
|
},
|
|
50
52
|
getBfusdQuotaDetails: async (recvWindow) => {
|
|
51
53
|
const localVarQueryParameter = {};
|
|
54
|
+
const localVarBodyParameter = {};
|
|
52
55
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
53
56
|
let _timeUnit;
|
|
54
57
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
55
58
|
return {
|
|
56
59
|
endpoint: "/sapi/v1/bfusd/quota",
|
|
57
60
|
method: "GET",
|
|
58
|
-
|
|
61
|
+
queryParams: localVarQueryParameter,
|
|
62
|
+
bodyParams: localVarBodyParameter,
|
|
59
63
|
timeUnit: _timeUnit
|
|
60
64
|
};
|
|
61
65
|
},
|
|
62
66
|
getBfusdRateHistory: async (startTime, endTime, current, size, recvWindow) => {
|
|
63
67
|
const localVarQueryParameter = {};
|
|
68
|
+
const localVarBodyParameter = {};
|
|
64
69
|
if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
|
|
65
70
|
if (endTime !== void 0 && endTime !== null) localVarQueryParameter["endTime"] = endTime;
|
|
66
71
|
if (current !== void 0 && current !== null) localVarQueryParameter["current"] = current;
|
|
@@ -71,12 +76,14 @@ const BfusdApiAxiosParamCreator = function(configuration) {
|
|
|
71
76
|
return {
|
|
72
77
|
endpoint: "/sapi/v1/bfusd/history/rateHistory",
|
|
73
78
|
method: "GET",
|
|
74
|
-
|
|
79
|
+
queryParams: localVarQueryParameter,
|
|
80
|
+
bodyParams: localVarBodyParameter,
|
|
75
81
|
timeUnit: _timeUnit
|
|
76
82
|
};
|
|
77
83
|
},
|
|
78
84
|
getBfusdRedemptionHistory: async (startTime, endTime, current, size, recvWindow) => {
|
|
79
85
|
const localVarQueryParameter = {};
|
|
86
|
+
const localVarBodyParameter = {};
|
|
80
87
|
if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
|
|
81
88
|
if (endTime !== void 0 && endTime !== null) localVarQueryParameter["endTime"] = endTime;
|
|
82
89
|
if (current !== void 0 && current !== null) localVarQueryParameter["current"] = current;
|
|
@@ -87,12 +94,14 @@ const BfusdApiAxiosParamCreator = function(configuration) {
|
|
|
87
94
|
return {
|
|
88
95
|
endpoint: "/sapi/v1/bfusd/history/redemptionHistory",
|
|
89
96
|
method: "GET",
|
|
90
|
-
|
|
97
|
+
queryParams: localVarQueryParameter,
|
|
98
|
+
bodyParams: localVarBodyParameter,
|
|
91
99
|
timeUnit: _timeUnit
|
|
92
100
|
};
|
|
93
101
|
},
|
|
94
102
|
getBfusdRewardsHistory: async (startTime, endTime, current, size, recvWindow) => {
|
|
95
103
|
const localVarQueryParameter = {};
|
|
104
|
+
const localVarBodyParameter = {};
|
|
96
105
|
if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
|
|
97
106
|
if (endTime !== void 0 && endTime !== null) localVarQueryParameter["endTime"] = endTime;
|
|
98
107
|
if (current !== void 0 && current !== null) localVarQueryParameter["current"] = current;
|
|
@@ -103,12 +112,14 @@ const BfusdApiAxiosParamCreator = function(configuration) {
|
|
|
103
112
|
return {
|
|
104
113
|
endpoint: "/sapi/v1/bfusd/history/rewardsHistory",
|
|
105
114
|
method: "GET",
|
|
106
|
-
|
|
115
|
+
queryParams: localVarQueryParameter,
|
|
116
|
+
bodyParams: localVarBodyParameter,
|
|
107
117
|
timeUnit: _timeUnit
|
|
108
118
|
};
|
|
109
119
|
},
|
|
110
120
|
getBfusdSubscriptionHistory: async (asset, startTime, endTime, current, size, recvWindow) => {
|
|
111
121
|
const localVarQueryParameter = {};
|
|
122
|
+
const localVarBodyParameter = {};
|
|
112
123
|
if (asset !== void 0 && asset !== null) localVarQueryParameter["asset"] = asset;
|
|
113
124
|
if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
|
|
114
125
|
if (endTime !== void 0 && endTime !== null) localVarQueryParameter["endTime"] = endTime;
|
|
@@ -120,7 +131,8 @@ const BfusdApiAxiosParamCreator = function(configuration) {
|
|
|
120
131
|
return {
|
|
121
132
|
endpoint: "/sapi/v1/bfusd/history/subscriptionHistory",
|
|
122
133
|
method: "GET",
|
|
123
|
-
|
|
134
|
+
queryParams: localVarQueryParameter,
|
|
135
|
+
bodyParams: localVarBodyParameter,
|
|
124
136
|
timeUnit: _timeUnit
|
|
125
137
|
};
|
|
126
138
|
},
|
|
@@ -128,6 +140,7 @@ const BfusdApiAxiosParamCreator = function(configuration) {
|
|
|
128
140
|
(0, __binance_common.assertParamExists)("redeemBfusd", "amount", amount);
|
|
129
141
|
(0, __binance_common.assertParamExists)("redeemBfusd", "type", type);
|
|
130
142
|
const localVarQueryParameter = {};
|
|
143
|
+
const localVarBodyParameter = {};
|
|
131
144
|
if (amount !== void 0 && amount !== null) localVarQueryParameter["amount"] = amount;
|
|
132
145
|
if (type !== void 0 && type !== null) localVarQueryParameter["type"] = type;
|
|
133
146
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
@@ -136,7 +149,8 @@ const BfusdApiAxiosParamCreator = function(configuration) {
|
|
|
136
149
|
return {
|
|
137
150
|
endpoint: "/sapi/v1/bfusd/redeem",
|
|
138
151
|
method: "POST",
|
|
139
|
-
|
|
152
|
+
queryParams: localVarQueryParameter,
|
|
153
|
+
bodyParams: localVarBodyParameter,
|
|
140
154
|
timeUnit: _timeUnit
|
|
141
155
|
};
|
|
142
156
|
},
|
|
@@ -144,6 +158,7 @@ const BfusdApiAxiosParamCreator = function(configuration) {
|
|
|
144
158
|
(0, __binance_common.assertParamExists)("subscribeBfusd", "asset", asset);
|
|
145
159
|
(0, __binance_common.assertParamExists)("subscribeBfusd", "amount", amount);
|
|
146
160
|
const localVarQueryParameter = {};
|
|
161
|
+
const localVarBodyParameter = {};
|
|
147
162
|
if (asset !== void 0 && asset !== null) localVarQueryParameter["asset"] = asset;
|
|
148
163
|
if (amount !== void 0 && amount !== null) localVarQueryParameter["amount"] = amount;
|
|
149
164
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
@@ -152,7 +167,8 @@ const BfusdApiAxiosParamCreator = function(configuration) {
|
|
|
152
167
|
return {
|
|
153
168
|
endpoint: "/sapi/v1/bfusd/subscribe",
|
|
154
169
|
method: "POST",
|
|
155
|
-
|
|
170
|
+
queryParams: localVarQueryParameter,
|
|
171
|
+
bodyParams: localVarBodyParameter,
|
|
156
172
|
timeUnit: _timeUnit
|
|
157
173
|
};
|
|
158
174
|
}
|
|
@@ -181,7 +197,7 @@ var BfusdApi = class {
|
|
|
181
197
|
*/
|
|
182
198
|
async getBfusdAccount(requestParameters = {}) {
|
|
183
199
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getBfusdAccount(requestParameters?.recvWindow);
|
|
184
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
200
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
185
201
|
}
|
|
186
202
|
/**
|
|
187
203
|
* Get BFUSD quota details including fast redemption quota and standard redemption quota.
|
|
@@ -197,7 +213,7 @@ var BfusdApi = class {
|
|
|
197
213
|
*/
|
|
198
214
|
async getBfusdQuotaDetails(requestParameters = {}) {
|
|
199
215
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getBfusdQuotaDetails(requestParameters?.recvWindow);
|
|
200
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
216
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
201
217
|
}
|
|
202
218
|
/**
|
|
203
219
|
* Get BFUSD rate history sorted by descending order.
|
|
@@ -218,7 +234,7 @@ var BfusdApi = class {
|
|
|
218
234
|
*/
|
|
219
235
|
async getBfusdRateHistory(requestParameters = {}) {
|
|
220
236
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getBfusdRateHistory(requestParameters?.startTime, requestParameters?.endTime, requestParameters?.current, requestParameters?.size, requestParameters?.recvWindow);
|
|
221
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
237
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
222
238
|
}
|
|
223
239
|
/**
|
|
224
240
|
* Get BFUSD redemption history.
|
|
@@ -239,7 +255,7 @@ var BfusdApi = class {
|
|
|
239
255
|
*/
|
|
240
256
|
async getBfusdRedemptionHistory(requestParameters = {}) {
|
|
241
257
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getBfusdRedemptionHistory(requestParameters?.startTime, requestParameters?.endTime, requestParameters?.current, requestParameters?.size, requestParameters?.recvWindow);
|
|
242
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
258
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
243
259
|
}
|
|
244
260
|
/**
|
|
245
261
|
* Get BFUSD rewards history.
|
|
@@ -260,7 +276,7 @@ var BfusdApi = class {
|
|
|
260
276
|
*/
|
|
261
277
|
async getBfusdRewardsHistory(requestParameters = {}) {
|
|
262
278
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getBfusdRewardsHistory(requestParameters?.startTime, requestParameters?.endTime, requestParameters?.current, requestParameters?.size, requestParameters?.recvWindow);
|
|
263
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
279
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
264
280
|
}
|
|
265
281
|
/**
|
|
266
282
|
* Get BFUSD subscription history
|
|
@@ -281,7 +297,7 @@ var BfusdApi = class {
|
|
|
281
297
|
*/
|
|
282
298
|
async getBfusdSubscriptionHistory(requestParameters = {}) {
|
|
283
299
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getBfusdSubscriptionHistory(requestParameters?.asset, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.current, requestParameters?.size, requestParameters?.recvWindow);
|
|
284
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
300
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
285
301
|
}
|
|
286
302
|
/**
|
|
287
303
|
* Redeem BFUSD to USDT
|
|
@@ -299,7 +315,7 @@ var BfusdApi = class {
|
|
|
299
315
|
*/
|
|
300
316
|
async redeemBfusd(requestParameters) {
|
|
301
317
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.redeemBfusd(requestParameters?.amount, requestParameters?.type, requestParameters?.recvWindow);
|
|
302
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
318
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
303
319
|
}
|
|
304
320
|
/**
|
|
305
321
|
* Subscribe BFUSD
|
|
@@ -317,7 +333,7 @@ var BfusdApi = class {
|
|
|
317
333
|
*/
|
|
318
334
|
async subscribeBfusd(requestParameters) {
|
|
319
335
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.subscribeBfusd(requestParameters?.asset, requestParameters?.amount, requestParameters?.recvWindow);
|
|
320
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
336
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
321
337
|
}
|
|
322
338
|
};
|
|
323
339
|
|
|
@@ -342,6 +358,7 @@ const FlexibleLockedApiAxiosParamCreator = function(configuration) {
|
|
|
342
358
|
return {
|
|
343
359
|
getCollateralRecord: async (productId, startTime, endTime, current, size, recvWindow) => {
|
|
344
360
|
const localVarQueryParameter = {};
|
|
361
|
+
const localVarBodyParameter = {};
|
|
345
362
|
if (productId !== void 0 && productId !== null) localVarQueryParameter["productId"] = productId;
|
|
346
363
|
if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
|
|
347
364
|
if (endTime !== void 0 && endTime !== null) localVarQueryParameter["endTime"] = endTime;
|
|
@@ -353,13 +370,15 @@ const FlexibleLockedApiAxiosParamCreator = function(configuration) {
|
|
|
353
370
|
return {
|
|
354
371
|
endpoint: "/sapi/v1/simple-earn/flexible/history/collateralRecord",
|
|
355
372
|
method: "GET",
|
|
356
|
-
|
|
373
|
+
queryParams: localVarQueryParameter,
|
|
374
|
+
bodyParams: localVarBodyParameter,
|
|
357
375
|
timeUnit: _timeUnit
|
|
358
376
|
};
|
|
359
377
|
},
|
|
360
378
|
getFlexiblePersonalLeftQuota: async (productId, recvWindow) => {
|
|
361
379
|
(0, __binance_common.assertParamExists)("getFlexiblePersonalLeftQuota", "productId", productId);
|
|
362
380
|
const localVarQueryParameter = {};
|
|
381
|
+
const localVarBodyParameter = {};
|
|
363
382
|
if (productId !== void 0 && productId !== null) localVarQueryParameter["productId"] = productId;
|
|
364
383
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
365
384
|
let _timeUnit;
|
|
@@ -367,12 +386,14 @@ const FlexibleLockedApiAxiosParamCreator = function(configuration) {
|
|
|
367
386
|
return {
|
|
368
387
|
endpoint: "/sapi/v1/simple-earn/flexible/personalLeftQuota",
|
|
369
388
|
method: "GET",
|
|
370
|
-
|
|
389
|
+
queryParams: localVarQueryParameter,
|
|
390
|
+
bodyParams: localVarBodyParameter,
|
|
371
391
|
timeUnit: _timeUnit
|
|
372
392
|
};
|
|
373
393
|
},
|
|
374
394
|
getFlexibleProductPosition: async (asset, productId, current, size, recvWindow) => {
|
|
375
395
|
const localVarQueryParameter = {};
|
|
396
|
+
const localVarBodyParameter = {};
|
|
376
397
|
if (asset !== void 0 && asset !== null) localVarQueryParameter["asset"] = asset;
|
|
377
398
|
if (productId !== void 0 && productId !== null) localVarQueryParameter["productId"] = productId;
|
|
378
399
|
if (current !== void 0 && current !== null) localVarQueryParameter["current"] = current;
|
|
@@ -383,12 +404,14 @@ const FlexibleLockedApiAxiosParamCreator = function(configuration) {
|
|
|
383
404
|
return {
|
|
384
405
|
endpoint: "/sapi/v1/simple-earn/flexible/position",
|
|
385
406
|
method: "GET",
|
|
386
|
-
|
|
407
|
+
queryParams: localVarQueryParameter,
|
|
408
|
+
bodyParams: localVarBodyParameter,
|
|
387
409
|
timeUnit: _timeUnit
|
|
388
410
|
};
|
|
389
411
|
},
|
|
390
412
|
getFlexibleRedemptionRecord: async (productId, redeemId, asset, startTime, endTime, current, size, recvWindow) => {
|
|
391
413
|
const localVarQueryParameter = {};
|
|
414
|
+
const localVarBodyParameter = {};
|
|
392
415
|
if (productId !== void 0 && productId !== null) localVarQueryParameter["productId"] = productId;
|
|
393
416
|
if (redeemId !== void 0 && redeemId !== null) localVarQueryParameter["redeemId"] = redeemId;
|
|
394
417
|
if (asset !== void 0 && asset !== null) localVarQueryParameter["asset"] = asset;
|
|
@@ -402,13 +425,15 @@ const FlexibleLockedApiAxiosParamCreator = function(configuration) {
|
|
|
402
425
|
return {
|
|
403
426
|
endpoint: "/sapi/v1/simple-earn/flexible/history/redemptionRecord",
|
|
404
427
|
method: "GET",
|
|
405
|
-
|
|
428
|
+
queryParams: localVarQueryParameter,
|
|
429
|
+
bodyParams: localVarBodyParameter,
|
|
406
430
|
timeUnit: _timeUnit
|
|
407
431
|
};
|
|
408
432
|
},
|
|
409
433
|
getFlexibleRewardsHistory: async (type, productId, asset, startTime, endTime, current, size, recvWindow) => {
|
|
410
434
|
(0, __binance_common.assertParamExists)("getFlexibleRewardsHistory", "type", type);
|
|
411
435
|
const localVarQueryParameter = {};
|
|
436
|
+
const localVarBodyParameter = {};
|
|
412
437
|
if (productId !== void 0 && productId !== null) localVarQueryParameter["productId"] = productId;
|
|
413
438
|
if (asset !== void 0 && asset !== null) localVarQueryParameter["asset"] = asset;
|
|
414
439
|
if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
|
|
@@ -422,7 +447,8 @@ const FlexibleLockedApiAxiosParamCreator = function(configuration) {
|
|
|
422
447
|
return {
|
|
423
448
|
endpoint: "/sapi/v1/simple-earn/flexible/history/rewardsRecord",
|
|
424
449
|
method: "GET",
|
|
425
|
-
|
|
450
|
+
queryParams: localVarQueryParameter,
|
|
451
|
+
bodyParams: localVarBodyParameter,
|
|
426
452
|
timeUnit: _timeUnit
|
|
427
453
|
};
|
|
428
454
|
},
|
|
@@ -430,6 +456,7 @@ const FlexibleLockedApiAxiosParamCreator = function(configuration) {
|
|
|
430
456
|
(0, __binance_common.assertParamExists)("getFlexibleSubscriptionPreview", "productId", productId);
|
|
431
457
|
(0, __binance_common.assertParamExists)("getFlexibleSubscriptionPreview", "amount", amount);
|
|
432
458
|
const localVarQueryParameter = {};
|
|
459
|
+
const localVarBodyParameter = {};
|
|
433
460
|
if (productId !== void 0 && productId !== null) localVarQueryParameter["productId"] = productId;
|
|
434
461
|
if (amount !== void 0 && amount !== null) localVarQueryParameter["amount"] = amount;
|
|
435
462
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
@@ -438,12 +465,14 @@ const FlexibleLockedApiAxiosParamCreator = function(configuration) {
|
|
|
438
465
|
return {
|
|
439
466
|
endpoint: "/sapi/v1/simple-earn/flexible/subscriptionPreview",
|
|
440
467
|
method: "GET",
|
|
441
|
-
|
|
468
|
+
queryParams: localVarQueryParameter,
|
|
469
|
+
bodyParams: localVarBodyParameter,
|
|
442
470
|
timeUnit: _timeUnit
|
|
443
471
|
};
|
|
444
472
|
},
|
|
445
473
|
getFlexibleSubscriptionRecord: async (productId, purchaseId, asset, startTime, endTime, current, size, recvWindow) => {
|
|
446
474
|
const localVarQueryParameter = {};
|
|
475
|
+
const localVarBodyParameter = {};
|
|
447
476
|
if (productId !== void 0 && productId !== null) localVarQueryParameter["productId"] = productId;
|
|
448
477
|
if (purchaseId !== void 0 && purchaseId !== null) localVarQueryParameter["purchaseId"] = purchaseId;
|
|
449
478
|
if (asset !== void 0 && asset !== null) localVarQueryParameter["asset"] = asset;
|
|
@@ -457,13 +486,15 @@ const FlexibleLockedApiAxiosParamCreator = function(configuration) {
|
|
|
457
486
|
return {
|
|
458
487
|
endpoint: "/sapi/v1/simple-earn/flexible/history/subscriptionRecord",
|
|
459
488
|
method: "GET",
|
|
460
|
-
|
|
489
|
+
queryParams: localVarQueryParameter,
|
|
490
|
+
bodyParams: localVarBodyParameter,
|
|
461
491
|
timeUnit: _timeUnit
|
|
462
492
|
};
|
|
463
493
|
},
|
|
464
494
|
getLockedPersonalLeftQuota: async (projectId, recvWindow) => {
|
|
465
495
|
(0, __binance_common.assertParamExists)("getLockedPersonalLeftQuota", "projectId", projectId);
|
|
466
496
|
const localVarQueryParameter = {};
|
|
497
|
+
const localVarBodyParameter = {};
|
|
467
498
|
if (projectId !== void 0 && projectId !== null) localVarQueryParameter["projectId"] = projectId;
|
|
468
499
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
469
500
|
let _timeUnit;
|
|
@@ -471,12 +502,14 @@ const FlexibleLockedApiAxiosParamCreator = function(configuration) {
|
|
|
471
502
|
return {
|
|
472
503
|
endpoint: "/sapi/v1/simple-earn/locked/personalLeftQuota",
|
|
473
504
|
method: "GET",
|
|
474
|
-
|
|
505
|
+
queryParams: localVarQueryParameter,
|
|
506
|
+
bodyParams: localVarBodyParameter,
|
|
475
507
|
timeUnit: _timeUnit
|
|
476
508
|
};
|
|
477
509
|
},
|
|
478
510
|
getLockedProductPosition: async (asset, positionId, projectId, current, size, recvWindow) => {
|
|
479
511
|
const localVarQueryParameter = {};
|
|
512
|
+
const localVarBodyParameter = {};
|
|
480
513
|
if (asset !== void 0 && asset !== null) localVarQueryParameter["asset"] = asset;
|
|
481
514
|
if (positionId !== void 0 && positionId !== null) localVarQueryParameter["positionId"] = positionId;
|
|
482
515
|
if (projectId !== void 0 && projectId !== null) localVarQueryParameter["projectId"] = projectId;
|
|
@@ -488,12 +521,14 @@ const FlexibleLockedApiAxiosParamCreator = function(configuration) {
|
|
|
488
521
|
return {
|
|
489
522
|
endpoint: "/sapi/v1/simple-earn/locked/position",
|
|
490
523
|
method: "GET",
|
|
491
|
-
|
|
524
|
+
queryParams: localVarQueryParameter,
|
|
525
|
+
bodyParams: localVarBodyParameter,
|
|
492
526
|
timeUnit: _timeUnit
|
|
493
527
|
};
|
|
494
528
|
},
|
|
495
529
|
getLockedRedemptionRecord: async (positionId, redeemId, asset, startTime, endTime, current, size, recvWindow) => {
|
|
496
530
|
const localVarQueryParameter = {};
|
|
531
|
+
const localVarBodyParameter = {};
|
|
497
532
|
if (positionId !== void 0 && positionId !== null) localVarQueryParameter["positionId"] = positionId;
|
|
498
533
|
if (redeemId !== void 0 && redeemId !== null) localVarQueryParameter["redeemId"] = redeemId;
|
|
499
534
|
if (asset !== void 0 && asset !== null) localVarQueryParameter["asset"] = asset;
|
|
@@ -507,12 +542,14 @@ const FlexibleLockedApiAxiosParamCreator = function(configuration) {
|
|
|
507
542
|
return {
|
|
508
543
|
endpoint: "/sapi/v1/simple-earn/locked/history/redemptionRecord",
|
|
509
544
|
method: "GET",
|
|
510
|
-
|
|
545
|
+
queryParams: localVarQueryParameter,
|
|
546
|
+
bodyParams: localVarBodyParameter,
|
|
511
547
|
timeUnit: _timeUnit
|
|
512
548
|
};
|
|
513
549
|
},
|
|
514
550
|
getLockedRewardsHistory: async (positionId, asset, startTime, endTime, current, size, recvWindow) => {
|
|
515
551
|
const localVarQueryParameter = {};
|
|
552
|
+
const localVarBodyParameter = {};
|
|
516
553
|
if (positionId !== void 0 && positionId !== null) localVarQueryParameter["positionId"] = positionId;
|
|
517
554
|
if (asset !== void 0 && asset !== null) localVarQueryParameter["asset"] = asset;
|
|
518
555
|
if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
|
|
@@ -525,7 +562,8 @@ const FlexibleLockedApiAxiosParamCreator = function(configuration) {
|
|
|
525
562
|
return {
|
|
526
563
|
endpoint: "/sapi/v1/simple-earn/locked/history/rewardsRecord",
|
|
527
564
|
method: "GET",
|
|
528
|
-
|
|
565
|
+
queryParams: localVarQueryParameter,
|
|
566
|
+
bodyParams: localVarBodyParameter,
|
|
529
567
|
timeUnit: _timeUnit
|
|
530
568
|
};
|
|
531
569
|
},
|
|
@@ -533,6 +571,7 @@ const FlexibleLockedApiAxiosParamCreator = function(configuration) {
|
|
|
533
571
|
(0, __binance_common.assertParamExists)("getLockedSubscriptionPreview", "projectId", projectId);
|
|
534
572
|
(0, __binance_common.assertParamExists)("getLockedSubscriptionPreview", "amount", amount);
|
|
535
573
|
const localVarQueryParameter = {};
|
|
574
|
+
const localVarBodyParameter = {};
|
|
536
575
|
if (projectId !== void 0 && projectId !== null) localVarQueryParameter["projectId"] = projectId;
|
|
537
576
|
if (amount !== void 0 && amount !== null) localVarQueryParameter["amount"] = amount;
|
|
538
577
|
if (autoSubscribe !== void 0 && autoSubscribe !== null) localVarQueryParameter["autoSubscribe"] = autoSubscribe;
|
|
@@ -542,12 +581,14 @@ const FlexibleLockedApiAxiosParamCreator = function(configuration) {
|
|
|
542
581
|
return {
|
|
543
582
|
endpoint: "/sapi/v1/simple-earn/locked/subscriptionPreview",
|
|
544
583
|
method: "GET",
|
|
545
|
-
|
|
584
|
+
queryParams: localVarQueryParameter,
|
|
585
|
+
bodyParams: localVarBodyParameter,
|
|
546
586
|
timeUnit: _timeUnit
|
|
547
587
|
};
|
|
548
588
|
},
|
|
549
589
|
getLockedSubscriptionRecord: async (purchaseId, asset, startTime, endTime, current, size, recvWindow) => {
|
|
550
590
|
const localVarQueryParameter = {};
|
|
591
|
+
const localVarBodyParameter = {};
|
|
551
592
|
if (purchaseId !== void 0 && purchaseId !== null) localVarQueryParameter["purchaseId"] = purchaseId;
|
|
552
593
|
if (asset !== void 0 && asset !== null) localVarQueryParameter["asset"] = asset;
|
|
553
594
|
if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
|
|
@@ -560,13 +601,15 @@ const FlexibleLockedApiAxiosParamCreator = function(configuration) {
|
|
|
560
601
|
return {
|
|
561
602
|
endpoint: "/sapi/v1/simple-earn/locked/history/subscriptionRecord",
|
|
562
603
|
method: "GET",
|
|
563
|
-
|
|
604
|
+
queryParams: localVarQueryParameter,
|
|
605
|
+
bodyParams: localVarBodyParameter,
|
|
564
606
|
timeUnit: _timeUnit
|
|
565
607
|
};
|
|
566
608
|
},
|
|
567
609
|
getRateHistory: async (productId, aprPeriod, startTime, endTime, current, size, recvWindow) => {
|
|
568
610
|
(0, __binance_common.assertParamExists)("getRateHistory", "productId", productId);
|
|
569
611
|
const localVarQueryParameter = {};
|
|
612
|
+
const localVarBodyParameter = {};
|
|
570
613
|
if (productId !== void 0 && productId !== null) localVarQueryParameter["productId"] = productId;
|
|
571
614
|
if (aprPeriod !== void 0 && aprPeriod !== null) localVarQueryParameter["aprPeriod"] = aprPeriod;
|
|
572
615
|
if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
|
|
@@ -579,12 +622,14 @@ const FlexibleLockedApiAxiosParamCreator = function(configuration) {
|
|
|
579
622
|
return {
|
|
580
623
|
endpoint: "/sapi/v1/simple-earn/flexible/history/rateHistory",
|
|
581
624
|
method: "GET",
|
|
582
|
-
|
|
625
|
+
queryParams: localVarQueryParameter,
|
|
626
|
+
bodyParams: localVarBodyParameter,
|
|
583
627
|
timeUnit: _timeUnit
|
|
584
628
|
};
|
|
585
629
|
},
|
|
586
630
|
getSimpleEarnFlexibleProductList: async (asset, current, size, recvWindow) => {
|
|
587
631
|
const localVarQueryParameter = {};
|
|
632
|
+
const localVarBodyParameter = {};
|
|
588
633
|
if (asset !== void 0 && asset !== null) localVarQueryParameter["asset"] = asset;
|
|
589
634
|
if (current !== void 0 && current !== null) localVarQueryParameter["current"] = current;
|
|
590
635
|
if (size !== void 0 && size !== null) localVarQueryParameter["size"] = size;
|
|
@@ -594,12 +639,14 @@ const FlexibleLockedApiAxiosParamCreator = function(configuration) {
|
|
|
594
639
|
return {
|
|
595
640
|
endpoint: "/sapi/v1/simple-earn/flexible/list",
|
|
596
641
|
method: "GET",
|
|
597
|
-
|
|
642
|
+
queryParams: localVarQueryParameter,
|
|
643
|
+
bodyParams: localVarBodyParameter,
|
|
598
644
|
timeUnit: _timeUnit
|
|
599
645
|
};
|
|
600
646
|
},
|
|
601
647
|
getSimpleEarnLockedProductList: async (asset, current, size, recvWindow) => {
|
|
602
648
|
const localVarQueryParameter = {};
|
|
649
|
+
const localVarBodyParameter = {};
|
|
603
650
|
if (asset !== void 0 && asset !== null) localVarQueryParameter["asset"] = asset;
|
|
604
651
|
if (current !== void 0 && current !== null) localVarQueryParameter["current"] = current;
|
|
605
652
|
if (size !== void 0 && size !== null) localVarQueryParameter["size"] = size;
|
|
@@ -609,13 +656,15 @@ const FlexibleLockedApiAxiosParamCreator = function(configuration) {
|
|
|
609
656
|
return {
|
|
610
657
|
endpoint: "/sapi/v1/simple-earn/locked/list",
|
|
611
658
|
method: "GET",
|
|
612
|
-
|
|
659
|
+
queryParams: localVarQueryParameter,
|
|
660
|
+
bodyParams: localVarBodyParameter,
|
|
613
661
|
timeUnit: _timeUnit
|
|
614
662
|
};
|
|
615
663
|
},
|
|
616
664
|
redeemFlexibleProduct: async (productId, redeemAll, amount, destAccount, recvWindow) => {
|
|
617
665
|
(0, __binance_common.assertParamExists)("redeemFlexibleProduct", "productId", productId);
|
|
618
666
|
const localVarQueryParameter = {};
|
|
667
|
+
const localVarBodyParameter = {};
|
|
619
668
|
if (productId !== void 0 && productId !== null) localVarQueryParameter["productId"] = productId;
|
|
620
669
|
if (redeemAll !== void 0 && redeemAll !== null) localVarQueryParameter["redeemAll"] = redeemAll;
|
|
621
670
|
if (amount !== void 0 && amount !== null) localVarQueryParameter["amount"] = amount;
|
|
@@ -626,13 +675,15 @@ const FlexibleLockedApiAxiosParamCreator = function(configuration) {
|
|
|
626
675
|
return {
|
|
627
676
|
endpoint: "/sapi/v1/simple-earn/flexible/redeem",
|
|
628
677
|
method: "POST",
|
|
629
|
-
|
|
678
|
+
queryParams: localVarQueryParameter,
|
|
679
|
+
bodyParams: localVarBodyParameter,
|
|
630
680
|
timeUnit: _timeUnit
|
|
631
681
|
};
|
|
632
682
|
},
|
|
633
683
|
redeemLockedProduct: async (positionId, recvWindow) => {
|
|
634
684
|
(0, __binance_common.assertParamExists)("redeemLockedProduct", "positionId", positionId);
|
|
635
685
|
const localVarQueryParameter = {};
|
|
686
|
+
const localVarBodyParameter = {};
|
|
636
687
|
if (positionId !== void 0 && positionId !== null) localVarQueryParameter["positionId"] = positionId;
|
|
637
688
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
638
689
|
let _timeUnit;
|
|
@@ -640,7 +691,8 @@ const FlexibleLockedApiAxiosParamCreator = function(configuration) {
|
|
|
640
691
|
return {
|
|
641
692
|
endpoint: "/sapi/v1/simple-earn/locked/redeem",
|
|
642
693
|
method: "POST",
|
|
643
|
-
|
|
694
|
+
queryParams: localVarQueryParameter,
|
|
695
|
+
bodyParams: localVarBodyParameter,
|
|
644
696
|
timeUnit: _timeUnit
|
|
645
697
|
};
|
|
646
698
|
},
|
|
@@ -648,6 +700,7 @@ const FlexibleLockedApiAxiosParamCreator = function(configuration) {
|
|
|
648
700
|
(0, __binance_common.assertParamExists)("setFlexibleAutoSubscribe", "productId", productId);
|
|
649
701
|
(0, __binance_common.assertParamExists)("setFlexibleAutoSubscribe", "autoSubscribe", autoSubscribe);
|
|
650
702
|
const localVarQueryParameter = {};
|
|
703
|
+
const localVarBodyParameter = {};
|
|
651
704
|
if (productId !== void 0 && productId !== null) localVarQueryParameter["productId"] = productId;
|
|
652
705
|
if (autoSubscribe !== void 0 && autoSubscribe !== null) localVarQueryParameter["autoSubscribe"] = autoSubscribe;
|
|
653
706
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
@@ -656,7 +709,8 @@ const FlexibleLockedApiAxiosParamCreator = function(configuration) {
|
|
|
656
709
|
return {
|
|
657
710
|
endpoint: "/sapi/v1/simple-earn/flexible/setAutoSubscribe",
|
|
658
711
|
method: "POST",
|
|
659
|
-
|
|
712
|
+
queryParams: localVarQueryParameter,
|
|
713
|
+
bodyParams: localVarBodyParameter,
|
|
660
714
|
timeUnit: _timeUnit
|
|
661
715
|
};
|
|
662
716
|
},
|
|
@@ -664,6 +718,7 @@ const FlexibleLockedApiAxiosParamCreator = function(configuration) {
|
|
|
664
718
|
(0, __binance_common.assertParamExists)("setLockedAutoSubscribe", "positionId", positionId);
|
|
665
719
|
(0, __binance_common.assertParamExists)("setLockedAutoSubscribe", "autoSubscribe", autoSubscribe);
|
|
666
720
|
const localVarQueryParameter = {};
|
|
721
|
+
const localVarBodyParameter = {};
|
|
667
722
|
if (positionId !== void 0 && positionId !== null) localVarQueryParameter["positionId"] = positionId;
|
|
668
723
|
if (autoSubscribe !== void 0 && autoSubscribe !== null) localVarQueryParameter["autoSubscribe"] = autoSubscribe;
|
|
669
724
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
@@ -672,7 +727,8 @@ const FlexibleLockedApiAxiosParamCreator = function(configuration) {
|
|
|
672
727
|
return {
|
|
673
728
|
endpoint: "/sapi/v1/simple-earn/locked/setAutoSubscribe",
|
|
674
729
|
method: "POST",
|
|
675
|
-
|
|
730
|
+
queryParams: localVarQueryParameter,
|
|
731
|
+
bodyParams: localVarBodyParameter,
|
|
676
732
|
timeUnit: _timeUnit
|
|
677
733
|
};
|
|
678
734
|
},
|
|
@@ -680,6 +736,7 @@ const FlexibleLockedApiAxiosParamCreator = function(configuration) {
|
|
|
680
736
|
(0, __binance_common.assertParamExists)("setLockedProductRedeemOption", "positionId", positionId);
|
|
681
737
|
(0, __binance_common.assertParamExists)("setLockedProductRedeemOption", "redeemTo", redeemTo);
|
|
682
738
|
const localVarQueryParameter = {};
|
|
739
|
+
const localVarBodyParameter = {};
|
|
683
740
|
if (positionId !== void 0 && positionId !== null) localVarQueryParameter["positionId"] = positionId;
|
|
684
741
|
if (redeemTo !== void 0 && redeemTo !== null) localVarQueryParameter["redeemTo"] = redeemTo;
|
|
685
742
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
@@ -688,19 +745,22 @@ const FlexibleLockedApiAxiosParamCreator = function(configuration) {
|
|
|
688
745
|
return {
|
|
689
746
|
endpoint: "/sapi/v1/simple-earn/locked/setRedeemOption",
|
|
690
747
|
method: "POST",
|
|
691
|
-
|
|
748
|
+
queryParams: localVarQueryParameter,
|
|
749
|
+
bodyParams: localVarBodyParameter,
|
|
692
750
|
timeUnit: _timeUnit
|
|
693
751
|
};
|
|
694
752
|
},
|
|
695
753
|
simpleAccount: async (recvWindow) => {
|
|
696
754
|
const localVarQueryParameter = {};
|
|
755
|
+
const localVarBodyParameter = {};
|
|
697
756
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
698
757
|
let _timeUnit;
|
|
699
758
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
700
759
|
return {
|
|
701
760
|
endpoint: "/sapi/v1/simple-earn/account",
|
|
702
761
|
method: "GET",
|
|
703
|
-
|
|
762
|
+
queryParams: localVarQueryParameter,
|
|
763
|
+
bodyParams: localVarBodyParameter,
|
|
704
764
|
timeUnit: _timeUnit
|
|
705
765
|
};
|
|
706
766
|
},
|
|
@@ -708,6 +768,7 @@ const FlexibleLockedApiAxiosParamCreator = function(configuration) {
|
|
|
708
768
|
(0, __binance_common.assertParamExists)("subscribeFlexibleProduct", "productId", productId);
|
|
709
769
|
(0, __binance_common.assertParamExists)("subscribeFlexibleProduct", "amount", amount);
|
|
710
770
|
const localVarQueryParameter = {};
|
|
771
|
+
const localVarBodyParameter = {};
|
|
711
772
|
if (productId !== void 0 && productId !== null) localVarQueryParameter["productId"] = productId;
|
|
712
773
|
if (amount !== void 0 && amount !== null) localVarQueryParameter["amount"] = amount;
|
|
713
774
|
if (autoSubscribe !== void 0 && autoSubscribe !== null) localVarQueryParameter["autoSubscribe"] = autoSubscribe;
|
|
@@ -718,7 +779,8 @@ const FlexibleLockedApiAxiosParamCreator = function(configuration) {
|
|
|
718
779
|
return {
|
|
719
780
|
endpoint: "/sapi/v1/simple-earn/flexible/subscribe",
|
|
720
781
|
method: "POST",
|
|
721
|
-
|
|
782
|
+
queryParams: localVarQueryParameter,
|
|
783
|
+
bodyParams: localVarBodyParameter,
|
|
722
784
|
timeUnit: _timeUnit
|
|
723
785
|
};
|
|
724
786
|
},
|
|
@@ -726,6 +788,7 @@ const FlexibleLockedApiAxiosParamCreator = function(configuration) {
|
|
|
726
788
|
(0, __binance_common.assertParamExists)("subscribeLockedProduct", "projectId", projectId);
|
|
727
789
|
(0, __binance_common.assertParamExists)("subscribeLockedProduct", "amount", amount);
|
|
728
790
|
const localVarQueryParameter = {};
|
|
791
|
+
const localVarBodyParameter = {};
|
|
729
792
|
if (projectId !== void 0 && projectId !== null) localVarQueryParameter["projectId"] = projectId;
|
|
730
793
|
if (amount !== void 0 && amount !== null) localVarQueryParameter["amount"] = amount;
|
|
731
794
|
if (autoSubscribe !== void 0 && autoSubscribe !== null) localVarQueryParameter["autoSubscribe"] = autoSubscribe;
|
|
@@ -737,7 +800,8 @@ const FlexibleLockedApiAxiosParamCreator = function(configuration) {
|
|
|
737
800
|
return {
|
|
738
801
|
endpoint: "/sapi/v1/simple-earn/locked/subscribe",
|
|
739
802
|
method: "POST",
|
|
740
|
-
|
|
803
|
+
queryParams: localVarQueryParameter,
|
|
804
|
+
bodyParams: localVarBodyParameter,
|
|
741
805
|
timeUnit: _timeUnit
|
|
742
806
|
};
|
|
743
807
|
}
|
|
@@ -771,7 +835,7 @@ var FlexibleLockedApi = class {
|
|
|
771
835
|
*/
|
|
772
836
|
async getCollateralRecord(requestParameters = {}) {
|
|
773
837
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getCollateralRecord(requestParameters?.productId, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.current, requestParameters?.size, requestParameters?.recvWindow);
|
|
774
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
838
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
775
839
|
}
|
|
776
840
|
/**
|
|
777
841
|
* Get Flexible Personal Left Quota
|
|
@@ -787,7 +851,7 @@ var FlexibleLockedApi = class {
|
|
|
787
851
|
*/
|
|
788
852
|
async getFlexiblePersonalLeftQuota(requestParameters) {
|
|
789
853
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getFlexiblePersonalLeftQuota(requestParameters?.productId, requestParameters?.recvWindow);
|
|
790
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
854
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
791
855
|
}
|
|
792
856
|
/**
|
|
793
857
|
* Get Flexible Product Position
|
|
@@ -803,7 +867,7 @@ var FlexibleLockedApi = class {
|
|
|
803
867
|
*/
|
|
804
868
|
async getFlexibleProductPosition(requestParameters = {}) {
|
|
805
869
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getFlexibleProductPosition(requestParameters?.asset, requestParameters?.productId, requestParameters?.current, requestParameters?.size, requestParameters?.recvWindow);
|
|
806
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
870
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
807
871
|
}
|
|
808
872
|
/**
|
|
809
873
|
* Get Flexible Redemption Record
|
|
@@ -824,7 +888,7 @@ var FlexibleLockedApi = class {
|
|
|
824
888
|
*/
|
|
825
889
|
async getFlexibleRedemptionRecord(requestParameters = {}) {
|
|
826
890
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getFlexibleRedemptionRecord(requestParameters?.productId, requestParameters?.redeemId, requestParameters?.asset, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.current, requestParameters?.size, requestParameters?.recvWindow);
|
|
827
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
891
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
828
892
|
}
|
|
829
893
|
/**
|
|
830
894
|
* Get Flexible Rewards History
|
|
@@ -845,7 +909,7 @@ var FlexibleLockedApi = class {
|
|
|
845
909
|
*/
|
|
846
910
|
async getFlexibleRewardsHistory(requestParameters) {
|
|
847
911
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getFlexibleRewardsHistory(requestParameters?.type, requestParameters?.productId, requestParameters?.asset, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.current, requestParameters?.size, requestParameters?.recvWindow);
|
|
848
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
912
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
849
913
|
}
|
|
850
914
|
/**
|
|
851
915
|
* Get Flexible Subscription Preview
|
|
@@ -861,7 +925,7 @@ var FlexibleLockedApi = class {
|
|
|
861
925
|
*/
|
|
862
926
|
async getFlexibleSubscriptionPreview(requestParameters) {
|
|
863
927
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getFlexibleSubscriptionPreview(requestParameters?.productId, requestParameters?.amount, requestParameters?.recvWindow);
|
|
864
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
928
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
865
929
|
}
|
|
866
930
|
/**
|
|
867
931
|
* Get Flexible Subscription Record
|
|
@@ -882,7 +946,7 @@ var FlexibleLockedApi = class {
|
|
|
882
946
|
*/
|
|
883
947
|
async getFlexibleSubscriptionRecord(requestParameters = {}) {
|
|
884
948
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getFlexibleSubscriptionRecord(requestParameters?.productId, requestParameters?.purchaseId, requestParameters?.asset, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.current, requestParameters?.size, requestParameters?.recvWindow);
|
|
885
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
949
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
886
950
|
}
|
|
887
951
|
/**
|
|
888
952
|
* Get Locked Personal Left Quota
|
|
@@ -898,7 +962,7 @@ var FlexibleLockedApi = class {
|
|
|
898
962
|
*/
|
|
899
963
|
async getLockedPersonalLeftQuota(requestParameters) {
|
|
900
964
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getLockedPersonalLeftQuota(requestParameters?.projectId, requestParameters?.recvWindow);
|
|
901
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
965
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
902
966
|
}
|
|
903
967
|
/**
|
|
904
968
|
* Get Locked Product Position
|
|
@@ -914,7 +978,7 @@ var FlexibleLockedApi = class {
|
|
|
914
978
|
*/
|
|
915
979
|
async getLockedProductPosition(requestParameters = {}) {
|
|
916
980
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getLockedProductPosition(requestParameters?.asset, requestParameters?.positionId, requestParameters?.projectId, requestParameters?.current, requestParameters?.size, requestParameters?.recvWindow);
|
|
917
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
981
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
918
982
|
}
|
|
919
983
|
/**
|
|
920
984
|
* Get Locked Redemption Record
|
|
@@ -935,7 +999,7 @@ var FlexibleLockedApi = class {
|
|
|
935
999
|
*/
|
|
936
1000
|
async getLockedRedemptionRecord(requestParameters = {}) {
|
|
937
1001
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getLockedRedemptionRecord(requestParameters?.positionId, requestParameters?.redeemId, requestParameters?.asset, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.current, requestParameters?.size, requestParameters?.recvWindow);
|
|
938
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
1002
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
939
1003
|
}
|
|
940
1004
|
/**
|
|
941
1005
|
* Get Locked Rewards History
|
|
@@ -956,7 +1020,7 @@ var FlexibleLockedApi = class {
|
|
|
956
1020
|
*/
|
|
957
1021
|
async getLockedRewardsHistory(requestParameters = {}) {
|
|
958
1022
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getLockedRewardsHistory(requestParameters?.positionId, requestParameters?.asset, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.current, requestParameters?.size, requestParameters?.recvWindow);
|
|
959
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
1023
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
960
1024
|
}
|
|
961
1025
|
/**
|
|
962
1026
|
* Get Locked Subscription Preview
|
|
@@ -972,7 +1036,7 @@ var FlexibleLockedApi = class {
|
|
|
972
1036
|
*/
|
|
973
1037
|
async getLockedSubscriptionPreview(requestParameters) {
|
|
974
1038
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getLockedSubscriptionPreview(requestParameters?.projectId, requestParameters?.amount, requestParameters?.autoSubscribe, requestParameters?.recvWindow);
|
|
975
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
1039
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
976
1040
|
}
|
|
977
1041
|
/**
|
|
978
1042
|
* Get Locked Subscription Record
|
|
@@ -993,7 +1057,7 @@ var FlexibleLockedApi = class {
|
|
|
993
1057
|
*/
|
|
994
1058
|
async getLockedSubscriptionRecord(requestParameters = {}) {
|
|
995
1059
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getLockedSubscriptionRecord(requestParameters?.purchaseId, requestParameters?.asset, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.current, requestParameters?.size, requestParameters?.recvWindow);
|
|
996
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
1060
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
997
1061
|
}
|
|
998
1062
|
/**
|
|
999
1063
|
* Get Rate History
|
|
@@ -1014,7 +1078,7 @@ var FlexibleLockedApi = class {
|
|
|
1014
1078
|
*/
|
|
1015
1079
|
async getRateHistory(requestParameters) {
|
|
1016
1080
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getRateHistory(requestParameters?.productId, requestParameters?.aprPeriod, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.current, requestParameters?.size, requestParameters?.recvWindow);
|
|
1017
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
1081
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1018
1082
|
}
|
|
1019
1083
|
/**
|
|
1020
1084
|
* Get available Simple Earn flexible product list
|
|
@@ -1030,7 +1094,7 @@ var FlexibleLockedApi = class {
|
|
|
1030
1094
|
*/
|
|
1031
1095
|
async getSimpleEarnFlexibleProductList(requestParameters = {}) {
|
|
1032
1096
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getSimpleEarnFlexibleProductList(requestParameters?.asset, requestParameters?.current, requestParameters?.size, requestParameters?.recvWindow);
|
|
1033
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
1097
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1034
1098
|
}
|
|
1035
1099
|
/**
|
|
1036
1100
|
* Get Simple Earn Locked Product List
|
|
@@ -1048,7 +1112,7 @@ var FlexibleLockedApi = class {
|
|
|
1048
1112
|
*/
|
|
1049
1113
|
async getSimpleEarnLockedProductList(requestParameters = {}) {
|
|
1050
1114
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getSimpleEarnLockedProductList(requestParameters?.asset, requestParameters?.current, requestParameters?.size, requestParameters?.recvWindow);
|
|
1051
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
1115
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1052
1116
|
}
|
|
1053
1117
|
/**
|
|
1054
1118
|
* Redeem Flexible Product
|
|
@@ -1066,7 +1130,7 @@ var FlexibleLockedApi = class {
|
|
|
1066
1130
|
*/
|
|
1067
1131
|
async redeemFlexibleProduct(requestParameters) {
|
|
1068
1132
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.redeemFlexibleProduct(requestParameters?.productId, requestParameters?.redeemAll, requestParameters?.amount, requestParameters?.destAccount, requestParameters?.recvWindow);
|
|
1069
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
1133
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1070
1134
|
}
|
|
1071
1135
|
/**
|
|
1072
1136
|
* Redeem Locked Product
|
|
@@ -1084,7 +1148,7 @@ var FlexibleLockedApi = class {
|
|
|
1084
1148
|
*/
|
|
1085
1149
|
async redeemLockedProduct(requestParameters) {
|
|
1086
1150
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.redeemLockedProduct(requestParameters?.positionId, requestParameters?.recvWindow);
|
|
1087
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
1151
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1088
1152
|
}
|
|
1089
1153
|
/**
|
|
1090
1154
|
* Set Flexible Auto Subscribe
|
|
@@ -1100,7 +1164,7 @@ var FlexibleLockedApi = class {
|
|
|
1100
1164
|
*/
|
|
1101
1165
|
async setFlexibleAutoSubscribe(requestParameters) {
|
|
1102
1166
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.setFlexibleAutoSubscribe(requestParameters?.productId, requestParameters?.autoSubscribe, requestParameters?.recvWindow);
|
|
1103
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
1167
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1104
1168
|
}
|
|
1105
1169
|
/**
|
|
1106
1170
|
* Set locked auto subscribe
|
|
@@ -1116,7 +1180,7 @@ var FlexibleLockedApi = class {
|
|
|
1116
1180
|
*/
|
|
1117
1181
|
async setLockedAutoSubscribe(requestParameters) {
|
|
1118
1182
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.setLockedAutoSubscribe(requestParameters?.positionId, requestParameters?.autoSubscribe, requestParameters?.recvWindow);
|
|
1119
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
1183
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1120
1184
|
}
|
|
1121
1185
|
/**
|
|
1122
1186
|
* Set redeem option for Locked product
|
|
@@ -1132,7 +1196,7 @@ var FlexibleLockedApi = class {
|
|
|
1132
1196
|
*/
|
|
1133
1197
|
async setLockedProductRedeemOption(requestParameters) {
|
|
1134
1198
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.setLockedProductRedeemOption(requestParameters?.positionId, requestParameters?.redeemTo, requestParameters?.recvWindow);
|
|
1135
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
1199
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1136
1200
|
}
|
|
1137
1201
|
/**
|
|
1138
1202
|
* Simple Account query
|
|
@@ -1148,7 +1212,7 @@ var FlexibleLockedApi = class {
|
|
|
1148
1212
|
*/
|
|
1149
1213
|
async simpleAccount(requestParameters = {}) {
|
|
1150
1214
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.simpleAccount(requestParameters?.recvWindow);
|
|
1151
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
1215
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1152
1216
|
}
|
|
1153
1217
|
/**
|
|
1154
1218
|
* Subscribe Flexible Product
|
|
@@ -1166,7 +1230,7 @@ var FlexibleLockedApi = class {
|
|
|
1166
1230
|
*/
|
|
1167
1231
|
async subscribeFlexibleProduct(requestParameters) {
|
|
1168
1232
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.subscribeFlexibleProduct(requestParameters?.productId, requestParameters?.amount, requestParameters?.autoSubscribe, requestParameters?.sourceAccount, requestParameters?.recvWindow);
|
|
1169
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
1233
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1170
1234
|
}
|
|
1171
1235
|
/**
|
|
1172
1236
|
* Subscribe Locked Product
|
|
@@ -1184,7 +1248,7 @@ var FlexibleLockedApi = class {
|
|
|
1184
1248
|
*/
|
|
1185
1249
|
async subscribeLockedProduct(requestParameters) {
|
|
1186
1250
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.subscribeLockedProduct(requestParameters?.projectId, requestParameters?.amount, requestParameters?.autoSubscribe, requestParameters?.sourceAccount, requestParameters?.redeemTo, requestParameters?.recvWindow);
|
|
1187
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
1251
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1188
1252
|
}
|
|
1189
1253
|
};
|
|
1190
1254
|
|
|
@@ -1209,30 +1273,35 @@ const RwusdApiAxiosParamCreator = function(configuration) {
|
|
|
1209
1273
|
return {
|
|
1210
1274
|
getRwusdAccount: async (recvWindow) => {
|
|
1211
1275
|
const localVarQueryParameter = {};
|
|
1276
|
+
const localVarBodyParameter = {};
|
|
1212
1277
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
1213
1278
|
let _timeUnit;
|
|
1214
1279
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
1215
1280
|
return {
|
|
1216
1281
|
endpoint: "/sapi/v1/rwusd/account",
|
|
1217
1282
|
method: "GET",
|
|
1218
|
-
|
|
1283
|
+
queryParams: localVarQueryParameter,
|
|
1284
|
+
bodyParams: localVarBodyParameter,
|
|
1219
1285
|
timeUnit: _timeUnit
|
|
1220
1286
|
};
|
|
1221
1287
|
},
|
|
1222
1288
|
getRwusdQuotaDetails: async (recvWindow) => {
|
|
1223
1289
|
const localVarQueryParameter = {};
|
|
1290
|
+
const localVarBodyParameter = {};
|
|
1224
1291
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
1225
1292
|
let _timeUnit;
|
|
1226
1293
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
1227
1294
|
return {
|
|
1228
1295
|
endpoint: "/sapi/v1/rwusd/quota",
|
|
1229
1296
|
method: "GET",
|
|
1230
|
-
|
|
1297
|
+
queryParams: localVarQueryParameter,
|
|
1298
|
+
bodyParams: localVarBodyParameter,
|
|
1231
1299
|
timeUnit: _timeUnit
|
|
1232
1300
|
};
|
|
1233
1301
|
},
|
|
1234
1302
|
getRwusdRateHistory: async (startTime, endTime, current, size, recvWindow) => {
|
|
1235
1303
|
const localVarQueryParameter = {};
|
|
1304
|
+
const localVarBodyParameter = {};
|
|
1236
1305
|
if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
|
|
1237
1306
|
if (endTime !== void 0 && endTime !== null) localVarQueryParameter["endTime"] = endTime;
|
|
1238
1307
|
if (current !== void 0 && current !== null) localVarQueryParameter["current"] = current;
|
|
@@ -1243,12 +1312,14 @@ const RwusdApiAxiosParamCreator = function(configuration) {
|
|
|
1243
1312
|
return {
|
|
1244
1313
|
endpoint: "/sapi/v1/rwusd/history/rateHistory",
|
|
1245
1314
|
method: "GET",
|
|
1246
|
-
|
|
1315
|
+
queryParams: localVarQueryParameter,
|
|
1316
|
+
bodyParams: localVarBodyParameter,
|
|
1247
1317
|
timeUnit: _timeUnit
|
|
1248
1318
|
};
|
|
1249
1319
|
},
|
|
1250
1320
|
getRwusdRedemptionHistory: async (startTime, endTime, current, size, recvWindow) => {
|
|
1251
1321
|
const localVarQueryParameter = {};
|
|
1322
|
+
const localVarBodyParameter = {};
|
|
1252
1323
|
if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
|
|
1253
1324
|
if (endTime !== void 0 && endTime !== null) localVarQueryParameter["endTime"] = endTime;
|
|
1254
1325
|
if (current !== void 0 && current !== null) localVarQueryParameter["current"] = current;
|
|
@@ -1259,12 +1330,14 @@ const RwusdApiAxiosParamCreator = function(configuration) {
|
|
|
1259
1330
|
return {
|
|
1260
1331
|
endpoint: "/sapi/v1/rwusd/history/redemptionHistory",
|
|
1261
1332
|
method: "GET",
|
|
1262
|
-
|
|
1333
|
+
queryParams: localVarQueryParameter,
|
|
1334
|
+
bodyParams: localVarBodyParameter,
|
|
1263
1335
|
timeUnit: _timeUnit
|
|
1264
1336
|
};
|
|
1265
1337
|
},
|
|
1266
1338
|
getRwusdRewardsHistory: async (startTime, endTime, current, size, recvWindow) => {
|
|
1267
1339
|
const localVarQueryParameter = {};
|
|
1340
|
+
const localVarBodyParameter = {};
|
|
1268
1341
|
if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
|
|
1269
1342
|
if (endTime !== void 0 && endTime !== null) localVarQueryParameter["endTime"] = endTime;
|
|
1270
1343
|
if (current !== void 0 && current !== null) localVarQueryParameter["current"] = current;
|
|
@@ -1275,12 +1348,14 @@ const RwusdApiAxiosParamCreator = function(configuration) {
|
|
|
1275
1348
|
return {
|
|
1276
1349
|
endpoint: "/sapi/v1/rwusd/history/rewardsHistory",
|
|
1277
1350
|
method: "GET",
|
|
1278
|
-
|
|
1351
|
+
queryParams: localVarQueryParameter,
|
|
1352
|
+
bodyParams: localVarBodyParameter,
|
|
1279
1353
|
timeUnit: _timeUnit
|
|
1280
1354
|
};
|
|
1281
1355
|
},
|
|
1282
1356
|
getRwusdSubscriptionHistory: async (asset, startTime, endTime, current, size, recvWindow) => {
|
|
1283
1357
|
const localVarQueryParameter = {};
|
|
1358
|
+
const localVarBodyParameter = {};
|
|
1284
1359
|
if (asset !== void 0 && asset !== null) localVarQueryParameter["asset"] = asset;
|
|
1285
1360
|
if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
|
|
1286
1361
|
if (endTime !== void 0 && endTime !== null) localVarQueryParameter["endTime"] = endTime;
|
|
@@ -1292,7 +1367,8 @@ const RwusdApiAxiosParamCreator = function(configuration) {
|
|
|
1292
1367
|
return {
|
|
1293
1368
|
endpoint: "/sapi/v1/rwusd/history/subscriptionHistory",
|
|
1294
1369
|
method: "GET",
|
|
1295
|
-
|
|
1370
|
+
queryParams: localVarQueryParameter,
|
|
1371
|
+
bodyParams: localVarBodyParameter,
|
|
1296
1372
|
timeUnit: _timeUnit
|
|
1297
1373
|
};
|
|
1298
1374
|
},
|
|
@@ -1300,6 +1376,7 @@ const RwusdApiAxiosParamCreator = function(configuration) {
|
|
|
1300
1376
|
(0, __binance_common.assertParamExists)("redeemRwusd", "amount", amount);
|
|
1301
1377
|
(0, __binance_common.assertParamExists)("redeemRwusd", "type", type);
|
|
1302
1378
|
const localVarQueryParameter = {};
|
|
1379
|
+
const localVarBodyParameter = {};
|
|
1303
1380
|
if (amount !== void 0 && amount !== null) localVarQueryParameter["amount"] = amount;
|
|
1304
1381
|
if (type !== void 0 && type !== null) localVarQueryParameter["type"] = type;
|
|
1305
1382
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
@@ -1308,7 +1385,8 @@ const RwusdApiAxiosParamCreator = function(configuration) {
|
|
|
1308
1385
|
return {
|
|
1309
1386
|
endpoint: "/sapi/v1/rwusd/redeem",
|
|
1310
1387
|
method: "POST",
|
|
1311
|
-
|
|
1388
|
+
queryParams: localVarQueryParameter,
|
|
1389
|
+
bodyParams: localVarBodyParameter,
|
|
1312
1390
|
timeUnit: _timeUnit
|
|
1313
1391
|
};
|
|
1314
1392
|
},
|
|
@@ -1316,6 +1394,7 @@ const RwusdApiAxiosParamCreator = function(configuration) {
|
|
|
1316
1394
|
(0, __binance_common.assertParamExists)("subscribeRwusd", "asset", asset);
|
|
1317
1395
|
(0, __binance_common.assertParamExists)("subscribeRwusd", "amount", amount);
|
|
1318
1396
|
const localVarQueryParameter = {};
|
|
1397
|
+
const localVarBodyParameter = {};
|
|
1319
1398
|
if (asset !== void 0 && asset !== null) localVarQueryParameter["asset"] = asset;
|
|
1320
1399
|
if (amount !== void 0 && amount !== null) localVarQueryParameter["amount"] = amount;
|
|
1321
1400
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
@@ -1324,7 +1403,8 @@ const RwusdApiAxiosParamCreator = function(configuration) {
|
|
|
1324
1403
|
return {
|
|
1325
1404
|
endpoint: "/sapi/v1/rwusd/subscribe",
|
|
1326
1405
|
method: "POST",
|
|
1327
|
-
|
|
1406
|
+
queryParams: localVarQueryParameter,
|
|
1407
|
+
bodyParams: localVarBodyParameter,
|
|
1328
1408
|
timeUnit: _timeUnit
|
|
1329
1409
|
};
|
|
1330
1410
|
}
|
|
@@ -1353,7 +1433,7 @@ var RwusdApi = class {
|
|
|
1353
1433
|
*/
|
|
1354
1434
|
async getRwusdAccount(requestParameters = {}) {
|
|
1355
1435
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getRwusdAccount(requestParameters?.recvWindow);
|
|
1356
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
1436
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1357
1437
|
}
|
|
1358
1438
|
/**
|
|
1359
1439
|
* Get RWUSD quota details including subscription quota, fast redemption quota, and standard redemption quota.
|
|
@@ -1369,7 +1449,7 @@ var RwusdApi = class {
|
|
|
1369
1449
|
*/
|
|
1370
1450
|
async getRwusdQuotaDetails(requestParameters = {}) {
|
|
1371
1451
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getRwusdQuotaDetails(requestParameters?.recvWindow);
|
|
1372
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
1452
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1373
1453
|
}
|
|
1374
1454
|
/**
|
|
1375
1455
|
* Get RWUSD rate history sorted by descending order.
|
|
@@ -1390,7 +1470,7 @@ var RwusdApi = class {
|
|
|
1390
1470
|
*/
|
|
1391
1471
|
async getRwusdRateHistory(requestParameters = {}) {
|
|
1392
1472
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getRwusdRateHistory(requestParameters?.startTime, requestParameters?.endTime, requestParameters?.current, requestParameters?.size, requestParameters?.recvWindow);
|
|
1393
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
1473
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1394
1474
|
}
|
|
1395
1475
|
/**
|
|
1396
1476
|
* Get RWUSD redemption history.
|
|
@@ -1411,7 +1491,7 @@ var RwusdApi = class {
|
|
|
1411
1491
|
*/
|
|
1412
1492
|
async getRwusdRedemptionHistory(requestParameters = {}) {
|
|
1413
1493
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getRwusdRedemptionHistory(requestParameters?.startTime, requestParameters?.endTime, requestParameters?.current, requestParameters?.size, requestParameters?.recvWindow);
|
|
1414
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
1494
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1415
1495
|
}
|
|
1416
1496
|
/**
|
|
1417
1497
|
* Get RWUSD rewards history.
|
|
@@ -1432,7 +1512,7 @@ var RwusdApi = class {
|
|
|
1432
1512
|
*/
|
|
1433
1513
|
async getRwusdRewardsHistory(requestParameters = {}) {
|
|
1434
1514
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getRwusdRewardsHistory(requestParameters?.startTime, requestParameters?.endTime, requestParameters?.current, requestParameters?.size, requestParameters?.recvWindow);
|
|
1435
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
1515
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1436
1516
|
}
|
|
1437
1517
|
/**
|
|
1438
1518
|
* Get RWUSD subscription history
|
|
@@ -1453,7 +1533,7 @@ var RwusdApi = class {
|
|
|
1453
1533
|
*/
|
|
1454
1534
|
async getRwusdSubscriptionHistory(requestParameters = {}) {
|
|
1455
1535
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getRwusdSubscriptionHistory(requestParameters?.asset, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.current, requestParameters?.size, requestParameters?.recvWindow);
|
|
1456
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
1536
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1457
1537
|
}
|
|
1458
1538
|
/**
|
|
1459
1539
|
* Redeem RWUSD to USDC
|
|
@@ -1471,7 +1551,7 @@ var RwusdApi = class {
|
|
|
1471
1551
|
*/
|
|
1472
1552
|
async redeemRwusd(requestParameters) {
|
|
1473
1553
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.redeemRwusd(requestParameters?.amount, requestParameters?.type, requestParameters?.recvWindow);
|
|
1474
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
1554
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1475
1555
|
}
|
|
1476
1556
|
/**
|
|
1477
1557
|
* Subscribe RWUSD
|
|
@@ -1489,7 +1569,7 @@ var RwusdApi = class {
|
|
|
1489
1569
|
*/
|
|
1490
1570
|
async subscribeRwusd(requestParameters) {
|
|
1491
1571
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.subscribeRwusd(requestParameters?.asset, requestParameters?.amount, requestParameters?.recvWindow);
|
|
1492
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.
|
|
1572
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1493
1573
|
}
|
|
1494
1574
|
};
|
|
1495
1575
|
|
|
@@ -1518,23 +1598,25 @@ var RestAPI = class {
|
|
|
1518
1598
|
* Generic function to send a request.
|
|
1519
1599
|
* @param endpoint - The API endpoint to call.
|
|
1520
1600
|
* @param method - HTTP method to use (GET, POST, DELETE, etc.).
|
|
1521
|
-
* @param
|
|
1601
|
+
* @param queryParams - Query parameters for the request.
|
|
1602
|
+
* @param bodyParams - Body parameters for the request.
|
|
1522
1603
|
*
|
|
1523
1604
|
* @returns A promise resolving to the response data object.
|
|
1524
1605
|
*/
|
|
1525
|
-
sendRequest(endpoint, method,
|
|
1526
|
-
return (0, __binance_common.sendRequest)(this.configuration, endpoint, method,
|
|
1606
|
+
sendRequest(endpoint, method, queryParams = {}, bodyParams = {}) {
|
|
1607
|
+
return (0, __binance_common.sendRequest)(this.configuration, endpoint, method, queryParams, bodyParams, void 0);
|
|
1527
1608
|
}
|
|
1528
1609
|
/**
|
|
1529
1610
|
* Generic function to send a signed request.
|
|
1530
1611
|
* @param endpoint - The API endpoint to call.
|
|
1531
1612
|
* @param method - HTTP method to use (GET, POST, DELETE, etc.).
|
|
1532
|
-
* @param
|
|
1613
|
+
* @param queryParams - Query parameters for the request.
|
|
1614
|
+
* @param bodyParams - Body parameters for the request.
|
|
1533
1615
|
*
|
|
1534
1616
|
* @returns A promise resolving to the response data object.
|
|
1535
1617
|
*/
|
|
1536
|
-
sendSignedRequest(endpoint, method,
|
|
1537
|
-
return (0, __binance_common.sendRequest)(this.configuration, endpoint, method,
|
|
1618
|
+
sendSignedRequest(endpoint, method, queryParams = {}, bodyParams = {}) {
|
|
1619
|
+
return (0, __binance_common.sendRequest)(this.configuration, endpoint, method, queryParams, bodyParams, void 0, { isSigned: true });
|
|
1538
1620
|
}
|
|
1539
1621
|
/**
|
|
1540
1622
|
* Get BFUSD account information.
|
|
@@ -2270,12 +2352,6 @@ Object.defineProperty(exports, 'BadRequestError', {
|
|
|
2270
2352
|
return __binance_common.BadRequestError;
|
|
2271
2353
|
}
|
|
2272
2354
|
});
|
|
2273
|
-
Object.defineProperty(exports, 'ConfigurationSimpleEarn', {
|
|
2274
|
-
enumerable: true,
|
|
2275
|
-
get: function () {
|
|
2276
|
-
return ConfigurationSimpleEarn;
|
|
2277
|
-
}
|
|
2278
|
-
});
|
|
2279
2355
|
Object.defineProperty(exports, 'ConnectorClientError', {
|
|
2280
2356
|
enumerable: true,
|
|
2281
2357
|
get: function () {
|