@binance/simple-earn 8.0.0 → 9.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -7,26 +7,592 @@ var __export = (target, all) => {
7
7
  // src/simple-earn.ts
8
8
  import {
9
9
  buildUserAgent,
10
- ConfigurationRestAPI as ConfigurationRestAPI4,
10
+ ConfigurationRestAPI as ConfigurationRestAPI5,
11
11
  SIMPLE_EARN_REST_API_PROD_URL
12
12
  } from "@binance/common";
13
13
 
14
14
  // package.json
15
15
  var name = "@binance/simple-earn";
16
- var version = "8.0.0";
16
+ var version = "9.0.0";
17
17
 
18
18
  // src/rest-api/index.ts
19
19
  var rest_api_exports = {};
20
20
  __export(rest_api_exports, {
21
+ BfusdApi: () => BfusdApi,
21
22
  FlexibleLockedApi: () => FlexibleLockedApi,
22
23
  RestAPI: () => RestAPI,
23
24
  RwusdApi: () => RwusdApi
24
25
  });
25
26
 
27
+ // src/rest-api/modules/bfusd-api.ts
28
+ import {
29
+ assertParamExists,
30
+ sendRequest
31
+ } from "@binance/common";
32
+ var BfusdApiAxiosParamCreator = function(configuration) {
33
+ return {
34
+ /**
35
+ * Get BFUSD account information.
36
+ *
37
+ * Weight: 150
38
+ *
39
+ * @summary Get BFUSD Account (USER_DATA)
40
+ * @param {number} [recvWindow] The value cannot be greater than 60000 (ms)
41
+ *
42
+ * @throws {RequiredError}
43
+ */
44
+ getBfusdAccount: async (recvWindow) => {
45
+ const localVarQueryParameter = {};
46
+ if (recvWindow !== void 0 && recvWindow !== null) {
47
+ localVarQueryParameter["recvWindow"] = recvWindow;
48
+ }
49
+ let _timeUnit;
50
+ if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
51
+ return {
52
+ endpoint: "/sapi/v1/bfusd/account",
53
+ method: "GET",
54
+ params: localVarQueryParameter,
55
+ timeUnit: _timeUnit
56
+ };
57
+ },
58
+ /**
59
+ * Get BFUSD quota details including fast redemption quota and standard redemption quota.
60
+ *
61
+ * Weight: 150
62
+ *
63
+ * @summary Get BFUSD Quota Details (USER_DATA)
64
+ * @param {number} [recvWindow] The value cannot be greater than 60000 (ms)
65
+ *
66
+ * @throws {RequiredError}
67
+ */
68
+ getBfusdQuotaDetails: async (recvWindow) => {
69
+ const localVarQueryParameter = {};
70
+ if (recvWindow !== void 0 && recvWindow !== null) {
71
+ localVarQueryParameter["recvWindow"] = recvWindow;
72
+ }
73
+ let _timeUnit;
74
+ if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
75
+ return {
76
+ endpoint: "/sapi/v1/bfusd/quota",
77
+ method: "GET",
78
+ params: localVarQueryParameter,
79
+ timeUnit: _timeUnit
80
+ };
81
+ },
82
+ /**
83
+ * Get BFUSD rate history sorted by descending order.
84
+ *
85
+ * The time between `startTime` and `endTime` cannot be longer than 6 months.
86
+ * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.
87
+ * If `startTime` is sent but `endTime` is not sent, `endTime` will default to current time, and results from `startTime` onward will be returned.
88
+ * If `endTime` is sent but `startTime` is not sent, `startTime` defaults to the current time minus one month, and data between `startTime` and `endTime` will be returned.
89
+ *
90
+ * Weight: 150
91
+ *
92
+ * @summary Get BFUSD Rate History (USER_DATA)
93
+ * @param {number} [startTime]
94
+ * @param {number} [endTime]
95
+ * @param {number} [current] Currently querying page. Starts from 1. Default: 1
96
+ * @param {number} [size] Number of results per page. Default: 10, Max: 100
97
+ * @param {number} [recvWindow] The value cannot be greater than 60000 (ms)
98
+ *
99
+ * @throws {RequiredError}
100
+ */
101
+ getBfusdRateHistory: async (startTime, endTime, current, size, recvWindow) => {
102
+ const localVarQueryParameter = {};
103
+ if (startTime !== void 0 && startTime !== null) {
104
+ localVarQueryParameter["startTime"] = startTime;
105
+ }
106
+ if (endTime !== void 0 && endTime !== null) {
107
+ localVarQueryParameter["endTime"] = endTime;
108
+ }
109
+ if (current !== void 0 && current !== null) {
110
+ localVarQueryParameter["current"] = current;
111
+ }
112
+ if (size !== void 0 && size !== null) {
113
+ localVarQueryParameter["size"] = size;
114
+ }
115
+ if (recvWindow !== void 0 && recvWindow !== null) {
116
+ localVarQueryParameter["recvWindow"] = recvWindow;
117
+ }
118
+ let _timeUnit;
119
+ if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
120
+ return {
121
+ endpoint: "/sapi/v1/bfusd/history/rateHistory",
122
+ method: "GET",
123
+ params: localVarQueryParameter,
124
+ timeUnit: _timeUnit
125
+ };
126
+ },
127
+ /**
128
+ * Get BFUSD redemption history.
129
+ *
130
+ * The time between `startTime` and `endTime` cannot be longer than 6 months.
131
+ * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.
132
+ * If `startTime` is sent but `endTime` is not sent, `endTime` will default to current time, and results from `startTime` onward will be returned.
133
+ * If `endTime` is sent but `startTime` is not sent, `startTime` defaults to the current time minus one month, and data between `startTime` and `endTime` will be returned.
134
+ *
135
+ * Weight: 150
136
+ *
137
+ * @summary Get BFUSD Redemption History (USER_DATA)
138
+ * @param {number} [startTime]
139
+ * @param {number} [endTime]
140
+ * @param {number} [current] Currently querying page. Starts from 1. Default: 1
141
+ * @param {number} [size] Number of results per page. Default: 10, Max: 100
142
+ * @param {number} [recvWindow] The value cannot be greater than 60000 (ms)
143
+ *
144
+ * @throws {RequiredError}
145
+ */
146
+ getBfusdRedemptionHistory: async (startTime, endTime, current, size, recvWindow) => {
147
+ const localVarQueryParameter = {};
148
+ if (startTime !== void 0 && startTime !== null) {
149
+ localVarQueryParameter["startTime"] = startTime;
150
+ }
151
+ if (endTime !== void 0 && endTime !== null) {
152
+ localVarQueryParameter["endTime"] = endTime;
153
+ }
154
+ if (current !== void 0 && current !== null) {
155
+ localVarQueryParameter["current"] = current;
156
+ }
157
+ if (size !== void 0 && size !== null) {
158
+ localVarQueryParameter["size"] = size;
159
+ }
160
+ if (recvWindow !== void 0 && recvWindow !== null) {
161
+ localVarQueryParameter["recvWindow"] = recvWindow;
162
+ }
163
+ let _timeUnit;
164
+ if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
165
+ return {
166
+ endpoint: "/sapi/v1/bfusd/history/redemptionHistory",
167
+ method: "GET",
168
+ params: localVarQueryParameter,
169
+ timeUnit: _timeUnit
170
+ };
171
+ },
172
+ /**
173
+ * Get BFUSD rewards history.
174
+ *
175
+ * The time between `startTime` and `endTime` cannot be longer than 6 months.
176
+ * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.
177
+ * If `startTime` is sent but `endTime` is not sent, `endTime` will default to current time, and results from `startTime` onward will be returned.
178
+ * If `endTime` is sent but `startTime` is not sent, `startTime` defaults to the current time minus one month, and data between `startTime` and `endTime` will be returned.
179
+ *
180
+ * Weight: 150
181
+ *
182
+ * @summary Get BFUSD Rewards History (USER_DATA)
183
+ * @param {number} [startTime]
184
+ * @param {number} [endTime]
185
+ * @param {number} [current] Currently querying page. Starts from 1. Default: 1
186
+ * @param {number} [size] Number of results per page. Default: 10, Max: 100
187
+ * @param {number} [recvWindow] The value cannot be greater than 60000 (ms)
188
+ *
189
+ * @throws {RequiredError}
190
+ */
191
+ getBfusdRewardsHistory: async (startTime, endTime, current, size, recvWindow) => {
192
+ const localVarQueryParameter = {};
193
+ if (startTime !== void 0 && startTime !== null) {
194
+ localVarQueryParameter["startTime"] = startTime;
195
+ }
196
+ if (endTime !== void 0 && endTime !== null) {
197
+ localVarQueryParameter["endTime"] = endTime;
198
+ }
199
+ if (current !== void 0 && current !== null) {
200
+ localVarQueryParameter["current"] = current;
201
+ }
202
+ if (size !== void 0 && size !== null) {
203
+ localVarQueryParameter["size"] = size;
204
+ }
205
+ if (recvWindow !== void 0 && recvWindow !== null) {
206
+ localVarQueryParameter["recvWindow"] = recvWindow;
207
+ }
208
+ let _timeUnit;
209
+ if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
210
+ return {
211
+ endpoint: "/sapi/v1/bfusd/history/rewardsHistory",
212
+ method: "GET",
213
+ params: localVarQueryParameter,
214
+ timeUnit: _timeUnit
215
+ };
216
+ },
217
+ /**
218
+ * Get BFUSD subscription history
219
+ *
220
+ * The time between `startTime` and `endTime` cannot be longer than 6 months.
221
+ * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.
222
+ * If `startTime` is sent but `endTime` is not sent, `endTime` will default to current time, and results from `startTime` onward will be returned.
223
+ * If `endTime` is sent but `startTime` is not sent, `startTime` defaults to the current time advanced by one month, and data between `startTime` and `endTime` will be returned.
224
+ *
225
+ * Weight: 150
226
+ *
227
+ * @summary Get BFUSD subscription history(USER_DATA)
228
+ * @param {string} [asset] USDC or USDT
229
+ * @param {number} [startTime]
230
+ * @param {number} [endTime]
231
+ * @param {number} [current] Currently querying page. Starts from 1. Default: 1
232
+ * @param {number} [size] Number of results per page. Default: 10, Max: 100
233
+ * @param {number} [recvWindow] The value cannot be greater than 60000 (ms)
234
+ *
235
+ * @throws {RequiredError}
236
+ */
237
+ getBfusdSubscriptionHistory: async (asset, startTime, endTime, current, size, recvWindow) => {
238
+ const localVarQueryParameter = {};
239
+ if (asset !== void 0 && asset !== null) {
240
+ localVarQueryParameter["asset"] = asset;
241
+ }
242
+ if (startTime !== void 0 && startTime !== null) {
243
+ localVarQueryParameter["startTime"] = startTime;
244
+ }
245
+ if (endTime !== void 0 && endTime !== null) {
246
+ localVarQueryParameter["endTime"] = endTime;
247
+ }
248
+ if (current !== void 0 && current !== null) {
249
+ localVarQueryParameter["current"] = current;
250
+ }
251
+ if (size !== void 0 && size !== null) {
252
+ localVarQueryParameter["size"] = size;
253
+ }
254
+ if (recvWindow !== void 0 && recvWindow !== null) {
255
+ localVarQueryParameter["recvWindow"] = recvWindow;
256
+ }
257
+ let _timeUnit;
258
+ if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
259
+ return {
260
+ endpoint: "/sapi/v1/bfusd/history/subscriptionHistory",
261
+ method: "GET",
262
+ params: localVarQueryParameter,
263
+ timeUnit: _timeUnit
264
+ };
265
+ },
266
+ /**
267
+ * Redeem BFUSD to USDT
268
+ *
269
+ * You need to open Enable Spot & Margin Trading permission for the API Key which requests this endpoint.
270
+ *
271
+ * Weight: 150
272
+ *
273
+ * @summary Redeem BFUSD(TRADE)
274
+ * @param {number} amount Amount
275
+ * @param {string} type FAST or STANDARD, defaults to STANDARD
276
+ * @param {number} [recvWindow] The value cannot be greater than 60000 (ms)
277
+ *
278
+ * @throws {RequiredError}
279
+ */
280
+ redeemBfusd: async (amount, type, recvWindow) => {
281
+ assertParamExists("redeemBfusd", "amount", amount);
282
+ assertParamExists("redeemBfusd", "type", type);
283
+ const localVarQueryParameter = {};
284
+ if (amount !== void 0 && amount !== null) {
285
+ localVarQueryParameter["amount"] = amount;
286
+ }
287
+ if (type !== void 0 && type !== null) {
288
+ localVarQueryParameter["type"] = type;
289
+ }
290
+ if (recvWindow !== void 0 && recvWindow !== null) {
291
+ localVarQueryParameter["recvWindow"] = recvWindow;
292
+ }
293
+ let _timeUnit;
294
+ if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
295
+ return {
296
+ endpoint: "/sapi/v1/bfusd/redeem",
297
+ method: "POST",
298
+ params: localVarQueryParameter,
299
+ timeUnit: _timeUnit
300
+ };
301
+ },
302
+ /**
303
+ * Subscribe BFUSD
304
+ *
305
+ * You need to open Enable Spot & Margin Trading permission for the API Key which requests this endpoint.
306
+ *
307
+ * Weight: 150
308
+ *
309
+ * @summary Subscribe BFUSD(TRADE)
310
+ * @param {string} asset USDT or USDC (whichever is eligible)
311
+ * @param {number} amount Amount
312
+ * @param {number} [recvWindow] The value cannot be greater than 60000 (ms)
313
+ *
314
+ * @throws {RequiredError}
315
+ */
316
+ subscribeBfusd: async (asset, amount, recvWindow) => {
317
+ assertParamExists("subscribeBfusd", "asset", asset);
318
+ assertParamExists("subscribeBfusd", "amount", amount);
319
+ const localVarQueryParameter = {};
320
+ if (asset !== void 0 && asset !== null) {
321
+ localVarQueryParameter["asset"] = asset;
322
+ }
323
+ if (amount !== void 0 && amount !== null) {
324
+ localVarQueryParameter["amount"] = amount;
325
+ }
326
+ if (recvWindow !== void 0 && recvWindow !== null) {
327
+ localVarQueryParameter["recvWindow"] = recvWindow;
328
+ }
329
+ let _timeUnit;
330
+ if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
331
+ return {
332
+ endpoint: "/sapi/v1/bfusd/subscribe",
333
+ method: "POST",
334
+ params: localVarQueryParameter,
335
+ timeUnit: _timeUnit
336
+ };
337
+ }
338
+ };
339
+ };
340
+ var BfusdApi = class {
341
+ constructor(configuration) {
342
+ this.configuration = configuration;
343
+ this.localVarAxiosParamCreator = BfusdApiAxiosParamCreator(configuration);
344
+ }
345
+ /**
346
+ * Get BFUSD account information.
347
+ *
348
+ * Weight: 150
349
+ *
350
+ * @summary Get BFUSD Account (USER_DATA)
351
+ * @param {GetBfusdAccountRequest} requestParameters Request parameters.
352
+ * @returns {Promise<RestApiResponse<GetBfusdAccountResponse>>}
353
+ * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
354
+ * @memberof BfusdApi
355
+ * @see {@link https://developers.binance.com/docs/simple_earn/bfusd/account/ Binance API Documentation}
356
+ */
357
+ async getBfusdAccount(requestParameters = {}) {
358
+ const localVarAxiosArgs = await this.localVarAxiosParamCreator.getBfusdAccount(
359
+ requestParameters?.recvWindow
360
+ );
361
+ return sendRequest(
362
+ this.configuration,
363
+ localVarAxiosArgs.endpoint,
364
+ localVarAxiosArgs.method,
365
+ localVarAxiosArgs.params,
366
+ localVarAxiosArgs?.timeUnit,
367
+ { isSigned: true }
368
+ );
369
+ }
370
+ /**
371
+ * Get BFUSD quota details including fast redemption quota and standard redemption quota.
372
+ *
373
+ * Weight: 150
374
+ *
375
+ * @summary Get BFUSD Quota Details (USER_DATA)
376
+ * @param {GetBfusdQuotaDetailsRequest} requestParameters Request parameters.
377
+ * @returns {Promise<RestApiResponse<GetBfusdQuotaDetailsResponse>>}
378
+ * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
379
+ * @memberof BfusdApi
380
+ * @see {@link https://developers.binance.com/docs/simple_earn/bfusd/account/Get-BFUSD-Quota-Details Binance API Documentation}
381
+ */
382
+ async getBfusdQuotaDetails(requestParameters = {}) {
383
+ const localVarAxiosArgs = await this.localVarAxiosParamCreator.getBfusdQuotaDetails(
384
+ requestParameters?.recvWindow
385
+ );
386
+ return sendRequest(
387
+ this.configuration,
388
+ localVarAxiosArgs.endpoint,
389
+ localVarAxiosArgs.method,
390
+ localVarAxiosArgs.params,
391
+ localVarAxiosArgs?.timeUnit,
392
+ { isSigned: true }
393
+ );
394
+ }
395
+ /**
396
+ * Get BFUSD rate history sorted by descending order.
397
+ *
398
+ * The time between `startTime` and `endTime` cannot be longer than 6 months.
399
+ * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.
400
+ * If `startTime` is sent but `endTime` is not sent, `endTime` will default to current time, and results from `startTime` onward will be returned.
401
+ * If `endTime` is sent but `startTime` is not sent, `startTime` defaults to the current time minus one month, and data between `startTime` and `endTime` will be returned.
402
+ *
403
+ * Weight: 150
404
+ *
405
+ * @summary Get BFUSD Rate History (USER_DATA)
406
+ * @param {GetBfusdRateHistoryRequest} requestParameters Request parameters.
407
+ * @returns {Promise<RestApiResponse<GetBfusdRateHistoryResponse>>}
408
+ * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
409
+ * @memberof BfusdApi
410
+ * @see {@link https://developers.binance.com/docs/simple_earn/bfusd/history/Get-BFUSD-Rate-History Binance API Documentation}
411
+ */
412
+ async getBfusdRateHistory(requestParameters = {}) {
413
+ const localVarAxiosArgs = await this.localVarAxiosParamCreator.getBfusdRateHistory(
414
+ requestParameters?.startTime,
415
+ requestParameters?.endTime,
416
+ requestParameters?.current,
417
+ requestParameters?.size,
418
+ requestParameters?.recvWindow
419
+ );
420
+ return sendRequest(
421
+ this.configuration,
422
+ localVarAxiosArgs.endpoint,
423
+ localVarAxiosArgs.method,
424
+ localVarAxiosArgs.params,
425
+ localVarAxiosArgs?.timeUnit,
426
+ { isSigned: true }
427
+ );
428
+ }
429
+ /**
430
+ * Get BFUSD redemption history.
431
+ *
432
+ * The time between `startTime` and `endTime` cannot be longer than 6 months.
433
+ * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.
434
+ * If `startTime` is sent but `endTime` is not sent, `endTime` will default to current time, and results from `startTime` onward will be returned.
435
+ * If `endTime` is sent but `startTime` is not sent, `startTime` defaults to the current time minus one month, and data between `startTime` and `endTime` will be returned.
436
+ *
437
+ * Weight: 150
438
+ *
439
+ * @summary Get BFUSD Redemption History (USER_DATA)
440
+ * @param {GetBfusdRedemptionHistoryRequest} requestParameters Request parameters.
441
+ * @returns {Promise<RestApiResponse<GetBfusdRedemptionHistoryResponse>>}
442
+ * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
443
+ * @memberof BfusdApi
444
+ * @see {@link https://developers.binance.com/docs/simple_earn/bfusd/history/Get-BFUSD-Redemption-History Binance API Documentation}
445
+ */
446
+ async getBfusdRedemptionHistory(requestParameters = {}) {
447
+ const localVarAxiosArgs = await this.localVarAxiosParamCreator.getBfusdRedemptionHistory(
448
+ requestParameters?.startTime,
449
+ requestParameters?.endTime,
450
+ requestParameters?.current,
451
+ requestParameters?.size,
452
+ requestParameters?.recvWindow
453
+ );
454
+ return sendRequest(
455
+ this.configuration,
456
+ localVarAxiosArgs.endpoint,
457
+ localVarAxiosArgs.method,
458
+ localVarAxiosArgs.params,
459
+ localVarAxiosArgs?.timeUnit,
460
+ { isSigned: true }
461
+ );
462
+ }
463
+ /**
464
+ * Get BFUSD rewards history.
465
+ *
466
+ * The time between `startTime` and `endTime` cannot be longer than 6 months.
467
+ * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.
468
+ * If `startTime` is sent but `endTime` is not sent, `endTime` will default to current time, and results from `startTime` onward will be returned.
469
+ * If `endTime` is sent but `startTime` is not sent, `startTime` defaults to the current time minus one month, and data between `startTime` and `endTime` will be returned.
470
+ *
471
+ * Weight: 150
472
+ *
473
+ * @summary Get BFUSD Rewards History (USER_DATA)
474
+ * @param {GetBfusdRewardsHistoryRequest} requestParameters Request parameters.
475
+ * @returns {Promise<RestApiResponse<GetBfusdRewardsHistoryResponse>>}
476
+ * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
477
+ * @memberof BfusdApi
478
+ * @see {@link https://developers.binance.com/docs/simple_earn/bfusd/history/Get-BFUSD-Rewards-History Binance API Documentation}
479
+ */
480
+ async getBfusdRewardsHistory(requestParameters = {}) {
481
+ const localVarAxiosArgs = await this.localVarAxiosParamCreator.getBfusdRewardsHistory(
482
+ requestParameters?.startTime,
483
+ requestParameters?.endTime,
484
+ requestParameters?.current,
485
+ requestParameters?.size,
486
+ requestParameters?.recvWindow
487
+ );
488
+ return sendRequest(
489
+ this.configuration,
490
+ localVarAxiosArgs.endpoint,
491
+ localVarAxiosArgs.method,
492
+ localVarAxiosArgs.params,
493
+ localVarAxiosArgs?.timeUnit,
494
+ { isSigned: true }
495
+ );
496
+ }
497
+ /**
498
+ * Get BFUSD subscription history
499
+ *
500
+ * The time between `startTime` and `endTime` cannot be longer than 6 months.
501
+ * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.
502
+ * If `startTime` is sent but `endTime` is not sent, `endTime` will default to current time, and results from `startTime` onward will be returned.
503
+ * If `endTime` is sent but `startTime` is not sent, `startTime` defaults to the current time advanced by one month, and data between `startTime` and `endTime` will be returned.
504
+ *
505
+ * Weight: 150
506
+ *
507
+ * @summary Get BFUSD subscription history(USER_DATA)
508
+ * @param {GetBfusdSubscriptionHistoryRequest} requestParameters Request parameters.
509
+ * @returns {Promise<RestApiResponse<GetBfusdSubscriptionHistoryResponse>>}
510
+ * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
511
+ * @memberof BfusdApi
512
+ * @see {@link https://developers.binance.com/docs/simple_earn/bfusd/history/Get-BFUSD-subscription-history Binance API Documentation}
513
+ */
514
+ async getBfusdSubscriptionHistory(requestParameters = {}) {
515
+ const localVarAxiosArgs = await this.localVarAxiosParamCreator.getBfusdSubscriptionHistory(
516
+ requestParameters?.asset,
517
+ requestParameters?.startTime,
518
+ requestParameters?.endTime,
519
+ requestParameters?.current,
520
+ requestParameters?.size,
521
+ requestParameters?.recvWindow
522
+ );
523
+ return sendRequest(
524
+ this.configuration,
525
+ localVarAxiosArgs.endpoint,
526
+ localVarAxiosArgs.method,
527
+ localVarAxiosArgs.params,
528
+ localVarAxiosArgs?.timeUnit,
529
+ { isSigned: true }
530
+ );
531
+ }
532
+ /**
533
+ * Redeem BFUSD to USDT
534
+ *
535
+ * You need to open Enable Spot & Margin Trading permission for the API Key which requests this endpoint.
536
+ *
537
+ * Weight: 150
538
+ *
539
+ * @summary Redeem BFUSD(TRADE)
540
+ * @param {RedeemBfusdRequest} requestParameters Request parameters.
541
+ * @returns {Promise<RestApiResponse<RedeemBfusdResponse>>}
542
+ * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
543
+ * @memberof BfusdApi
544
+ * @see {@link https://developers.binance.com/docs/simple_earn/bfusd/earn/Redeem-BFUSD Binance API Documentation}
545
+ */
546
+ async redeemBfusd(requestParameters) {
547
+ const localVarAxiosArgs = await this.localVarAxiosParamCreator.redeemBfusd(
548
+ requestParameters?.amount,
549
+ requestParameters?.type,
550
+ requestParameters?.recvWindow
551
+ );
552
+ return sendRequest(
553
+ this.configuration,
554
+ localVarAxiosArgs.endpoint,
555
+ localVarAxiosArgs.method,
556
+ localVarAxiosArgs.params,
557
+ localVarAxiosArgs?.timeUnit,
558
+ { isSigned: true }
559
+ );
560
+ }
561
+ /**
562
+ * Subscribe BFUSD
563
+ *
564
+ * You need to open Enable Spot & Margin Trading permission for the API Key which requests this endpoint.
565
+ *
566
+ * Weight: 150
567
+ *
568
+ * @summary Subscribe BFUSD(TRADE)
569
+ * @param {SubscribeBfusdRequest} requestParameters Request parameters.
570
+ * @returns {Promise<RestApiResponse<SubscribeBfusdResponse>>}
571
+ * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
572
+ * @memberof BfusdApi
573
+ * @see {@link https://developers.binance.com/docs/simple_earn/bfusd/earn/Subscribe-BFUSD Binance API Documentation}
574
+ */
575
+ async subscribeBfusd(requestParameters) {
576
+ const localVarAxiosArgs = await this.localVarAxiosParamCreator.subscribeBfusd(
577
+ requestParameters?.asset,
578
+ requestParameters?.amount,
579
+ requestParameters?.recvWindow
580
+ );
581
+ return sendRequest(
582
+ this.configuration,
583
+ localVarAxiosArgs.endpoint,
584
+ localVarAxiosArgs.method,
585
+ localVarAxiosArgs.params,
586
+ localVarAxiosArgs?.timeUnit,
587
+ { isSigned: true }
588
+ );
589
+ }
590
+ };
591
+
26
592
  // src/rest-api/modules/flexible-locked-api.ts
27
593
  import {
28
- assertParamExists,
29
- sendRequest
594
+ assertParamExists as assertParamExists2,
595
+ sendRequest as sendRequest2
30
596
  } from "@binance/common";
31
597
  var FlexibleLockedApiAxiosParamCreator = function(configuration) {
32
598
  return {
@@ -44,9 +610,9 @@ var FlexibleLockedApiAxiosParamCreator = function(configuration) {
44
610
  * @param {string} [productId]
45
611
  * @param {number} [startTime]
46
612
  * @param {number} [endTime]
47
- * @param {number} [current] Currently querying the page. Start from 1. Default:1
48
- * @param {number} [size] Default:10, Max:100
49
- * @param {number} [recvWindow]
613
+ * @param {number} [current] Currently querying page. Starts from 1. Default: 1
614
+ * @param {number} [size] Number of results per page. Default: 10, Max: 100
615
+ * @param {number} [recvWindow] The value cannot be greater than 60000 (ms)
50
616
  *
51
617
  * @throws {RequiredError}
52
618
  */
@@ -86,12 +652,12 @@ var FlexibleLockedApiAxiosParamCreator = function(configuration) {
86
652
  *
87
653
  * @summary Get Flexible Personal Left Quota(USER_DATA)
88
654
  * @param {string} productId
89
- * @param {number} [recvWindow]
655
+ * @param {number} [recvWindow] The value cannot be greater than 60000 (ms)
90
656
  *
91
657
  * @throws {RequiredError}
92
658
  */
93
659
  getFlexiblePersonalLeftQuota: async (productId, recvWindow) => {
94
- assertParamExists("getFlexiblePersonalLeftQuota", "productId", productId);
660
+ assertParamExists2("getFlexiblePersonalLeftQuota", "productId", productId);
95
661
  const localVarQueryParameter = {};
96
662
  if (productId !== void 0 && productId !== null) {
97
663
  localVarQueryParameter["productId"] = productId;
@@ -116,9 +682,9 @@ var FlexibleLockedApiAxiosParamCreator = function(configuration) {
116
682
  * @summary Get Flexible Product Position(USER_DATA)
117
683
  * @param {string} [asset] USDC or USDT
118
684
  * @param {string} [productId]
119
- * @param {number} [current] Currently querying the page. Start from 1. Default:1
120
- * @param {number} [size] Default:10, Max:100
121
- * @param {number} [recvWindow]
685
+ * @param {number} [current] Currently querying page. Starts from 1. Default: 1
686
+ * @param {number} [size] Number of results per page. Default: 10, Max: 100
687
+ * @param {number} [recvWindow] The value cannot be greater than 60000 (ms)
122
688
  *
123
689
  * @throws {RequiredError}
124
690
  */
@@ -164,9 +730,9 @@ var FlexibleLockedApiAxiosParamCreator = function(configuration) {
164
730
  * @param {string} [asset] USDC or USDT
165
731
  * @param {number} [startTime]
166
732
  * @param {number} [endTime]
167
- * @param {number} [current] Currently querying the page. Start from 1. Default:1
168
- * @param {number} [size] Default:10, Max:100
169
- * @param {number} [recvWindow]
733
+ * @param {number} [current] Currently querying page. Starts from 1. Default: 1
734
+ * @param {number} [size] Number of results per page. Default: 10, Max: 100
735
+ * @param {number} [recvWindow] The value cannot be greater than 60000 (ms)
170
736
  *
171
737
  * @throws {RequiredError}
172
738
  */
@@ -221,14 +787,14 @@ var FlexibleLockedApiAxiosParamCreator = function(configuration) {
221
787
  * @param {string} [asset] USDC or USDT
222
788
  * @param {number} [startTime]
223
789
  * @param {number} [endTime]
224
- * @param {number} [current] Currently querying the page. Start from 1. Default:1
225
- * @param {number} [size] Default:10, Max:100
226
- * @param {number} [recvWindow]
790
+ * @param {number} [current] Currently querying page. Starts from 1. Default: 1
791
+ * @param {number} [size] Number of results per page. Default: 10, Max: 100
792
+ * @param {number} [recvWindow] The value cannot be greater than 60000 (ms)
227
793
  *
228
794
  * @throws {RequiredError}
229
795
  */
230
796
  getFlexibleRewardsHistory: async (type, productId, asset, startTime, endTime, current, size, recvWindow) => {
231
- assertParamExists("getFlexibleRewardsHistory", "type", type);
797
+ assertParamExists2("getFlexibleRewardsHistory", "type", type);
232
798
  const localVarQueryParameter = {};
233
799
  if (productId !== void 0 && productId !== null) {
234
800
  localVarQueryParameter["productId"] = productId;
@@ -271,13 +837,13 @@ var FlexibleLockedApiAxiosParamCreator = function(configuration) {
271
837
  * @summary Get Flexible Subscription Preview(USER_DATA)
272
838
  * @param {string} productId
273
839
  * @param {number} amount Amount
274
- * @param {number} [recvWindow]
840
+ * @param {number} [recvWindow] The value cannot be greater than 60000 (ms)
275
841
  *
276
842
  * @throws {RequiredError}
277
843
  */
278
844
  getFlexibleSubscriptionPreview: async (productId, amount, recvWindow) => {
279
- assertParamExists("getFlexibleSubscriptionPreview", "productId", productId);
280
- assertParamExists("getFlexibleSubscriptionPreview", "amount", amount);
845
+ assertParamExists2("getFlexibleSubscriptionPreview", "productId", productId);
846
+ assertParamExists2("getFlexibleSubscriptionPreview", "amount", amount);
281
847
  const localVarQueryParameter = {};
282
848
  if (productId !== void 0 && productId !== null) {
283
849
  localVarQueryParameter["productId"] = productId;
@@ -313,9 +879,9 @@ var FlexibleLockedApiAxiosParamCreator = function(configuration) {
313
879
  * @param {string} [asset] USDC or USDT
314
880
  * @param {number} [startTime]
315
881
  * @param {number} [endTime]
316
- * @param {number} [current] Currently querying the page. Start from 1. Default:1
317
- * @param {number} [size] Default:10, Max:100
318
- * @param {number} [recvWindow]
882
+ * @param {number} [current] Currently querying page. Starts from 1. Default: 1
883
+ * @param {number} [size] Number of results per page. Default: 10, Max: 100
884
+ * @param {number} [recvWindow] The value cannot be greater than 60000 (ms)
319
885
  *
320
886
  * @throws {RequiredError}
321
887
  */
@@ -361,12 +927,12 @@ var FlexibleLockedApiAxiosParamCreator = function(configuration) {
361
927
  *
362
928
  * @summary Get Locked Personal Left Quota(USER_DATA)
363
929
  * @param {string} projectId
364
- * @param {number} [recvWindow]
930
+ * @param {number} [recvWindow] The value cannot be greater than 60000 (ms)
365
931
  *
366
932
  * @throws {RequiredError}
367
933
  */
368
934
  getLockedPersonalLeftQuota: async (projectId, recvWindow) => {
369
- assertParamExists("getLockedPersonalLeftQuota", "projectId", projectId);
935
+ assertParamExists2("getLockedPersonalLeftQuota", "projectId", projectId);
370
936
  const localVarQueryParameter = {};
371
937
  if (projectId !== void 0 && projectId !== null) {
372
938
  localVarQueryParameter["projectId"] = projectId;
@@ -392,9 +958,9 @@ var FlexibleLockedApiAxiosParamCreator = function(configuration) {
392
958
  * @param {string} [asset] USDC or USDT
393
959
  * @param {number} [positionId]
394
960
  * @param {string} [projectId]
395
- * @param {number} [current] Currently querying the page. Start from 1. Default:1
396
- * @param {number} [size] Default:10, Max:100
397
- * @param {number} [recvWindow]
961
+ * @param {number} [current] Currently querying page. Starts from 1. Default: 1
962
+ * @param {number} [size] Number of results per page. Default: 10, Max: 100
963
+ * @param {number} [recvWindow] The value cannot be greater than 60000 (ms)
398
964
  *
399
965
  * @throws {RequiredError}
400
966
  */
@@ -443,9 +1009,9 @@ var FlexibleLockedApiAxiosParamCreator = function(configuration) {
443
1009
  * @param {string} [asset] USDC or USDT
444
1010
  * @param {number} [startTime]
445
1011
  * @param {number} [endTime]
446
- * @param {number} [current] Currently querying the page. Start from 1. Default:1
447
- * @param {number} [size] Default:10, Max:100
448
- * @param {number} [recvWindow]
1012
+ * @param {number} [current] Currently querying page. Starts from 1. Default: 1
1013
+ * @param {number} [size] Number of results per page. Default: 10, Max: 100
1014
+ * @param {number} [recvWindow] The value cannot be greater than 60000 (ms)
449
1015
  *
450
1016
  * @throws {RequiredError}
451
1017
  */
@@ -499,9 +1065,9 @@ var FlexibleLockedApiAxiosParamCreator = function(configuration) {
499
1065
  * @param {string} [asset] USDC or USDT
500
1066
  * @param {number} [startTime]
501
1067
  * @param {number} [endTime]
502
- * @param {number} [current] Currently querying the page. Start from 1. Default:1
503
- * @param {number} [size] Default:10, Max:100
504
- * @param {number} [recvWindow]
1068
+ * @param {number} [current] Currently querying page. Starts from 1. Default: 1
1069
+ * @param {number} [size] Number of results per page. Default: 10, Max: 100
1070
+ * @param {number} [recvWindow] The value cannot be greater than 60000 (ms)
505
1071
  *
506
1072
  * @throws {RequiredError}
507
1073
  */
@@ -546,13 +1112,13 @@ var FlexibleLockedApiAxiosParamCreator = function(configuration) {
546
1112
  * @param {string} projectId
547
1113
  * @param {number} amount Amount
548
1114
  * @param {boolean} [autoSubscribe] true or false, default true.
549
- * @param {number} [recvWindow]
1115
+ * @param {number} [recvWindow] The value cannot be greater than 60000 (ms)
550
1116
  *
551
1117
  * @throws {RequiredError}
552
1118
  */
553
1119
  getLockedSubscriptionPreview: async (projectId, amount, autoSubscribe, recvWindow) => {
554
- assertParamExists("getLockedSubscriptionPreview", "projectId", projectId);
555
- assertParamExists("getLockedSubscriptionPreview", "amount", amount);
1120
+ assertParamExists2("getLockedSubscriptionPreview", "projectId", projectId);
1121
+ assertParamExists2("getLockedSubscriptionPreview", "amount", amount);
556
1122
  const localVarQueryParameter = {};
557
1123
  if (projectId !== void 0 && projectId !== null) {
558
1124
  localVarQueryParameter["projectId"] = projectId;
@@ -590,9 +1156,9 @@ var FlexibleLockedApiAxiosParamCreator = function(configuration) {
590
1156
  * @param {string} [asset] USDC or USDT
591
1157
  * @param {number} [startTime]
592
1158
  * @param {number} [endTime]
593
- * @param {number} [current] Currently querying the page. Start from 1. Default:1
594
- * @param {number} [size] Default:10, Max:100
595
- * @param {number} [recvWindow]
1159
+ * @param {number} [current] Currently querying page. Starts from 1. Default: 1
1160
+ * @param {number} [size] Number of results per page. Default: 10, Max: 100
1161
+ * @param {number} [recvWindow] The value cannot be greater than 60000 (ms)
596
1162
  *
597
1163
  * @throws {RequiredError}
598
1164
  */
@@ -643,14 +1209,14 @@ var FlexibleLockedApiAxiosParamCreator = function(configuration) {
643
1209
  * @param {string} [aprPeriod] "DAY","YEAR",default"DAY"
644
1210
  * @param {number} [startTime]
645
1211
  * @param {number} [endTime]
646
- * @param {number} [current] Currently querying the page. Start from 1. Default:1
647
- * @param {number} [size] Default:10, Max:100
648
- * @param {number} [recvWindow]
1212
+ * @param {number} [current] Currently querying page. Starts from 1. Default: 1
1213
+ * @param {number} [size] Number of results per page. Default: 10, Max: 100
1214
+ * @param {number} [recvWindow] The value cannot be greater than 60000 (ms)
649
1215
  *
650
1216
  * @throws {RequiredError}
651
1217
  */
652
1218
  getRateHistory: async (productId, aprPeriod, startTime, endTime, current, size, recvWindow) => {
653
- assertParamExists("getRateHistory", "productId", productId);
1219
+ assertParamExists2("getRateHistory", "productId", productId);
654
1220
  const localVarQueryParameter = {};
655
1221
  if (productId !== void 0 && productId !== null) {
656
1222
  localVarQueryParameter["productId"] = productId;
@@ -689,9 +1255,9 @@ var FlexibleLockedApiAxiosParamCreator = function(configuration) {
689
1255
  *
690
1256
  * @summary Get Simple Earn Flexible Product List(USER_DATA)
691
1257
  * @param {string} [asset] USDC or USDT
692
- * @param {number} [current] Currently querying the page. Start from 1. Default:1
693
- * @param {number} [size] Default:10, Max:100
694
- * @param {number} [recvWindow]
1258
+ * @param {number} [current] Currently querying page. Starts from 1. Default: 1
1259
+ * @param {number} [size] Number of results per page. Default: 10, Max: 100
1260
+ * @param {number} [recvWindow] The value cannot be greater than 60000 (ms)
695
1261
  *
696
1262
  * @throws {RequiredError}
697
1263
  */
@@ -727,9 +1293,9 @@ var FlexibleLockedApiAxiosParamCreator = function(configuration) {
727
1293
  *
728
1294
  * @summary Get Simple Earn Locked Product List(USER_DATA)
729
1295
  * @param {string} [asset] USDC or USDT
730
- * @param {number} [current] Currently querying the page. Start from 1. Default:1
731
- * @param {number} [size] Default:10, Max:100
732
- * @param {number} [recvWindow]
1296
+ * @param {number} [current] Currently querying page. Starts from 1. Default: 1
1297
+ * @param {number} [size] Number of results per page. Default: 10, Max: 100
1298
+ * @param {number} [recvWindow] The value cannot be greater than 60000 (ms)
733
1299
  *
734
1300
  * @throws {RequiredError}
735
1301
  */
@@ -768,12 +1334,12 @@ var FlexibleLockedApiAxiosParamCreator = function(configuration) {
768
1334
  * @param {boolean} [redeemAll] true or false, default to false
769
1335
  * @param {number} [amount] if redeemAll is false, amount is mandatory
770
1336
  * @param {string} [destAccount] `SPOT`,`FUND`, default `SPOT`
771
- * @param {number} [recvWindow]
1337
+ * @param {number} [recvWindow] The value cannot be greater than 60000 (ms)
772
1338
  *
773
1339
  * @throws {RequiredError}
774
1340
  */
775
1341
  redeemFlexibleProduct: async (productId, redeemAll, amount, destAccount, recvWindow) => {
776
- assertParamExists("redeemFlexibleProduct", "productId", productId);
1342
+ assertParamExists2("redeemFlexibleProduct", "productId", productId);
777
1343
  const localVarQueryParameter = {};
778
1344
  if (productId !== void 0 && productId !== null) {
779
1345
  localVarQueryParameter["productId"] = productId;
@@ -808,12 +1374,12 @@ var FlexibleLockedApiAxiosParamCreator = function(configuration) {
808
1374
  *
809
1375
  * @summary Redeem Locked Product(TRADE)
810
1376
  * @param {string} positionId
811
- * @param {number} [recvWindow]
1377
+ * @param {number} [recvWindow] The value cannot be greater than 60000 (ms)
812
1378
  *
813
1379
  * @throws {RequiredError}
814
1380
  */
815
1381
  redeemLockedProduct: async (positionId, recvWindow) => {
816
- assertParamExists("redeemLockedProduct", "positionId", positionId);
1382
+ assertParamExists2("redeemLockedProduct", "positionId", positionId);
817
1383
  const localVarQueryParameter = {};
818
1384
  if (positionId !== void 0 && positionId !== null) {
819
1385
  localVarQueryParameter["positionId"] = positionId;
@@ -838,13 +1404,13 @@ var FlexibleLockedApiAxiosParamCreator = function(configuration) {
838
1404
  * @summary Set Flexible Auto Subscribe(USER_DATA)
839
1405
  * @param {string} productId
840
1406
  * @param {boolean} autoSubscribe true or false
841
- * @param {number} [recvWindow]
1407
+ * @param {number} [recvWindow] The value cannot be greater than 60000 (ms)
842
1408
  *
843
1409
  * @throws {RequiredError}
844
1410
  */
845
1411
  setFlexibleAutoSubscribe: async (productId, autoSubscribe, recvWindow) => {
846
- assertParamExists("setFlexibleAutoSubscribe", "productId", productId);
847
- assertParamExists("setFlexibleAutoSubscribe", "autoSubscribe", autoSubscribe);
1412
+ assertParamExists2("setFlexibleAutoSubscribe", "productId", productId);
1413
+ assertParamExists2("setFlexibleAutoSubscribe", "autoSubscribe", autoSubscribe);
848
1414
  const localVarQueryParameter = {};
849
1415
  if (productId !== void 0 && productId !== null) {
850
1416
  localVarQueryParameter["productId"] = productId;
@@ -872,13 +1438,13 @@ var FlexibleLockedApiAxiosParamCreator = function(configuration) {
872
1438
  * @summary Set Locked Auto Subscribe(USER_DATA)
873
1439
  * @param {string} positionId
874
1440
  * @param {boolean} autoSubscribe true or false
875
- * @param {number} [recvWindow]
1441
+ * @param {number} [recvWindow] The value cannot be greater than 60000 (ms)
876
1442
  *
877
1443
  * @throws {RequiredError}
878
1444
  */
879
1445
  setLockedAutoSubscribe: async (positionId, autoSubscribe, recvWindow) => {
880
- assertParamExists("setLockedAutoSubscribe", "positionId", positionId);
881
- assertParamExists("setLockedAutoSubscribe", "autoSubscribe", autoSubscribe);
1446
+ assertParamExists2("setLockedAutoSubscribe", "positionId", positionId);
1447
+ assertParamExists2("setLockedAutoSubscribe", "autoSubscribe", autoSubscribe);
882
1448
  const localVarQueryParameter = {};
883
1449
  if (positionId !== void 0 && positionId !== null) {
884
1450
  localVarQueryParameter["positionId"] = positionId;
@@ -906,13 +1472,13 @@ var FlexibleLockedApiAxiosParamCreator = function(configuration) {
906
1472
  * @summary Set Locked Product Redeem Option(USER_DATA)
907
1473
  * @param {string} positionId
908
1474
  * @param {string} redeemTo `SPOT`,'FLEXIBLE'
909
- * @param {number} [recvWindow]
1475
+ * @param {number} [recvWindow] The value cannot be greater than 60000 (ms)
910
1476
  *
911
1477
  * @throws {RequiredError}
912
1478
  */
913
1479
  setLockedProductRedeemOption: async (positionId, redeemTo, recvWindow) => {
914
- assertParamExists("setLockedProductRedeemOption", "positionId", positionId);
915
- assertParamExists("setLockedProductRedeemOption", "redeemTo", redeemTo);
1480
+ assertParamExists2("setLockedProductRedeemOption", "positionId", positionId);
1481
+ assertParamExists2("setLockedProductRedeemOption", "redeemTo", redeemTo);
916
1482
  const localVarQueryParameter = {};
917
1483
  if (positionId !== void 0 && positionId !== null) {
918
1484
  localVarQueryParameter["positionId"] = positionId;
@@ -938,7 +1504,7 @@ var FlexibleLockedApiAxiosParamCreator = function(configuration) {
938
1504
  * Weight: 150
939
1505
  *
940
1506
  * @summary Simple Account(USER_DATA)
941
- * @param {number} [recvWindow]
1507
+ * @param {number} [recvWindow] The value cannot be greater than 60000 (ms)
942
1508
  *
943
1509
  * @throws {RequiredError}
944
1510
  */
@@ -968,13 +1534,13 @@ var FlexibleLockedApiAxiosParamCreator = function(configuration) {
968
1534
  * @param {number} amount Amount
969
1535
  * @param {boolean} [autoSubscribe] true or false, default true.
970
1536
  * @param {string} [sourceAccount] `SPOT`,`FUND`,`ALL`, default `SPOT`
971
- * @param {number} [recvWindow]
1537
+ * @param {number} [recvWindow] The value cannot be greater than 60000 (ms)
972
1538
  *
973
1539
  * @throws {RequiredError}
974
1540
  */
975
1541
  subscribeFlexibleProduct: async (productId, amount, autoSubscribe, sourceAccount, recvWindow) => {
976
- assertParamExists("subscribeFlexibleProduct", "productId", productId);
977
- assertParamExists("subscribeFlexibleProduct", "amount", amount);
1542
+ assertParamExists2("subscribeFlexibleProduct", "productId", productId);
1543
+ assertParamExists2("subscribeFlexibleProduct", "amount", amount);
978
1544
  const localVarQueryParameter = {};
979
1545
  if (productId !== void 0 && productId !== null) {
980
1546
  localVarQueryParameter["productId"] = productId;
@@ -1013,13 +1579,13 @@ var FlexibleLockedApiAxiosParamCreator = function(configuration) {
1013
1579
  * @param {boolean} [autoSubscribe] true or false, default true.
1014
1580
  * @param {string} [sourceAccount] `SPOT`,`FUND`,`ALL`, default `SPOT`
1015
1581
  * @param {string} [redeemTo] `SPOT`,`FLEXIBLE`, default `FLEXIBLE`
1016
- * @param {number} [recvWindow]
1582
+ * @param {number} [recvWindow] The value cannot be greater than 60000 (ms)
1017
1583
  *
1018
1584
  * @throws {RequiredError}
1019
1585
  */
1020
1586
  subscribeLockedProduct: async (projectId, amount, autoSubscribe, sourceAccount, redeemTo, recvWindow) => {
1021
- assertParamExists("subscribeLockedProduct", "projectId", projectId);
1022
- assertParamExists("subscribeLockedProduct", "amount", amount);
1587
+ assertParamExists2("subscribeLockedProduct", "projectId", projectId);
1588
+ assertParamExists2("subscribeLockedProduct", "amount", amount);
1023
1589
  const localVarQueryParameter = {};
1024
1590
  if (projectId !== void 0 && projectId !== null) {
1025
1591
  localVarQueryParameter["projectId"] = projectId;
@@ -1081,7 +1647,7 @@ var FlexibleLockedApi = class {
1081
1647
  requestParameters?.size,
1082
1648
  requestParameters?.recvWindow
1083
1649
  );
1084
- return sendRequest(
1650
+ return sendRequest2(
1085
1651
  this.configuration,
1086
1652
  localVarAxiosArgs.endpoint,
1087
1653
  localVarAxiosArgs.method,
@@ -1107,7 +1673,7 @@ var FlexibleLockedApi = class {
1107
1673
  requestParameters?.productId,
1108
1674
  requestParameters?.recvWindow
1109
1675
  );
1110
- return sendRequest(
1676
+ return sendRequest2(
1111
1677
  this.configuration,
1112
1678
  localVarAxiosArgs.endpoint,
1113
1679
  localVarAxiosArgs.method,
@@ -1136,7 +1702,7 @@ var FlexibleLockedApi = class {
1136
1702
  requestParameters?.size,
1137
1703
  requestParameters?.recvWindow
1138
1704
  );
1139
- return sendRequest(
1705
+ return sendRequest2(
1140
1706
  this.configuration,
1141
1707
  localVarAxiosArgs.endpoint,
1142
1708
  localVarAxiosArgs.method,
@@ -1173,7 +1739,7 @@ var FlexibleLockedApi = class {
1173
1739
  requestParameters?.size,
1174
1740
  requestParameters?.recvWindow
1175
1741
  );
1176
- return sendRequest(
1742
+ return sendRequest2(
1177
1743
  this.configuration,
1178
1744
  localVarAxiosArgs.endpoint,
1179
1745
  localVarAxiosArgs.method,
@@ -1210,7 +1776,7 @@ var FlexibleLockedApi = class {
1210
1776
  requestParameters?.size,
1211
1777
  requestParameters?.recvWindow
1212
1778
  );
1213
- return sendRequest(
1779
+ return sendRequest2(
1214
1780
  this.configuration,
1215
1781
  localVarAxiosArgs.endpoint,
1216
1782
  localVarAxiosArgs.method,
@@ -1237,7 +1803,7 @@ var FlexibleLockedApi = class {
1237
1803
  requestParameters?.amount,
1238
1804
  requestParameters?.recvWindow
1239
1805
  );
1240
- return sendRequest(
1806
+ return sendRequest2(
1241
1807
  this.configuration,
1242
1808
  localVarAxiosArgs.endpoint,
1243
1809
  localVarAxiosArgs.method,
@@ -1274,7 +1840,7 @@ var FlexibleLockedApi = class {
1274
1840
  requestParameters?.size,
1275
1841
  requestParameters?.recvWindow
1276
1842
  );
1277
- return sendRequest(
1843
+ return sendRequest2(
1278
1844
  this.configuration,
1279
1845
  localVarAxiosArgs.endpoint,
1280
1846
  localVarAxiosArgs.method,
@@ -1300,7 +1866,7 @@ var FlexibleLockedApi = class {
1300
1866
  requestParameters?.projectId,
1301
1867
  requestParameters?.recvWindow
1302
1868
  );
1303
- return sendRequest(
1869
+ return sendRequest2(
1304
1870
  this.configuration,
1305
1871
  localVarAxiosArgs.endpoint,
1306
1872
  localVarAxiosArgs.method,
@@ -1330,7 +1896,7 @@ var FlexibleLockedApi = class {
1330
1896
  requestParameters?.size,
1331
1897
  requestParameters?.recvWindow
1332
1898
  );
1333
- return sendRequest(
1899
+ return sendRequest2(
1334
1900
  this.configuration,
1335
1901
  localVarAxiosArgs.endpoint,
1336
1902
  localVarAxiosArgs.method,
@@ -1367,7 +1933,7 @@ var FlexibleLockedApi = class {
1367
1933
  requestParameters?.size,
1368
1934
  requestParameters?.recvWindow
1369
1935
  );
1370
- return sendRequest(
1936
+ return sendRequest2(
1371
1937
  this.configuration,
1372
1938
  localVarAxiosArgs.endpoint,
1373
1939
  localVarAxiosArgs.method,
@@ -1403,7 +1969,7 @@ var FlexibleLockedApi = class {
1403
1969
  requestParameters?.size,
1404
1970
  requestParameters?.recvWindow
1405
1971
  );
1406
- return sendRequest(
1972
+ return sendRequest2(
1407
1973
  this.configuration,
1408
1974
  localVarAxiosArgs.endpoint,
1409
1975
  localVarAxiosArgs.method,
@@ -1431,7 +1997,7 @@ var FlexibleLockedApi = class {
1431
1997
  requestParameters?.autoSubscribe,
1432
1998
  requestParameters?.recvWindow
1433
1999
  );
1434
- return sendRequest(
2000
+ return sendRequest2(
1435
2001
  this.configuration,
1436
2002
  localVarAxiosArgs.endpoint,
1437
2003
  localVarAxiosArgs.method,
@@ -1467,7 +2033,7 @@ var FlexibleLockedApi = class {
1467
2033
  requestParameters?.size,
1468
2034
  requestParameters?.recvWindow
1469
2035
  );
1470
- return sendRequest(
2036
+ return sendRequest2(
1471
2037
  this.configuration,
1472
2038
  localVarAxiosArgs.endpoint,
1473
2039
  localVarAxiosArgs.method,
@@ -1503,7 +2069,7 @@ var FlexibleLockedApi = class {
1503
2069
  requestParameters?.size,
1504
2070
  requestParameters?.recvWindow
1505
2071
  );
1506
- return sendRequest(
2072
+ return sendRequest2(
1507
2073
  this.configuration,
1508
2074
  localVarAxiosArgs.endpoint,
1509
2075
  localVarAxiosArgs.method,
@@ -1531,7 +2097,7 @@ var FlexibleLockedApi = class {
1531
2097
  requestParameters?.size,
1532
2098
  requestParameters?.recvWindow
1533
2099
  );
1534
- return sendRequest(
2100
+ return sendRequest2(
1535
2101
  this.configuration,
1536
2102
  localVarAxiosArgs.endpoint,
1537
2103
  localVarAxiosArgs.method,
@@ -1561,7 +2127,7 @@ var FlexibleLockedApi = class {
1561
2127
  requestParameters?.size,
1562
2128
  requestParameters?.recvWindow
1563
2129
  );
1564
- return sendRequest(
2130
+ return sendRequest2(
1565
2131
  this.configuration,
1566
2132
  localVarAxiosArgs.endpoint,
1567
2133
  localVarAxiosArgs.method,
@@ -1592,7 +2158,7 @@ var FlexibleLockedApi = class {
1592
2158
  requestParameters?.destAccount,
1593
2159
  requestParameters?.recvWindow
1594
2160
  );
1595
- return sendRequest(
2161
+ return sendRequest2(
1596
2162
  this.configuration,
1597
2163
  localVarAxiosArgs.endpoint,
1598
2164
  localVarAxiosArgs.method,
@@ -1620,7 +2186,7 @@ var FlexibleLockedApi = class {
1620
2186
  requestParameters?.positionId,
1621
2187
  requestParameters?.recvWindow
1622
2188
  );
1623
- return sendRequest(
2189
+ return sendRequest2(
1624
2190
  this.configuration,
1625
2191
  localVarAxiosArgs.endpoint,
1626
2192
  localVarAxiosArgs.method,
@@ -1647,7 +2213,7 @@ var FlexibleLockedApi = class {
1647
2213
  requestParameters?.autoSubscribe,
1648
2214
  requestParameters?.recvWindow
1649
2215
  );
1650
- return sendRequest(
2216
+ return sendRequest2(
1651
2217
  this.configuration,
1652
2218
  localVarAxiosArgs.endpoint,
1653
2219
  localVarAxiosArgs.method,
@@ -1674,7 +2240,7 @@ var FlexibleLockedApi = class {
1674
2240
  requestParameters?.autoSubscribe,
1675
2241
  requestParameters?.recvWindow
1676
2242
  );
1677
- return sendRequest(
2243
+ return sendRequest2(
1678
2244
  this.configuration,
1679
2245
  localVarAxiosArgs.endpoint,
1680
2246
  localVarAxiosArgs.method,
@@ -1701,7 +2267,7 @@ var FlexibleLockedApi = class {
1701
2267
  requestParameters?.redeemTo,
1702
2268
  requestParameters?.recvWindow
1703
2269
  );
1704
- return sendRequest(
2270
+ return sendRequest2(
1705
2271
  this.configuration,
1706
2272
  localVarAxiosArgs.endpoint,
1707
2273
  localVarAxiosArgs.method,
@@ -1726,7 +2292,7 @@ var FlexibleLockedApi = class {
1726
2292
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.simpleAccount(
1727
2293
  requestParameters?.recvWindow
1728
2294
  );
1729
- return sendRequest(
2295
+ return sendRequest2(
1730
2296
  this.configuration,
1731
2297
  localVarAxiosArgs.endpoint,
1732
2298
  localVarAxiosArgs.method,
@@ -1757,7 +2323,7 @@ var FlexibleLockedApi = class {
1757
2323
  requestParameters?.sourceAccount,
1758
2324
  requestParameters?.recvWindow
1759
2325
  );
1760
- return sendRequest(
2326
+ return sendRequest2(
1761
2327
  this.configuration,
1762
2328
  localVarAxiosArgs.endpoint,
1763
2329
  localVarAxiosArgs.method,
@@ -1789,7 +2355,7 @@ var FlexibleLockedApi = class {
1789
2355
  requestParameters?.redeemTo,
1790
2356
  requestParameters?.recvWindow
1791
2357
  );
1792
- return sendRequest(
2358
+ return sendRequest2(
1793
2359
  this.configuration,
1794
2360
  localVarAxiosArgs.endpoint,
1795
2361
  localVarAxiosArgs.method,
@@ -1802,8 +2368,8 @@ var FlexibleLockedApi = class {
1802
2368
 
1803
2369
  // src/rest-api/modules/rwusd-api.ts
1804
2370
  import {
1805
- assertParamExists as assertParamExists2,
1806
- sendRequest as sendRequest2
2371
+ assertParamExists as assertParamExists3,
2372
+ sendRequest as sendRequest3
1807
2373
  } from "@binance/common";
1808
2374
  var RwusdApiAxiosParamCreator = function(configuration) {
1809
2375
  return {
@@ -1813,7 +2379,7 @@ var RwusdApiAxiosParamCreator = function(configuration) {
1813
2379
  * Weight: 150
1814
2380
  *
1815
2381
  * @summary Get RWUSD Account (USER_DATA)
1816
- * @param {number} [recvWindow]
2382
+ * @param {number} [recvWindow] The value cannot be greater than 60000 (ms)
1817
2383
  *
1818
2384
  * @throws {RequiredError}
1819
2385
  */
@@ -1837,7 +2403,7 @@ var RwusdApiAxiosParamCreator = function(configuration) {
1837
2403
  * Weight: 150
1838
2404
  *
1839
2405
  * @summary Get RWUSD Quota Details (USER_DATA)
1840
- * @param {number} [recvWindow]
2406
+ * @param {number} [recvWindow] The value cannot be greater than 60000 (ms)
1841
2407
  *
1842
2408
  * @throws {RequiredError}
1843
2409
  */
@@ -1868,9 +2434,9 @@ var RwusdApiAxiosParamCreator = function(configuration) {
1868
2434
  * @summary Get RWUSD Rate History (USER_DATA)
1869
2435
  * @param {number} [startTime]
1870
2436
  * @param {number} [endTime]
1871
- * @param {number} [current] Currently querying the page. Start from 1. Default:1
1872
- * @param {number} [size] Default:10, Max:100
1873
- * @param {number} [recvWindow]
2437
+ * @param {number} [current] Currently querying page. Starts from 1. Default: 1
2438
+ * @param {number} [size] Number of results per page. Default: 10, Max: 100
2439
+ * @param {number} [recvWindow] The value cannot be greater than 60000 (ms)
1874
2440
  *
1875
2441
  * @throws {RequiredError}
1876
2442
  */
@@ -1913,9 +2479,9 @@ var RwusdApiAxiosParamCreator = function(configuration) {
1913
2479
  * @summary Get RWUSD Redemption History (USER_DATA)
1914
2480
  * @param {number} [startTime]
1915
2481
  * @param {number} [endTime]
1916
- * @param {number} [current] Currently querying the page. Start from 1. Default:1
1917
- * @param {number} [size] Default:10, Max:100
1918
- * @param {number} [recvWindow]
2482
+ * @param {number} [current] Currently querying page. Starts from 1. Default: 1
2483
+ * @param {number} [size] Number of results per page. Default: 10, Max: 100
2484
+ * @param {number} [recvWindow] The value cannot be greater than 60000 (ms)
1919
2485
  *
1920
2486
  * @throws {RequiredError}
1921
2487
  */
@@ -1958,9 +2524,9 @@ var RwusdApiAxiosParamCreator = function(configuration) {
1958
2524
  * @summary Get RWUSD Rewards History (USER_DATA)
1959
2525
  * @param {number} [startTime]
1960
2526
  * @param {number} [endTime]
1961
- * @param {number} [current] Currently querying the page. Start from 1. Default:1
1962
- * @param {number} [size] Default:10, Max:100
1963
- * @param {number} [recvWindow]
2527
+ * @param {number} [current] Currently querying page. Starts from 1. Default: 1
2528
+ * @param {number} [size] Number of results per page. Default: 10, Max: 100
2529
+ * @param {number} [recvWindow] The value cannot be greater than 60000 (ms)
1964
2530
  *
1965
2531
  * @throws {RequiredError}
1966
2532
  */
@@ -2004,9 +2570,9 @@ var RwusdApiAxiosParamCreator = function(configuration) {
2004
2570
  * @param {string} [asset] USDC or USDT
2005
2571
  * @param {number} [startTime]
2006
2572
  * @param {number} [endTime]
2007
- * @param {number} [current] Currently querying the page. Start from 1. Default:1
2008
- * @param {number} [size] Default:10, Max:100
2009
- * @param {number} [recvWindow]
2573
+ * @param {number} [current] Currently querying page. Starts from 1. Default: 1
2574
+ * @param {number} [size] Number of results per page. Default: 10, Max: 100
2575
+ * @param {number} [recvWindow] The value cannot be greater than 60000 (ms)
2010
2576
  *
2011
2577
  * @throws {RequiredError}
2012
2578
  */
@@ -2049,13 +2615,13 @@ var RwusdApiAxiosParamCreator = function(configuration) {
2049
2615
  * @summary Redeem RWUSD(TRADE)
2050
2616
  * @param {number} amount Amount
2051
2617
  * @param {string} type FAST or STANDARD, defaults to STANDARD
2052
- * @param {number} [recvWindow]
2618
+ * @param {number} [recvWindow] The value cannot be greater than 60000 (ms)
2053
2619
  *
2054
2620
  * @throws {RequiredError}
2055
2621
  */
2056
2622
  redeemRwusd: async (amount, type, recvWindow) => {
2057
- assertParamExists2("redeemRwusd", "amount", amount);
2058
- assertParamExists2("redeemRwusd", "type", type);
2623
+ assertParamExists3("redeemRwusd", "amount", amount);
2624
+ assertParamExists3("redeemRwusd", "type", type);
2059
2625
  const localVarQueryParameter = {};
2060
2626
  if (amount !== void 0 && amount !== null) {
2061
2627
  localVarQueryParameter["amount"] = amount;
@@ -2085,13 +2651,13 @@ var RwusdApiAxiosParamCreator = function(configuration) {
2085
2651
  * @summary Subscribe RWUSD(TRADE)
2086
2652
  * @param {string} asset USDT or USDC (whichever is eligible)
2087
2653
  * @param {number} amount Amount
2088
- * @param {number} [recvWindow]
2654
+ * @param {number} [recvWindow] The value cannot be greater than 60000 (ms)
2089
2655
  *
2090
2656
  * @throws {RequiredError}
2091
2657
  */
2092
2658
  subscribeRwusd: async (asset, amount, recvWindow) => {
2093
- assertParamExists2("subscribeRwusd", "asset", asset);
2094
- assertParamExists2("subscribeRwusd", "amount", amount);
2659
+ assertParamExists3("subscribeRwusd", "asset", asset);
2660
+ assertParamExists3("subscribeRwusd", "amount", amount);
2095
2661
  const localVarQueryParameter = {};
2096
2662
  if (asset !== void 0 && asset !== null) {
2097
2663
  localVarQueryParameter["asset"] = asset;
@@ -2134,7 +2700,7 @@ var RwusdApi = class {
2134
2700
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.getRwusdAccount(
2135
2701
  requestParameters?.recvWindow
2136
2702
  );
2137
- return sendRequest2(
2703
+ return sendRequest3(
2138
2704
  this.configuration,
2139
2705
  localVarAxiosArgs.endpoint,
2140
2706
  localVarAxiosArgs.method,
@@ -2159,7 +2725,7 @@ var RwusdApi = class {
2159
2725
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.getRwusdQuotaDetails(
2160
2726
  requestParameters?.recvWindow
2161
2727
  );
2162
- return sendRequest2(
2728
+ return sendRequest3(
2163
2729
  this.configuration,
2164
2730
  localVarAxiosArgs.endpoint,
2165
2731
  localVarAxiosArgs.method,
@@ -2193,7 +2759,7 @@ var RwusdApi = class {
2193
2759
  requestParameters?.size,
2194
2760
  requestParameters?.recvWindow
2195
2761
  );
2196
- return sendRequest2(
2762
+ return sendRequest3(
2197
2763
  this.configuration,
2198
2764
  localVarAxiosArgs.endpoint,
2199
2765
  localVarAxiosArgs.method,
@@ -2227,7 +2793,7 @@ var RwusdApi = class {
2227
2793
  requestParameters?.size,
2228
2794
  requestParameters?.recvWindow
2229
2795
  );
2230
- return sendRequest2(
2796
+ return sendRequest3(
2231
2797
  this.configuration,
2232
2798
  localVarAxiosArgs.endpoint,
2233
2799
  localVarAxiosArgs.method,
@@ -2261,7 +2827,7 @@ var RwusdApi = class {
2261
2827
  requestParameters?.size,
2262
2828
  requestParameters?.recvWindow
2263
2829
  );
2264
- return sendRequest2(
2830
+ return sendRequest3(
2265
2831
  this.configuration,
2266
2832
  localVarAxiosArgs.endpoint,
2267
2833
  localVarAxiosArgs.method,
@@ -2296,7 +2862,7 @@ var RwusdApi = class {
2296
2862
  requestParameters?.size,
2297
2863
  requestParameters?.recvWindow
2298
2864
  );
2299
- return sendRequest2(
2865
+ return sendRequest3(
2300
2866
  this.configuration,
2301
2867
  localVarAxiosArgs.endpoint,
2302
2868
  localVarAxiosArgs.method,
@@ -2325,7 +2891,7 @@ var RwusdApi = class {
2325
2891
  requestParameters?.type,
2326
2892
  requestParameters?.recvWindow
2327
2893
  );
2328
- return sendRequest2(
2894
+ return sendRequest3(
2329
2895
  this.configuration,
2330
2896
  localVarAxiosArgs.endpoint,
2331
2897
  localVarAxiosArgs.method,
@@ -2354,7 +2920,7 @@ var RwusdApi = class {
2354
2920
  requestParameters?.amount,
2355
2921
  requestParameters?.recvWindow
2356
2922
  );
2357
- return sendRequest2(
2923
+ return sendRequest3(
2358
2924
  this.configuration,
2359
2925
  localVarAxiosArgs.endpoint,
2360
2926
  localVarAxiosArgs.method,
@@ -2366,10 +2932,11 @@ var RwusdApi = class {
2366
2932
  };
2367
2933
 
2368
2934
  // src/rest-api/rest-api.ts
2369
- import { sendRequest as sendRequest3 } from "@binance/common";
2935
+ import { sendRequest as sendRequest4 } from "@binance/common";
2370
2936
  var RestAPI = class {
2371
2937
  constructor(configuration) {
2372
2938
  this.configuration = configuration;
2939
+ this.bfusdApi = new BfusdApi(configuration);
2373
2940
  this.flexibleLockedApi = new FlexibleLockedApi(configuration);
2374
2941
  this.rwusdApi = new RwusdApi(configuration);
2375
2942
  }
@@ -2382,7 +2949,7 @@ var RestAPI = class {
2382
2949
  * @returns A promise resolving to the response data object.
2383
2950
  */
2384
2951
  sendRequest(endpoint, method, params = {}) {
2385
- return sendRequest3(this.configuration, endpoint, method, params, void 0);
2952
+ return sendRequest4(this.configuration, endpoint, method, params, void 0);
2386
2953
  }
2387
2954
  /**
2388
2955
  * Generic function to send a signed request.
@@ -2393,10 +2960,154 @@ var RestAPI = class {
2393
2960
  * @returns A promise resolving to the response data object.
2394
2961
  */
2395
2962
  sendSignedRequest(endpoint, method, params = {}) {
2396
- return sendRequest3(this.configuration, endpoint, method, params, void 0, {
2963
+ return sendRequest4(this.configuration, endpoint, method, params, void 0, {
2397
2964
  isSigned: true
2398
2965
  });
2399
2966
  }
2967
+ /**
2968
+ * Get BFUSD account information.
2969
+ *
2970
+ * Weight: 150
2971
+ *
2972
+ * @summary Get BFUSD Account (USER_DATA)
2973
+ * @param {GetBfusdAccountRequest} requestParameters Request parameters.
2974
+ *
2975
+ * @returns {Promise<RestApiResponse<GetBfusdAccountResponse>>}
2976
+ * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
2977
+ * @see {@link https://developers.binance.com/docs/simple_earn/bfusd/account/ Binance API Documentation}
2978
+ */
2979
+ getBfusdAccount(requestParameters = {}) {
2980
+ return this.bfusdApi.getBfusdAccount(requestParameters);
2981
+ }
2982
+ /**
2983
+ * Get BFUSD quota details including fast redemption quota and standard redemption quota.
2984
+ *
2985
+ * Weight: 150
2986
+ *
2987
+ * @summary Get BFUSD Quota Details (USER_DATA)
2988
+ * @param {GetBfusdQuotaDetailsRequest} requestParameters Request parameters.
2989
+ *
2990
+ * @returns {Promise<RestApiResponse<GetBfusdQuotaDetailsResponse>>}
2991
+ * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
2992
+ * @see {@link https://developers.binance.com/docs/simple_earn/bfusd/account/Get-BFUSD-Quota-Details Binance API Documentation}
2993
+ */
2994
+ getBfusdQuotaDetails(requestParameters = {}) {
2995
+ return this.bfusdApi.getBfusdQuotaDetails(requestParameters);
2996
+ }
2997
+ /**
2998
+ * Get BFUSD rate history sorted by descending order.
2999
+ *
3000
+ * The time between `startTime` and `endTime` cannot be longer than 6 months.
3001
+ * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.
3002
+ * If `startTime` is sent but `endTime` is not sent, `endTime` will default to current time, and results from `startTime` onward will be returned.
3003
+ * If `endTime` is sent but `startTime` is not sent, `startTime` defaults to the current time minus one month, and data between `startTime` and `endTime` will be returned.
3004
+ *
3005
+ * Weight: 150
3006
+ *
3007
+ * @summary Get BFUSD Rate History (USER_DATA)
3008
+ * @param {GetBfusdRateHistoryRequest} requestParameters Request parameters.
3009
+ *
3010
+ * @returns {Promise<RestApiResponse<GetBfusdRateHistoryResponse>>}
3011
+ * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
3012
+ * @see {@link https://developers.binance.com/docs/simple_earn/bfusd/history/Get-BFUSD-Rate-History Binance API Documentation}
3013
+ */
3014
+ getBfusdRateHistory(requestParameters = {}) {
3015
+ return this.bfusdApi.getBfusdRateHistory(requestParameters);
3016
+ }
3017
+ /**
3018
+ * Get BFUSD redemption history.
3019
+ *
3020
+ * The time between `startTime` and `endTime` cannot be longer than 6 months.
3021
+ * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.
3022
+ * If `startTime` is sent but `endTime` is not sent, `endTime` will default to current time, and results from `startTime` onward will be returned.
3023
+ * If `endTime` is sent but `startTime` is not sent, `startTime` defaults to the current time minus one month, and data between `startTime` and `endTime` will be returned.
3024
+ *
3025
+ * Weight: 150
3026
+ *
3027
+ * @summary Get BFUSD Redemption History (USER_DATA)
3028
+ * @param {GetBfusdRedemptionHistoryRequest} requestParameters Request parameters.
3029
+ *
3030
+ * @returns {Promise<RestApiResponse<GetBfusdRedemptionHistoryResponse>>}
3031
+ * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
3032
+ * @see {@link https://developers.binance.com/docs/simple_earn/bfusd/history/Get-BFUSD-Redemption-History Binance API Documentation}
3033
+ */
3034
+ getBfusdRedemptionHistory(requestParameters = {}) {
3035
+ return this.bfusdApi.getBfusdRedemptionHistory(requestParameters);
3036
+ }
3037
+ /**
3038
+ * Get BFUSD rewards history.
3039
+ *
3040
+ * The time between `startTime` and `endTime` cannot be longer than 6 months.
3041
+ * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.
3042
+ * If `startTime` is sent but `endTime` is not sent, `endTime` will default to current time, and results from `startTime` onward will be returned.
3043
+ * If `endTime` is sent but `startTime` is not sent, `startTime` defaults to the current time minus one month, and data between `startTime` and `endTime` will be returned.
3044
+ *
3045
+ * Weight: 150
3046
+ *
3047
+ * @summary Get BFUSD Rewards History (USER_DATA)
3048
+ * @param {GetBfusdRewardsHistoryRequest} requestParameters Request parameters.
3049
+ *
3050
+ * @returns {Promise<RestApiResponse<GetBfusdRewardsHistoryResponse>>}
3051
+ * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
3052
+ * @see {@link https://developers.binance.com/docs/simple_earn/bfusd/history/Get-BFUSD-Rewards-History Binance API Documentation}
3053
+ */
3054
+ getBfusdRewardsHistory(requestParameters = {}) {
3055
+ return this.bfusdApi.getBfusdRewardsHistory(requestParameters);
3056
+ }
3057
+ /**
3058
+ * Get BFUSD subscription history
3059
+ *
3060
+ * The time between `startTime` and `endTime` cannot be longer than 6 months.
3061
+ * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.
3062
+ * If `startTime` is sent but `endTime` is not sent, `endTime` will default to current time, and results from `startTime` onward will be returned.
3063
+ * If `endTime` is sent but `startTime` is not sent, `startTime` defaults to the current time advanced by one month, and data between `startTime` and `endTime` will be returned.
3064
+ *
3065
+ * Weight: 150
3066
+ *
3067
+ * @summary Get BFUSD subscription history(USER_DATA)
3068
+ * @param {GetBfusdSubscriptionHistoryRequest} requestParameters Request parameters.
3069
+ *
3070
+ * @returns {Promise<RestApiResponse<GetBfusdSubscriptionHistoryResponse>>}
3071
+ * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
3072
+ * @see {@link https://developers.binance.com/docs/simple_earn/bfusd/history/Get-BFUSD-subscription-history Binance API Documentation}
3073
+ */
3074
+ getBfusdSubscriptionHistory(requestParameters = {}) {
3075
+ return this.bfusdApi.getBfusdSubscriptionHistory(requestParameters);
3076
+ }
3077
+ /**
3078
+ * Redeem BFUSD to USDT
3079
+ *
3080
+ * You need to open Enable Spot & Margin Trading permission for the API Key which requests this endpoint.
3081
+ *
3082
+ * Weight: 150
3083
+ *
3084
+ * @summary Redeem BFUSD(TRADE)
3085
+ * @param {RedeemBfusdRequest} requestParameters Request parameters.
3086
+ *
3087
+ * @returns {Promise<RestApiResponse<RedeemBfusdResponse>>}
3088
+ * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
3089
+ * @see {@link https://developers.binance.com/docs/simple_earn/bfusd/earn/Redeem-BFUSD Binance API Documentation}
3090
+ */
3091
+ redeemBfusd(requestParameters) {
3092
+ return this.bfusdApi.redeemBfusd(requestParameters);
3093
+ }
3094
+ /**
3095
+ * Subscribe BFUSD
3096
+ *
3097
+ * You need to open Enable Spot & Margin Trading permission for the API Key which requests this endpoint.
3098
+ *
3099
+ * Weight: 150
3100
+ *
3101
+ * @summary Subscribe BFUSD(TRADE)
3102
+ * @param {SubscribeBfusdRequest} requestParameters Request parameters.
3103
+ *
3104
+ * @returns {Promise<RestApiResponse<SubscribeBfusdResponse>>}
3105
+ * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
3106
+ * @see {@link https://developers.binance.com/docs/simple_earn/bfusd/earn/Subscribe-BFUSD Binance API Documentation}
3107
+ */
3108
+ subscribeBfusd(requestParameters) {
3109
+ return this.bfusdApi.subscribeBfusd(requestParameters);
3110
+ }
2400
3111
  /**
2401
3112
  * Get Collateral Record
2402
3113
  *
@@ -2409,6 +3120,7 @@ var RestAPI = class {
2409
3120
  *
2410
3121
  * @summary Get Collateral Record(USER_DATA)
2411
3122
  * @param {GetCollateralRecordRequest} requestParameters Request parameters.
3123
+ *
2412
3124
  * @returns {Promise<RestApiResponse<GetCollateralRecordResponse>>}
2413
3125
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
2414
3126
  * @see {@link https://developers.binance.com/docs/simple_earn/flexible-locked/history/Get-Collateral-Record Binance API Documentation}
@@ -2423,6 +3135,7 @@ var RestAPI = class {
2423
3135
  *
2424
3136
  * @summary Get Flexible Personal Left Quota(USER_DATA)
2425
3137
  * @param {GetFlexiblePersonalLeftQuotaRequest} requestParameters Request parameters.
3138
+ *
2426
3139
  * @returns {Promise<RestApiResponse<GetFlexiblePersonalLeftQuotaResponse>>}
2427
3140
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
2428
3141
  * @see {@link https://developers.binance.com/docs/simple_earn/flexible-locked/account/Get-Flexible-Personal-Left-Quota Binance API Documentation}
@@ -2437,6 +3150,7 @@ var RestAPI = class {
2437
3150
  *
2438
3151
  * @summary Get Flexible Product Position(USER_DATA)
2439
3152
  * @param {GetFlexibleProductPositionRequest} requestParameters Request parameters.
3153
+ *
2440
3154
  * @returns {Promise<RestApiResponse<GetFlexibleProductPositionResponse>>}
2441
3155
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
2442
3156
  * @see {@link https://developers.binance.com/docs/simple_earn/flexible-locked/account/Get-Flexible-Product-Position Binance API Documentation}
@@ -2456,6 +3170,7 @@ var RestAPI = class {
2456
3170
  *
2457
3171
  * @summary Get Flexible Redemption Record(USER_DATA)
2458
3172
  * @param {GetFlexibleRedemptionRecordRequest} requestParameters Request parameters.
3173
+ *
2459
3174
  * @returns {Promise<RestApiResponse<GetFlexibleRedemptionRecordResponse>>}
2460
3175
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
2461
3176
  * @see {@link https://developers.binance.com/docs/simple_earn/flexible-locked/history/Get-Flexible-Redemption-Record Binance API Documentation}
@@ -2475,6 +3190,7 @@ var RestAPI = class {
2475
3190
  *
2476
3191
  * @summary Get Flexible Rewards History(USER_DATA)
2477
3192
  * @param {GetFlexibleRewardsHistoryRequest} requestParameters Request parameters.
3193
+ *
2478
3194
  * @returns {Promise<RestApiResponse<GetFlexibleRewardsHistoryResponse>>}
2479
3195
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
2480
3196
  * @see {@link https://developers.binance.com/docs/simple_earn/flexible-locked/history/Get-Flexible-Rewards-History Binance API Documentation}
@@ -2489,6 +3205,7 @@ var RestAPI = class {
2489
3205
  *
2490
3206
  * @summary Get Flexible Subscription Preview(USER_DATA)
2491
3207
  * @param {GetFlexibleSubscriptionPreviewRequest} requestParameters Request parameters.
3208
+ *
2492
3209
  * @returns {Promise<RestApiResponse<GetFlexibleSubscriptionPreviewResponse>>}
2493
3210
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
2494
3211
  * @see {@link https://developers.binance.com/docs/simple_earn/flexible-locked/earn/Get-Flexible-Subscription-Preview Binance API Documentation}
@@ -2508,6 +3225,7 @@ var RestAPI = class {
2508
3225
  *
2509
3226
  * @summary Get Flexible Subscription Record(USER_DATA)
2510
3227
  * @param {GetFlexibleSubscriptionRecordRequest} requestParameters Request parameters.
3228
+ *
2511
3229
  * @returns {Promise<RestApiResponse<GetFlexibleSubscriptionRecordResponse>>}
2512
3230
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
2513
3231
  * @see {@link https://developers.binance.com/docs/simple_earn/flexible-locked/history/Get-Flexible-Subscription-Record Binance API Documentation}
@@ -2522,6 +3240,7 @@ var RestAPI = class {
2522
3240
  *
2523
3241
  * @summary Get Locked Personal Left Quota(USER_DATA)
2524
3242
  * @param {GetLockedPersonalLeftQuotaRequest} requestParameters Request parameters.
3243
+ *
2525
3244
  * @returns {Promise<RestApiResponse<GetLockedPersonalLeftQuotaResponse>>}
2526
3245
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
2527
3246
  * @see {@link https://developers.binance.com/docs/simple_earn/flexible-locked/account/Get-Locked-Personal-Left-Quota Binance API Documentation}
@@ -2536,6 +3255,7 @@ var RestAPI = class {
2536
3255
  *
2537
3256
  * @summary Get Locked Product Position
2538
3257
  * @param {GetLockedProductPositionRequest} requestParameters Request parameters.
3258
+ *
2539
3259
  * @returns {Promise<RestApiResponse<GetLockedProductPositionResponse>>}
2540
3260
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
2541
3261
  * @see {@link https://developers.binance.com/docs/simple_earn/flexible-locked/account/Get-Locked-Product-Position Binance API Documentation}
@@ -2555,6 +3275,7 @@ var RestAPI = class {
2555
3275
  *
2556
3276
  * @summary Get Locked Redemption Record(USER_DATA)
2557
3277
  * @param {GetLockedRedemptionRecordRequest} requestParameters Request parameters.
3278
+ *
2558
3279
  * @returns {Promise<RestApiResponse<GetLockedRedemptionRecordResponse>>}
2559
3280
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
2560
3281
  * @see {@link https://developers.binance.com/docs/simple_earn/flexible-locked/history/Get-Locked-Redemption-Record Binance API Documentation}
@@ -2574,6 +3295,7 @@ var RestAPI = class {
2574
3295
  *
2575
3296
  * @summary Get Locked Rewards History(USER_DATA)
2576
3297
  * @param {GetLockedRewardsHistoryRequest} requestParameters Request parameters.
3298
+ *
2577
3299
  * @returns {Promise<RestApiResponse<GetLockedRewardsHistoryResponse>>}
2578
3300
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
2579
3301
  * @see {@link https://developers.binance.com/docs/simple_earn/flexible-locked/history/Get-Locked-Rewards-History Binance API Documentation}
@@ -2588,6 +3310,7 @@ var RestAPI = class {
2588
3310
  *
2589
3311
  * @summary Get Locked Subscription Preview(USER_DATA)
2590
3312
  * @param {GetLockedSubscriptionPreviewRequest} requestParameters Request parameters.
3313
+ *
2591
3314
  * @returns {Promise<RestApiResponse<GetLockedSubscriptionPreviewResponse>>}
2592
3315
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
2593
3316
  * @see {@link https://developers.binance.com/docs/simple_earn/flexible-locked/earn/Get-Locked-Subscription-Preview Binance API Documentation}
@@ -2607,6 +3330,7 @@ var RestAPI = class {
2607
3330
  *
2608
3331
  * @summary Get Locked Subscription Record(USER_DATA)
2609
3332
  * @param {GetLockedSubscriptionRecordRequest} requestParameters Request parameters.
3333
+ *
2610
3334
  * @returns {Promise<RestApiResponse<GetLockedSubscriptionRecordResponse>>}
2611
3335
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
2612
3336
  * @see {@link https://developers.binance.com/docs/simple_earn/flexible-locked/history/Get-Locked-Subscription-Record Binance API Documentation}
@@ -2626,6 +3350,7 @@ var RestAPI = class {
2626
3350
  *
2627
3351
  * @summary Get Rate History(USER_DATA)
2628
3352
  * @param {GetRateHistoryRequest} requestParameters Request parameters.
3353
+ *
2629
3354
  * @returns {Promise<RestApiResponse<GetRateHistoryResponse>>}
2630
3355
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
2631
3356
  * @see {@link https://developers.binance.com/docs/simple_earn/flexible-locked/history/Get-Rate-History Binance API Documentation}
@@ -2640,6 +3365,7 @@ var RestAPI = class {
2640
3365
  *
2641
3366
  * @summary Get Simple Earn Flexible Product List(USER_DATA)
2642
3367
  * @param {GetSimpleEarnFlexibleProductListRequest} requestParameters Request parameters.
3368
+ *
2643
3369
  * @returns {Promise<RestApiResponse<GetSimpleEarnFlexibleProductListResponse>>}
2644
3370
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
2645
3371
  * @see {@link https://developers.binance.com/docs/simple_earn/flexible-locked/account/Get-Simple-Earn-Flexible-Product-List Binance API Documentation}
@@ -2656,6 +3382,7 @@ var RestAPI = class {
2656
3382
  *
2657
3383
  * @summary Get Simple Earn Locked Product List(USER_DATA)
2658
3384
  * @param {GetSimpleEarnLockedProductListRequest} requestParameters Request parameters.
3385
+ *
2659
3386
  * @returns {Promise<RestApiResponse<GetSimpleEarnLockedProductListResponse>>}
2660
3387
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
2661
3388
  * @see {@link https://developers.binance.com/docs/simple_earn/flexible-locked/account/Get-Simple-Earn-Locked-Product-List Binance API Documentation}
@@ -2672,6 +3399,7 @@ var RestAPI = class {
2672
3399
  *
2673
3400
  * @summary Redeem Flexible Product(TRADE)
2674
3401
  * @param {RedeemFlexibleProductRequest} requestParameters Request parameters.
3402
+ *
2675
3403
  * @returns {Promise<RestApiResponse<RedeemFlexibleProductResponse>>}
2676
3404
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
2677
3405
  * @see {@link https://developers.binance.com/docs/simple_earn/flexible-locked/earn/Redeem-Flexible-Product Binance API Documentation}
@@ -2688,6 +3416,7 @@ var RestAPI = class {
2688
3416
  *
2689
3417
  * @summary Redeem Locked Product(TRADE)
2690
3418
  * @param {RedeemLockedProductRequest} requestParameters Request parameters.
3419
+ *
2691
3420
  * @returns {Promise<RestApiResponse<RedeemLockedProductResponse>>}
2692
3421
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
2693
3422
  * @see {@link https://developers.binance.com/docs/simple_earn/flexible-locked/earn/Redeem-Locked-Product Binance API Documentation}
@@ -2702,6 +3431,7 @@ var RestAPI = class {
2702
3431
  *
2703
3432
  * @summary Set Flexible Auto Subscribe(USER_DATA)
2704
3433
  * @param {SetFlexibleAutoSubscribeRequest} requestParameters Request parameters.
3434
+ *
2705
3435
  * @returns {Promise<RestApiResponse<SetFlexibleAutoSubscribeResponse>>}
2706
3436
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
2707
3437
  * @see {@link https://developers.binance.com/docs/simple_earn/flexible-locked/earn/Set-Flexible-Auto-Subscribe Binance API Documentation}
@@ -2716,6 +3446,7 @@ var RestAPI = class {
2716
3446
  *
2717
3447
  * @summary Set Locked Auto Subscribe(USER_DATA)
2718
3448
  * @param {SetLockedAutoSubscribeRequest} requestParameters Request parameters.
3449
+ *
2719
3450
  * @returns {Promise<RestApiResponse<SetLockedAutoSubscribeResponse>>}
2720
3451
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
2721
3452
  * @see {@link https://developers.binance.com/docs/simple_earn/flexible-locked/earn/Set-Locked-Auto-Subscribe Binance API Documentation}
@@ -2730,6 +3461,7 @@ var RestAPI = class {
2730
3461
  *
2731
3462
  * @summary Set Locked Product Redeem Option(USER_DATA)
2732
3463
  * @param {SetLockedProductRedeemOptionRequest} requestParameters Request parameters.
3464
+ *
2733
3465
  * @returns {Promise<RestApiResponse<SetLockedProductRedeemOptionResponse>>}
2734
3466
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
2735
3467
  * @see {@link https://developers.binance.com/docs/simple_earn/flexible-locked/earn/Set-Locked-Redeem-Option Binance API Documentation}
@@ -2744,6 +3476,7 @@ var RestAPI = class {
2744
3476
  *
2745
3477
  * @summary Simple Account(USER_DATA)
2746
3478
  * @param {SimpleAccountRequest} requestParameters Request parameters.
3479
+ *
2747
3480
  * @returns {Promise<RestApiResponse<SimpleAccountResponse>>}
2748
3481
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
2749
3482
  * @see {@link https://developers.binance.com/docs/simple_earn/flexible-locked/account/Simple-Account Binance API Documentation}
@@ -2760,6 +3493,7 @@ var RestAPI = class {
2760
3493
  *
2761
3494
  * @summary Subscribe Flexible Product(TRADE)
2762
3495
  * @param {SubscribeFlexibleProductRequest} requestParameters Request parameters.
3496
+ *
2763
3497
  * @returns {Promise<RestApiResponse<SubscribeFlexibleProductResponse>>}
2764
3498
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
2765
3499
  * @see {@link https://developers.binance.com/docs/simple_earn/flexible-locked/earn/Subscribe-Flexible-Product Binance API Documentation}
@@ -2776,6 +3510,7 @@ var RestAPI = class {
2776
3510
  *
2777
3511
  * @summary Subscribe Locked Product(TRADE)
2778
3512
  * @param {SubscribeLockedProductRequest} requestParameters Request parameters.
3513
+ *
2779
3514
  * @returns {Promise<RestApiResponse<SubscribeLockedProductResponse>>}
2780
3515
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
2781
3516
  * @see {@link https://developers.binance.com/docs/simple_earn/flexible-locked/earn/Subscribe-Locked-Product Binance API Documentation}
@@ -2790,6 +3525,7 @@ var RestAPI = class {
2790
3525
  *
2791
3526
  * @summary Get RWUSD Account (USER_DATA)
2792
3527
  * @param {GetRwusdAccountRequest} requestParameters Request parameters.
3528
+ *
2793
3529
  * @returns {Promise<RestApiResponse<GetRwusdAccountResponse>>}
2794
3530
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
2795
3531
  * @see {@link https://developers.binance.com/docs/simple_earn/rwusd/account/ Binance API Documentation}
@@ -2804,6 +3540,7 @@ var RestAPI = class {
2804
3540
  *
2805
3541
  * @summary Get RWUSD Quota Details (USER_DATA)
2806
3542
  * @param {GetRwusdQuotaDetailsRequest} requestParameters Request parameters.
3543
+ *
2807
3544
  * @returns {Promise<RestApiResponse<GetRwusdQuotaDetailsResponse>>}
2808
3545
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
2809
3546
  * @see {@link https://developers.binance.com/docs/simple_earn/rwusd/account/Get-RWUSD-Quota-Details Binance API Documentation}
@@ -2823,6 +3560,7 @@ var RestAPI = class {
2823
3560
  *
2824
3561
  * @summary Get RWUSD Rate History (USER_DATA)
2825
3562
  * @param {GetRwusdRateHistoryRequest} requestParameters Request parameters.
3563
+ *
2826
3564
  * @returns {Promise<RestApiResponse<GetRwusdRateHistoryResponse>>}
2827
3565
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
2828
3566
  * @see {@link https://developers.binance.com/docs/simple_earn/rwusd/history/Get-RWUSD-Rate-History Binance API Documentation}
@@ -2842,6 +3580,7 @@ var RestAPI = class {
2842
3580
  *
2843
3581
  * @summary Get RWUSD Redemption History (USER_DATA)
2844
3582
  * @param {GetRwusdRedemptionHistoryRequest} requestParameters Request parameters.
3583
+ *
2845
3584
  * @returns {Promise<RestApiResponse<GetRwusdRedemptionHistoryResponse>>}
2846
3585
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
2847
3586
  * @see {@link https://developers.binance.com/docs/simple_earn/rwusd/history/Get-RWUSD-Redemption-History Binance API Documentation}
@@ -2861,6 +3600,7 @@ var RestAPI = class {
2861
3600
  *
2862
3601
  * @summary Get RWUSD Rewards History (USER_DATA)
2863
3602
  * @param {GetRwusdRewardsHistoryRequest} requestParameters Request parameters.
3603
+ *
2864
3604
  * @returns {Promise<RestApiResponse<GetRwusdRewardsHistoryResponse>>}
2865
3605
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
2866
3606
  * @see {@link https://developers.binance.com/docs/simple_earn/rwusd/history/Get-RWUSD-Rewards-History Binance API Documentation}
@@ -2880,6 +3620,7 @@ var RestAPI = class {
2880
3620
  *
2881
3621
  * @summary Get RWUSD subscription history(USER_DATA)
2882
3622
  * @param {GetRwusdSubscriptionHistoryRequest} requestParameters Request parameters.
3623
+ *
2883
3624
  * @returns {Promise<RestApiResponse<GetRwusdSubscriptionHistoryResponse>>}
2884
3625
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
2885
3626
  * @see {@link https://developers.binance.com/docs/simple_earn/rwusd/history/Get-RWUSD-subscription-history Binance API Documentation}
@@ -2896,6 +3637,7 @@ var RestAPI = class {
2896
3637
  *
2897
3638
  * @summary Redeem RWUSD(TRADE)
2898
3639
  * @param {RedeemRwusdRequest} requestParameters Request parameters.
3640
+ *
2899
3641
  * @returns {Promise<RestApiResponse<RedeemRwusdResponse>>}
2900
3642
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
2901
3643
  * @see {@link https://developers.binance.com/docs/simple_earn/rwusd/earn/Redeem-RWUSD Binance API Documentation}
@@ -2912,6 +3654,7 @@ var RestAPI = class {
2912
3654
  *
2913
3655
  * @summary Subscribe RWUSD(TRADE)
2914
3656
  * @param {SubscribeRwusdRequest} requestParameters Request parameters.
3657
+ *
2915
3658
  * @returns {Promise<RestApiResponse<SubscribeRwusdResponse>>}
2916
3659
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
2917
3660
  * @see {@link https://developers.binance.com/docs/simple_earn/rwusd/earn/Subscribe-RWUSD Binance API Documentation}
@@ -2926,7 +3669,7 @@ var SimpleEarn = class {
2926
3669
  constructor(config) {
2927
3670
  const userAgent = buildUserAgent(name, version);
2928
3671
  if (config?.configurationRestAPI) {
2929
- const configRestAPI = new ConfigurationRestAPI4(
3672
+ const configRestAPI = new ConfigurationRestAPI5(
2930
3673
  config.configurationRestAPI
2931
3674
  );
2932
3675
  configRestAPI.basePath = configRestAPI.basePath || SIMPLE_EARN_REST_API_PROD_URL;