@binance/simple-earn 7.0.0 → 8.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,30 +7,78 @@ var __export = (target, all) => {
7
7
  // src/simple-earn.ts
8
8
  import {
9
9
  buildUserAgent,
10
- ConfigurationRestAPI as ConfigurationRestAPI5,
10
+ ConfigurationRestAPI as ConfigurationRestAPI4,
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 = "7.0.0";
16
+ var version = "8.0.0";
17
17
 
18
18
  // src/rest-api/index.ts
19
19
  var rest_api_exports = {};
20
20
  __export(rest_api_exports, {
21
- AccountApi: () => AccountApi,
22
- EarnApi: () => EarnApi,
23
- HistoryApi: () => HistoryApi,
24
- RestAPI: () => RestAPI
21
+ FlexibleLockedApi: () => FlexibleLockedApi,
22
+ RestAPI: () => RestAPI,
23
+ RwusdApi: () => RwusdApi
25
24
  });
26
25
 
27
- // src/rest-api/modules/account-api.ts
26
+ // src/rest-api/modules/flexible-locked-api.ts
28
27
  import {
29
28
  assertParamExists,
30
29
  sendRequest
31
30
  } from "@binance/common";
32
- var AccountApiAxiosParamCreator = function(configuration) {
31
+ var FlexibleLockedApiAxiosParamCreator = function(configuration) {
33
32
  return {
33
+ /**
34
+ * Get Collateral Record
35
+ *
36
+ * The time between `startTime` and `endTime` cannot be longer than 30 days.
37
+ * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.
38
+ * If `startTime` is sent but `endTime` is not sent, the next 30 days' data beginning from `startTime` will be returned.
39
+ * If `endTime` is sent but `startTime` is not sent, the 30 days' data before `endTime` will be returned.
40
+ *
41
+ * Weight: 1
42
+ *
43
+ * @summary Get Collateral Record(USER_DATA)
44
+ * @param {string} [productId]
45
+ * @param {number} [startTime]
46
+ * @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]
50
+ *
51
+ * @throws {RequiredError}
52
+ */
53
+ getCollateralRecord: async (productId, startTime, endTime, current, size, recvWindow) => {
54
+ const localVarQueryParameter = {};
55
+ if (productId !== void 0 && productId !== null) {
56
+ localVarQueryParameter["productId"] = productId;
57
+ }
58
+ if (startTime !== void 0 && startTime !== null) {
59
+ localVarQueryParameter["startTime"] = startTime;
60
+ }
61
+ if (endTime !== void 0 && endTime !== null) {
62
+ localVarQueryParameter["endTime"] = endTime;
63
+ }
64
+ if (current !== void 0 && current !== null) {
65
+ localVarQueryParameter["current"] = current;
66
+ }
67
+ if (size !== void 0 && size !== null) {
68
+ localVarQueryParameter["size"] = size;
69
+ }
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/simple-earn/flexible/history/collateralRecord",
77
+ method: "GET",
78
+ params: localVarQueryParameter,
79
+ timeUnit: _timeUnit
80
+ };
81
+ },
34
82
  /**
35
83
  * Get Flexible Personal Left Quota
36
84
  *
@@ -66,7 +114,7 @@ var AccountApiAxiosParamCreator = function(configuration) {
66
114
  * Weight: 150
67
115
  *
68
116
  * @summary Get Flexible Product Position(USER_DATA)
69
- * @param {string} [asset]
117
+ * @param {string} [asset] USDC or USDT
70
118
  * @param {string} [productId]
71
119
  * @param {number} [current] Currently querying the page. Start from 1. Default:1
72
120
  * @param {number} [size] Default:10, Max:100
@@ -101,21 +149,49 @@ var AccountApiAxiosParamCreator = function(configuration) {
101
149
  };
102
150
  },
103
151
  /**
104
- * Get Locked Personal Left Quota
152
+ * Get Flexible Redemption Record
153
+ *
154
+ * The time between `startTime` and `endTime` cannot be longer than 3 months.
155
+ * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.
156
+ * If `startTime` is sent but `endTime` is not sent, the next 30 days' data beginning from `startTime` will be returned.
157
+ * If `endTime` is sent but `startTime` is not sent, the 30 days' data before `endTime` will be returned.
105
158
  *
106
159
  * Weight: 150
107
160
  *
108
- * @summary Get Locked Personal Left Quota(USER_DATA)
109
- * @param {string} projectId
161
+ * @summary Get Flexible Redemption Record(USER_DATA)
162
+ * @param {string} [productId]
163
+ * @param {string} [redeemId]
164
+ * @param {string} [asset] USDC or USDT
165
+ * @param {number} [startTime]
166
+ * @param {number} [endTime]
167
+ * @param {number} [current] Currently querying the page. Start from 1. Default:1
168
+ * @param {number} [size] Default:10, Max:100
110
169
  * @param {number} [recvWindow]
111
170
  *
112
171
  * @throws {RequiredError}
113
172
  */
114
- getLockedPersonalLeftQuota: async (projectId, recvWindow) => {
115
- assertParamExists("getLockedPersonalLeftQuota", "projectId", projectId);
173
+ getFlexibleRedemptionRecord: async (productId, redeemId, asset, startTime, endTime, current, size, recvWindow) => {
116
174
  const localVarQueryParameter = {};
117
- if (projectId !== void 0 && projectId !== null) {
118
- localVarQueryParameter["projectId"] = projectId;
175
+ if (productId !== void 0 && productId !== null) {
176
+ localVarQueryParameter["productId"] = productId;
177
+ }
178
+ if (redeemId !== void 0 && redeemId !== null) {
179
+ localVarQueryParameter["redeemId"] = redeemId;
180
+ }
181
+ if (asset !== void 0 && asset !== null) {
182
+ localVarQueryParameter["asset"] = asset;
183
+ }
184
+ if (startTime !== void 0 && startTime !== null) {
185
+ localVarQueryParameter["startTime"] = startTime;
186
+ }
187
+ if (endTime !== void 0 && endTime !== null) {
188
+ localVarQueryParameter["endTime"] = endTime;
189
+ }
190
+ if (current !== void 0 && current !== null) {
191
+ localVarQueryParameter["current"] = current;
192
+ }
193
+ if (size !== void 0 && size !== null) {
194
+ localVarQueryParameter["size"] = size;
119
195
  }
120
196
  if (recvWindow !== void 0 && recvWindow !== null) {
121
197
  localVarQueryParameter["recvWindow"] = recvWindow;
@@ -123,37 +199,51 @@ var AccountApiAxiosParamCreator = function(configuration) {
123
199
  let _timeUnit;
124
200
  if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
125
201
  return {
126
- endpoint: "/sapi/v1/simple-earn/locked/personalLeftQuota",
202
+ endpoint: "/sapi/v1/simple-earn/flexible/history/redemptionRecord",
127
203
  method: "GET",
128
204
  params: localVarQueryParameter,
129
205
  timeUnit: _timeUnit
130
206
  };
131
207
  },
132
208
  /**
133
- * Get Locked Product Position
209
+ * Get Flexible Rewards History
210
+ *
211
+ * The time between `startTime` and `endTime` cannot be longer than 3 months.
212
+ * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.
213
+ * If `startTime` is sent but `endTime` is not sent, the next 30 days' data beginning from `startTime` will be returned.
214
+ * If `endTime` is sent but `startTime` is not sent, the 30 days' data before `endTime` will be returned.
134
215
  *
135
216
  * Weight: 150
136
217
  *
137
- * @summary Get Locked Product Position
138
- * @param {string} [asset]
139
- * @param {number} [positionId]
140
- * @param {string} [projectId]
218
+ * @summary Get Flexible Rewards History(USER_DATA)
219
+ * @param {string} type FAST or STANDARD, defaults to STANDARD
220
+ * @param {string} [productId]
221
+ * @param {string} [asset] USDC or USDT
222
+ * @param {number} [startTime]
223
+ * @param {number} [endTime]
141
224
  * @param {number} [current] Currently querying the page. Start from 1. Default:1
142
225
  * @param {number} [size] Default:10, Max:100
143
226
  * @param {number} [recvWindow]
144
227
  *
145
228
  * @throws {RequiredError}
146
229
  */
147
- getLockedProductPosition: async (asset, positionId, projectId, current, size, recvWindow) => {
230
+ getFlexibleRewardsHistory: async (type, productId, asset, startTime, endTime, current, size, recvWindow) => {
231
+ assertParamExists("getFlexibleRewardsHistory", "type", type);
148
232
  const localVarQueryParameter = {};
233
+ if (productId !== void 0 && productId !== null) {
234
+ localVarQueryParameter["productId"] = productId;
235
+ }
149
236
  if (asset !== void 0 && asset !== null) {
150
237
  localVarQueryParameter["asset"] = asset;
151
238
  }
152
- if (positionId !== void 0 && positionId !== null) {
153
- localVarQueryParameter["positionId"] = positionId;
239
+ if (startTime !== void 0 && startTime !== null) {
240
+ localVarQueryParameter["startTime"] = startTime;
154
241
  }
155
- if (projectId !== void 0 && projectId !== null) {
156
- localVarQueryParameter["projectId"] = projectId;
242
+ if (endTime !== void 0 && endTime !== null) {
243
+ localVarQueryParameter["endTime"] = endTime;
244
+ }
245
+ if (type !== void 0 && type !== null) {
246
+ localVarQueryParameter["type"] = type;
157
247
  }
158
248
  if (current !== void 0 && current !== null) {
159
249
  localVarQueryParameter["current"] = current;
@@ -167,35 +257,33 @@ var AccountApiAxiosParamCreator = function(configuration) {
167
257
  let _timeUnit;
168
258
  if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
169
259
  return {
170
- endpoint: "/sapi/v1/simple-earn/locked/position",
260
+ endpoint: "/sapi/v1/simple-earn/flexible/history/rewardsRecord",
171
261
  method: "GET",
172
262
  params: localVarQueryParameter,
173
263
  timeUnit: _timeUnit
174
264
  };
175
265
  },
176
266
  /**
177
- * Get available Simple Earn flexible product list
267
+ * Get Flexible Subscription Preview
178
268
  *
179
269
  * Weight: 150
180
270
  *
181
- * @summary Get Simple Earn Flexible Product List(USER_DATA)
182
- * @param {string} [asset]
183
- * @param {number} [current] Currently querying the page. Start from 1. Default:1
184
- * @param {number} [size] Default:10, Max:100
271
+ * @summary Get Flexible Subscription Preview(USER_DATA)
272
+ * @param {string} productId
273
+ * @param {number} amount Amount
185
274
  * @param {number} [recvWindow]
186
275
  *
187
276
  * @throws {RequiredError}
188
277
  */
189
- getSimpleEarnFlexibleProductList: async (asset, current, size, recvWindow) => {
278
+ getFlexibleSubscriptionPreview: async (productId, amount, recvWindow) => {
279
+ assertParamExists("getFlexibleSubscriptionPreview", "productId", productId);
280
+ assertParamExists("getFlexibleSubscriptionPreview", "amount", amount);
190
281
  const localVarQueryParameter = {};
191
- if (asset !== void 0 && asset !== null) {
192
- localVarQueryParameter["asset"] = asset;
193
- }
194
- if (current !== void 0 && current !== null) {
195
- localVarQueryParameter["current"] = current;
282
+ if (productId !== void 0 && productId !== null) {
283
+ localVarQueryParameter["productId"] = productId;
196
284
  }
197
- if (size !== void 0 && size !== null) {
198
- localVarQueryParameter["size"] = size;
285
+ if (amount !== void 0 && amount !== null) {
286
+ localVarQueryParameter["amount"] = amount;
199
287
  }
200
288
  if (recvWindow !== void 0 && recvWindow !== null) {
201
289
  localVarQueryParameter["recvWindow"] = recvWindow;
@@ -203,32 +291,51 @@ var AccountApiAxiosParamCreator = function(configuration) {
203
291
  let _timeUnit;
204
292
  if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
205
293
  return {
206
- endpoint: "/sapi/v1/simple-earn/flexible/list",
294
+ endpoint: "/sapi/v1/simple-earn/flexible/subscriptionPreview",
207
295
  method: "GET",
208
296
  params: localVarQueryParameter,
209
297
  timeUnit: _timeUnit
210
298
  };
211
299
  },
212
300
  /**
213
- * Get Simple Earn Locked Product List
301
+ * Get Flexible Subscription Record
214
302
  *
215
- * Get available Simple Earn locked product list
303
+ * The time between `startTime` and `endTime` cannot be longer than 3 months.
304
+ * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.
305
+ * If `startTime` is sent but `endTime` is not sent, the next 30 days' data beginning from `startTime` will be returned.
306
+ * If `endTime` is sent but `startTime` is not sent, the 30 days' data before `endTime` will be returned.
216
307
  *
217
308
  * Weight: 150
218
309
  *
219
- * @summary Get Simple Earn Locked Product List(USER_DATA)
220
- * @param {string} [asset]
310
+ * @summary Get Flexible Subscription Record(USER_DATA)
311
+ * @param {string} [productId]
312
+ * @param {string} [purchaseId]
313
+ * @param {string} [asset] USDC or USDT
314
+ * @param {number} [startTime]
315
+ * @param {number} [endTime]
221
316
  * @param {number} [current] Currently querying the page. Start from 1. Default:1
222
317
  * @param {number} [size] Default:10, Max:100
223
318
  * @param {number} [recvWindow]
224
319
  *
225
320
  * @throws {RequiredError}
226
321
  */
227
- getSimpleEarnLockedProductList: async (asset, current, size, recvWindow) => {
322
+ getFlexibleSubscriptionRecord: async (productId, purchaseId, asset, startTime, endTime, current, size, recvWindow) => {
228
323
  const localVarQueryParameter = {};
324
+ if (productId !== void 0 && productId !== null) {
325
+ localVarQueryParameter["productId"] = productId;
326
+ }
327
+ if (purchaseId !== void 0 && purchaseId !== null) {
328
+ localVarQueryParameter["purchaseId"] = purchaseId;
329
+ }
229
330
  if (asset !== void 0 && asset !== null) {
230
331
  localVarQueryParameter["asset"] = asset;
231
332
  }
333
+ if (startTime !== void 0 && startTime !== null) {
334
+ localVarQueryParameter["startTime"] = startTime;
335
+ }
336
+ if (endTime !== void 0 && endTime !== null) {
337
+ localVarQueryParameter["endTime"] = endTime;
338
+ }
232
339
  if (current !== void 0 && current !== null) {
233
340
  localVarQueryParameter["current"] = current;
234
341
  }
@@ -241,267 +348,72 @@ var AccountApiAxiosParamCreator = function(configuration) {
241
348
  let _timeUnit;
242
349
  if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
243
350
  return {
244
- endpoint: "/sapi/v1/simple-earn/locked/list",
351
+ endpoint: "/sapi/v1/simple-earn/flexible/history/subscriptionRecord",
245
352
  method: "GET",
246
353
  params: localVarQueryParameter,
247
354
  timeUnit: _timeUnit
248
355
  };
249
356
  },
250
357
  /**
251
- * Simple Account query
358
+ * Get Locked Personal Left Quota
252
359
  *
253
360
  * Weight: 150
254
361
  *
255
- * @summary Simple Account(USER_DATA)
362
+ * @summary Get Locked Personal Left Quota(USER_DATA)
363
+ * @param {string} projectId
256
364
  * @param {number} [recvWindow]
257
365
  *
258
366
  * @throws {RequiredError}
259
367
  */
260
- simpleAccount: async (recvWindow) => {
368
+ getLockedPersonalLeftQuota: async (projectId, recvWindow) => {
369
+ assertParamExists("getLockedPersonalLeftQuota", "projectId", projectId);
261
370
  const localVarQueryParameter = {};
371
+ if (projectId !== void 0 && projectId !== null) {
372
+ localVarQueryParameter["projectId"] = projectId;
373
+ }
262
374
  if (recvWindow !== void 0 && recvWindow !== null) {
263
375
  localVarQueryParameter["recvWindow"] = recvWindow;
264
376
  }
265
377
  let _timeUnit;
266
378
  if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
267
379
  return {
268
- endpoint: "/sapi/v1/simple-earn/account",
380
+ endpoint: "/sapi/v1/simple-earn/locked/personalLeftQuota",
269
381
  method: "GET",
270
382
  params: localVarQueryParameter,
271
383
  timeUnit: _timeUnit
272
384
  };
273
- }
274
- };
275
- };
276
- var AccountApi = class {
277
- constructor(configuration) {
278
- this.configuration = configuration;
279
- this.localVarAxiosParamCreator = AccountApiAxiosParamCreator(configuration);
280
- }
281
- /**
282
- * Get Flexible Personal Left Quota
283
- *
284
- * Weight: 150
285
- *
286
- * @summary Get Flexible Personal Left Quota(USER_DATA)
287
- * @param {GetFlexiblePersonalLeftQuotaRequest} requestParameters Request parameters.
288
- * @returns {Promise<RestApiResponse<GetFlexiblePersonalLeftQuotaResponse>>}
289
- * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
290
- * @memberof AccountApi
291
- * @see {@link https://developers.binance.com/docs/simple_earn/account/Get-Flexible-Personal-Left-Quota Binance API Documentation}
292
- */
293
- async getFlexiblePersonalLeftQuota(requestParameters) {
294
- const localVarAxiosArgs = await this.localVarAxiosParamCreator.getFlexiblePersonalLeftQuota(
295
- requestParameters?.productId,
296
- requestParameters?.recvWindow
297
- );
298
- return sendRequest(
299
- this.configuration,
300
- localVarAxiosArgs.endpoint,
301
- localVarAxiosArgs.method,
302
- localVarAxiosArgs.params,
303
- localVarAxiosArgs?.timeUnit,
304
- { isSigned: true }
305
- );
306
- }
307
- /**
308
- * Get Flexible Product Position
309
- *
310
- * Weight: 150
311
- *
312
- * @summary Get Flexible Product Position(USER_DATA)
313
- * @param {GetFlexibleProductPositionRequest} requestParameters Request parameters.
314
- * @returns {Promise<RestApiResponse<GetFlexibleProductPositionResponse>>}
315
- * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
316
- * @memberof AccountApi
317
- * @see {@link https://developers.binance.com/docs/simple_earn/account/Get-Flexible-Product-Position Binance API Documentation}
318
- */
319
- async getFlexibleProductPosition(requestParameters = {}) {
320
- const localVarAxiosArgs = await this.localVarAxiosParamCreator.getFlexibleProductPosition(
321
- requestParameters?.asset,
322
- requestParameters?.productId,
323
- requestParameters?.current,
324
- requestParameters?.size,
325
- requestParameters?.recvWindow
326
- );
327
- return sendRequest(
328
- this.configuration,
329
- localVarAxiosArgs.endpoint,
330
- localVarAxiosArgs.method,
331
- localVarAxiosArgs.params,
332
- localVarAxiosArgs?.timeUnit,
333
- { isSigned: true }
334
- );
335
- }
336
- /**
337
- * Get Locked Personal Left Quota
338
- *
339
- * Weight: 150
340
- *
341
- * @summary Get Locked Personal Left Quota(USER_DATA)
342
- * @param {GetLockedPersonalLeftQuotaRequest} requestParameters Request parameters.
343
- * @returns {Promise<RestApiResponse<GetLockedPersonalLeftQuotaResponse>>}
344
- * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
345
- * @memberof AccountApi
346
- * @see {@link https://developers.binance.com/docs/simple_earn/account/Get-Locked-Personal-Left-Quota Binance API Documentation}
347
- */
348
- async getLockedPersonalLeftQuota(requestParameters) {
349
- const localVarAxiosArgs = await this.localVarAxiosParamCreator.getLockedPersonalLeftQuota(
350
- requestParameters?.projectId,
351
- requestParameters?.recvWindow
352
- );
353
- return sendRequest(
354
- this.configuration,
355
- localVarAxiosArgs.endpoint,
356
- localVarAxiosArgs.method,
357
- localVarAxiosArgs.params,
358
- localVarAxiosArgs?.timeUnit,
359
- { isSigned: true }
360
- );
361
- }
362
- /**
363
- * Get Locked Product Position
364
- *
365
- * Weight: 150
366
- *
367
- * @summary Get Locked Product Position
368
- * @param {GetLockedProductPositionRequest} requestParameters Request parameters.
369
- * @returns {Promise<RestApiResponse<GetLockedProductPositionResponse>>}
370
- * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
371
- * @memberof AccountApi
372
- * @see {@link https://developers.binance.com/docs/simple_earn/account/Get-Locked-Product-Position Binance API Documentation}
373
- */
374
- async getLockedProductPosition(requestParameters = {}) {
375
- const localVarAxiosArgs = await this.localVarAxiosParamCreator.getLockedProductPosition(
376
- requestParameters?.asset,
377
- requestParameters?.positionId,
378
- requestParameters?.projectId,
379
- requestParameters?.current,
380
- requestParameters?.size,
381
- requestParameters?.recvWindow
382
- );
383
- return sendRequest(
384
- this.configuration,
385
- localVarAxiosArgs.endpoint,
386
- localVarAxiosArgs.method,
387
- localVarAxiosArgs.params,
388
- localVarAxiosArgs?.timeUnit,
389
- { isSigned: true }
390
- );
391
- }
392
- /**
393
- * Get available Simple Earn flexible product list
394
- *
395
- * Weight: 150
396
- *
397
- * @summary Get Simple Earn Flexible Product List(USER_DATA)
398
- * @param {GetSimpleEarnFlexibleProductListRequest} requestParameters Request parameters.
399
- * @returns {Promise<RestApiResponse<GetSimpleEarnFlexibleProductListResponse>>}
400
- * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
401
- * @memberof AccountApi
402
- * @see {@link https://developers.binance.com/docs/simple_earn/account/Get-Simple-Earn-Flexible-Product-List Binance API Documentation}
403
- */
404
- async getSimpleEarnFlexibleProductList(requestParameters = {}) {
405
- const localVarAxiosArgs = await this.localVarAxiosParamCreator.getSimpleEarnFlexibleProductList(
406
- requestParameters?.asset,
407
- requestParameters?.current,
408
- requestParameters?.size,
409
- requestParameters?.recvWindow
410
- );
411
- return sendRequest(
412
- this.configuration,
413
- localVarAxiosArgs.endpoint,
414
- localVarAxiosArgs.method,
415
- localVarAxiosArgs.params,
416
- localVarAxiosArgs?.timeUnit,
417
- { isSigned: true }
418
- );
419
- }
420
- /**
421
- * Get Simple Earn Locked Product List
422
- *
423
- * Get available Simple Earn locked product list
424
- *
425
- * Weight: 150
426
- *
427
- * @summary Get Simple Earn Locked Product List(USER_DATA)
428
- * @param {GetSimpleEarnLockedProductListRequest} requestParameters Request parameters.
429
- * @returns {Promise<RestApiResponse<GetSimpleEarnLockedProductListResponse>>}
430
- * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
431
- * @memberof AccountApi
432
- * @see {@link https://developers.binance.com/docs/simple_earn/account/Get-Simple-Earn-Locked-Product-List Binance API Documentation}
433
- */
434
- async getSimpleEarnLockedProductList(requestParameters = {}) {
435
- const localVarAxiosArgs = await this.localVarAxiosParamCreator.getSimpleEarnLockedProductList(
436
- requestParameters?.asset,
437
- requestParameters?.current,
438
- requestParameters?.size,
439
- requestParameters?.recvWindow
440
- );
441
- return sendRequest(
442
- this.configuration,
443
- localVarAxiosArgs.endpoint,
444
- localVarAxiosArgs.method,
445
- localVarAxiosArgs.params,
446
- localVarAxiosArgs?.timeUnit,
447
- { isSigned: true }
448
- );
449
- }
450
- /**
451
- * Simple Account query
452
- *
453
- * Weight: 150
454
- *
455
- * @summary Simple Account(USER_DATA)
456
- * @param {SimpleAccountRequest} requestParameters Request parameters.
457
- * @returns {Promise<RestApiResponse<SimpleAccountResponse>>}
458
- * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
459
- * @memberof AccountApi
460
- * @see {@link https://developers.binance.com/docs/simple_earn/account/Simple-Account Binance API Documentation}
461
- */
462
- async simpleAccount(requestParameters = {}) {
463
- const localVarAxiosArgs = await this.localVarAxiosParamCreator.simpleAccount(
464
- requestParameters?.recvWindow
465
- );
466
- return sendRequest(
467
- this.configuration,
468
- localVarAxiosArgs.endpoint,
469
- localVarAxiosArgs.method,
470
- localVarAxiosArgs.params,
471
- localVarAxiosArgs?.timeUnit,
472
- { isSigned: true }
473
- );
474
- }
475
- };
476
-
477
- // src/rest-api/modules/earn-api.ts
478
- import {
479
- assertParamExists as assertParamExists2,
480
- sendRequest as sendRequest2
481
- } from "@binance/common";
482
- var EarnApiAxiosParamCreator = function(configuration) {
483
- return {
385
+ },
484
386
  /**
485
- * Get Flexible Subscription Preview
387
+ * Get Locked Product Position
486
388
  *
487
389
  * Weight: 150
488
390
  *
489
- * @summary Get Flexible Subscription Preview(USER_DATA)
490
- * @param {string} productId
491
- * @param {number} amount
391
+ * @summary Get Locked Product Position
392
+ * @param {string} [asset] USDC or USDT
393
+ * @param {number} [positionId]
394
+ * @param {string} [projectId]
395
+ * @param {number} [current] Currently querying the page. Start from 1. Default:1
396
+ * @param {number} [size] Default:10, Max:100
492
397
  * @param {number} [recvWindow]
493
398
  *
494
399
  * @throws {RequiredError}
495
400
  */
496
- getFlexibleSubscriptionPreview: async (productId, amount, recvWindow) => {
497
- assertParamExists2("getFlexibleSubscriptionPreview", "productId", productId);
498
- assertParamExists2("getFlexibleSubscriptionPreview", "amount", amount);
401
+ getLockedProductPosition: async (asset, positionId, projectId, current, size, recvWindow) => {
499
402
  const localVarQueryParameter = {};
500
- if (productId !== void 0 && productId !== null) {
501
- localVarQueryParameter["productId"] = productId;
403
+ if (asset !== void 0 && asset !== null) {
404
+ localVarQueryParameter["asset"] = asset;
502
405
  }
503
- if (amount !== void 0 && amount !== null) {
504
- localVarQueryParameter["amount"] = amount;
406
+ if (positionId !== void 0 && positionId !== null) {
407
+ localVarQueryParameter["positionId"] = positionId;
408
+ }
409
+ if (projectId !== void 0 && projectId !== null) {
410
+ localVarQueryParameter["projectId"] = projectId;
411
+ }
412
+ if (current !== void 0 && current !== null) {
413
+ localVarQueryParameter["current"] = current;
414
+ }
415
+ if (size !== void 0 && size !== null) {
416
+ localVarQueryParameter["size"] = size;
505
417
  }
506
418
  if (recvWindow !== void 0 && recvWindow !== null) {
507
419
  localVarQueryParameter["recvWindow"] = recvWindow;
@@ -509,37 +421,56 @@ var EarnApiAxiosParamCreator = function(configuration) {
509
421
  let _timeUnit;
510
422
  if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
511
423
  return {
512
- endpoint: "/sapi/v1/simple-earn/flexible/subscriptionPreview",
424
+ endpoint: "/sapi/v1/simple-earn/locked/position",
513
425
  method: "GET",
514
426
  params: localVarQueryParameter,
515
427
  timeUnit: _timeUnit
516
428
  };
517
429
  },
518
430
  /**
519
- * Get Locked Subscription Preview
431
+ * Get Locked Redemption Record
432
+ *
433
+ * The time between `startTime` and `endTime` cannot be longer than 3 months.
434
+ * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.
435
+ * If `startTime` is sent but `endTime` is not sent, the next 30 days' data beginning from `startTime` will be returned.
436
+ * If `endTime` is sent but `startTime` is not sent, the 30 days' data before `endTime` will be returned.
520
437
  *
521
438
  * Weight: 150
522
439
  *
523
- * @summary Get Locked Subscription Preview(USER_DATA)
524
- * @param {string} projectId
525
- * @param {number} amount
526
- * @param {boolean} [autoSubscribe] true or false, default true.
440
+ * @summary Get Locked Redemption Record(USER_DATA)
441
+ * @param {number} [positionId]
442
+ * @param {string} [redeemId]
443
+ * @param {string} [asset] USDC or USDT
444
+ * @param {number} [startTime]
445
+ * @param {number} [endTime]
446
+ * @param {number} [current] Currently querying the page. Start from 1. Default:1
447
+ * @param {number} [size] Default:10, Max:100
527
448
  * @param {number} [recvWindow]
528
449
  *
529
450
  * @throws {RequiredError}
530
451
  */
531
- getLockedSubscriptionPreview: async (projectId, amount, autoSubscribe, recvWindow) => {
532
- assertParamExists2("getLockedSubscriptionPreview", "projectId", projectId);
533
- assertParamExists2("getLockedSubscriptionPreview", "amount", amount);
452
+ getLockedRedemptionRecord: async (positionId, redeemId, asset, startTime, endTime, current, size, recvWindow) => {
534
453
  const localVarQueryParameter = {};
535
- if (projectId !== void 0 && projectId !== null) {
536
- localVarQueryParameter["projectId"] = projectId;
454
+ if (positionId !== void 0 && positionId !== null) {
455
+ localVarQueryParameter["positionId"] = positionId;
537
456
  }
538
- if (amount !== void 0 && amount !== null) {
539
- localVarQueryParameter["amount"] = amount;
457
+ if (redeemId !== void 0 && redeemId !== null) {
458
+ localVarQueryParameter["redeemId"] = redeemId;
540
459
  }
541
- if (autoSubscribe !== void 0 && autoSubscribe !== null) {
542
- localVarQueryParameter["autoSubscribe"] = autoSubscribe;
460
+ if (asset !== void 0 && asset !== null) {
461
+ localVarQueryParameter["asset"] = asset;
462
+ }
463
+ if (startTime !== void 0 && startTime !== null) {
464
+ localVarQueryParameter["startTime"] = startTime;
465
+ }
466
+ if (endTime !== void 0 && endTime !== null) {
467
+ localVarQueryParameter["endTime"] = endTime;
468
+ }
469
+ if (current !== void 0 && current !== null) {
470
+ localVarQueryParameter["current"] = current;
471
+ }
472
+ if (size !== void 0 && size !== null) {
473
+ localVarQueryParameter["size"] = size;
543
474
  }
544
475
  if (recvWindow !== void 0 && recvWindow !== null) {
545
476
  localVarQueryParameter["recvWindow"] = recvWindow;
@@ -547,42 +478,52 @@ var EarnApiAxiosParamCreator = function(configuration) {
547
478
  let _timeUnit;
548
479
  if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
549
480
  return {
550
- endpoint: "/sapi/v1/simple-earn/locked/subscriptionPreview",
481
+ endpoint: "/sapi/v1/simple-earn/locked/history/redemptionRecord",
551
482
  method: "GET",
552
483
  params: localVarQueryParameter,
553
484
  timeUnit: _timeUnit
554
485
  };
555
486
  },
556
487
  /**
557
- * Redeem Flexible Product
488
+ * Get Locked Rewards History
558
489
  *
559
- * You need to open `Enable Spot & Margin Trading` permission for the API Key which requests this endpoint.
490
+ * The time between `startTime` and `endTime` cannot be longer than 3 months.
491
+ * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.
492
+ * If `startTime` is sent but `endTime` is not sent, the next 30 days' data beginning from `startTime` will be returned.
493
+ * If `endTime` is sent but `startTime` is not sent, the 30 days' data before `endTime` will be returned.
560
494
  *
561
- * Weight: 1
495
+ * Weight: 150
562
496
  *
563
- * @summary Redeem Flexible Product(TRADE)
564
- * @param {string} productId
565
- * @param {boolean} [redeemAll] true or false, default to false
566
- * @param {number} [amount] if redeemAll is false, amount is mandatory
567
- * @param {string} [destAccount] `SPOT`,`FUND`, default `SPOT`
497
+ * @summary Get Locked Rewards History(USER_DATA)
498
+ * @param {number} [positionId]
499
+ * @param {string} [asset] USDC or USDT
500
+ * @param {number} [startTime]
501
+ * @param {number} [endTime]
502
+ * @param {number} [current] Currently querying the page. Start from 1. Default:1
503
+ * @param {number} [size] Default:10, Max:100
568
504
  * @param {number} [recvWindow]
569
505
  *
570
506
  * @throws {RequiredError}
571
507
  */
572
- redeemFlexibleProduct: async (productId, redeemAll, amount, destAccount, recvWindow) => {
573
- assertParamExists2("redeemFlexibleProduct", "productId", productId);
508
+ getLockedRewardsHistory: async (positionId, asset, startTime, endTime, current, size, recvWindow) => {
574
509
  const localVarQueryParameter = {};
575
- if (productId !== void 0 && productId !== null) {
576
- localVarQueryParameter["productId"] = productId;
510
+ if (positionId !== void 0 && positionId !== null) {
511
+ localVarQueryParameter["positionId"] = positionId;
577
512
  }
578
- if (redeemAll !== void 0 && redeemAll !== null) {
579
- localVarQueryParameter["redeemAll"] = redeemAll;
513
+ if (asset !== void 0 && asset !== null) {
514
+ localVarQueryParameter["asset"] = asset;
580
515
  }
581
- if (amount !== void 0 && amount !== null) {
582
- localVarQueryParameter["amount"] = amount;
516
+ if (startTime !== void 0 && startTime !== null) {
517
+ localVarQueryParameter["startTime"] = startTime;
583
518
  }
584
- if (destAccount !== void 0 && destAccount !== null) {
585
- localVarQueryParameter["destAccount"] = destAccount;
519
+ if (endTime !== void 0 && endTime !== null) {
520
+ localVarQueryParameter["endTime"] = endTime;
521
+ }
522
+ if (current !== void 0 && current !== null) {
523
+ localVarQueryParameter["current"] = current;
524
+ }
525
+ if (size !== void 0 && size !== null) {
526
+ localVarQueryParameter["size"] = size;
586
527
  }
587
528
  if (recvWindow !== void 0 && recvWindow !== null) {
588
529
  localVarQueryParameter["recvWindow"] = recvWindow;
@@ -590,30 +531,37 @@ var EarnApiAxiosParamCreator = function(configuration) {
590
531
  let _timeUnit;
591
532
  if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
592
533
  return {
593
- endpoint: "/sapi/v1/simple-earn/flexible/redeem",
594
- method: "POST",
534
+ endpoint: "/sapi/v1/simple-earn/locked/history/rewardsRecord",
535
+ method: "GET",
595
536
  params: localVarQueryParameter,
596
537
  timeUnit: _timeUnit
597
538
  };
598
539
  },
599
540
  /**
600
- * Redeem Locked Product
601
- *
602
- * You need to open `Enable Spot & Margin Trading` permission for the API Key which requests this endpoint.
541
+ * Get Locked Subscription Preview
603
542
  *
604
- * Weight: 1/3s per account
543
+ * Weight: 150
605
544
  *
606
- * @summary Redeem Locked Product(TRADE)
607
- * @param {string} positionId
545
+ * @summary Get Locked Subscription Preview(USER_DATA)
546
+ * @param {string} projectId
547
+ * @param {number} amount Amount
548
+ * @param {boolean} [autoSubscribe] true or false, default true.
608
549
  * @param {number} [recvWindow]
609
550
  *
610
551
  * @throws {RequiredError}
611
552
  */
612
- redeemLockedProduct: async (positionId, recvWindow) => {
613
- assertParamExists2("redeemLockedProduct", "positionId", positionId);
553
+ getLockedSubscriptionPreview: async (projectId, amount, autoSubscribe, recvWindow) => {
554
+ assertParamExists("getLockedSubscriptionPreview", "projectId", projectId);
555
+ assertParamExists("getLockedSubscriptionPreview", "amount", amount);
614
556
  const localVarQueryParameter = {};
615
- if (positionId !== void 0 && positionId !== null) {
616
- localVarQueryParameter["positionId"] = positionId;
557
+ if (projectId !== void 0 && projectId !== null) {
558
+ localVarQueryParameter["projectId"] = projectId;
559
+ }
560
+ if (amount !== void 0 && amount !== null) {
561
+ localVarQueryParameter["amount"] = amount;
562
+ }
563
+ if (autoSubscribe !== void 0 && autoSubscribe !== null) {
564
+ localVarQueryParameter["autoSubscribe"] = autoSubscribe;
617
565
  }
618
566
  if (recvWindow !== void 0 && recvWindow !== null) {
619
567
  localVarQueryParameter["recvWindow"] = recvWindow;
@@ -621,33 +569,106 @@ var EarnApiAxiosParamCreator = function(configuration) {
621
569
  let _timeUnit;
622
570
  if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
623
571
  return {
624
- endpoint: "/sapi/v1/simple-earn/locked/redeem",
625
- method: "POST",
572
+ endpoint: "/sapi/v1/simple-earn/locked/subscriptionPreview",
573
+ method: "GET",
626
574
  params: localVarQueryParameter,
627
575
  timeUnit: _timeUnit
628
576
  };
629
577
  },
630
578
  /**
631
- * Set Flexible Auto Subscribe
579
+ * Get Locked Subscription Record
580
+ *
581
+ * The time between `startTime` and `endTime` cannot be longer than 3 months.
582
+ * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.
583
+ * If `startTime` is sent but `endTime` is not sent, the next 30 days' data beginning from `startTime` will be returned.
584
+ * If `endTime` is sent but `startTime` is not sent, the 30 days' data before `endTime` will be returned.
632
585
  *
633
586
  * Weight: 150
634
587
  *
635
- * @summary Set Flexible Auto Subscribe(USER_DATA)
588
+ * @summary Get Locked Subscription Record(USER_DATA)
589
+ * @param {string} [purchaseId]
590
+ * @param {string} [asset] USDC or USDT
591
+ * @param {number} [startTime]
592
+ * @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]
596
+ *
597
+ * @throws {RequiredError}
598
+ */
599
+ getLockedSubscriptionRecord: async (purchaseId, asset, startTime, endTime, current, size, recvWindow) => {
600
+ const localVarQueryParameter = {};
601
+ if (purchaseId !== void 0 && purchaseId !== null) {
602
+ localVarQueryParameter["purchaseId"] = purchaseId;
603
+ }
604
+ if (asset !== void 0 && asset !== null) {
605
+ localVarQueryParameter["asset"] = asset;
606
+ }
607
+ if (startTime !== void 0 && startTime !== null) {
608
+ localVarQueryParameter["startTime"] = startTime;
609
+ }
610
+ if (endTime !== void 0 && endTime !== null) {
611
+ localVarQueryParameter["endTime"] = endTime;
612
+ }
613
+ if (current !== void 0 && current !== null) {
614
+ localVarQueryParameter["current"] = current;
615
+ }
616
+ if (size !== void 0 && size !== null) {
617
+ localVarQueryParameter["size"] = size;
618
+ }
619
+ if (recvWindow !== void 0 && recvWindow !== null) {
620
+ localVarQueryParameter["recvWindow"] = recvWindow;
621
+ }
622
+ let _timeUnit;
623
+ if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
624
+ return {
625
+ endpoint: "/sapi/v1/simple-earn/locked/history/subscriptionRecord",
626
+ method: "GET",
627
+ params: localVarQueryParameter,
628
+ timeUnit: _timeUnit
629
+ };
630
+ },
631
+ /**
632
+ * Get Rate History
633
+ *
634
+ * The time between startTime and endTime cannot be longer than 1 year.
635
+ * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.
636
+ * If `startTime` is sent but `endTime` is not sent, the next 30 days' data beginning from `startTime` will be returned.
637
+ * If `endTime` is sent but `startTime` is not sent, the 30 days' data before `endTime` will be returned.
638
+ *
639
+ * Weight: 150
640
+ *
641
+ * @summary Get Rate History(USER_DATA)
636
642
  * @param {string} productId
637
- * @param {boolean} autoSubscribe true or false
643
+ * @param {string} [aprPeriod] "DAY","YEAR",default"DAY"
644
+ * @param {number} [startTime]
645
+ * @param {number} [endTime]
646
+ * @param {number} [current] Currently querying the page. Start from 1. Default:1
647
+ * @param {number} [size] Default:10, Max:100
638
648
  * @param {number} [recvWindow]
639
649
  *
640
650
  * @throws {RequiredError}
641
651
  */
642
- setFlexibleAutoSubscribe: async (productId, autoSubscribe, recvWindow) => {
643
- assertParamExists2("setFlexibleAutoSubscribe", "productId", productId);
644
- assertParamExists2("setFlexibleAutoSubscribe", "autoSubscribe", autoSubscribe);
652
+ getRateHistory: async (productId, aprPeriod, startTime, endTime, current, size, recvWindow) => {
653
+ assertParamExists("getRateHistory", "productId", productId);
645
654
  const localVarQueryParameter = {};
646
655
  if (productId !== void 0 && productId !== null) {
647
656
  localVarQueryParameter["productId"] = productId;
648
657
  }
649
- if (autoSubscribe !== void 0 && autoSubscribe !== null) {
650
- localVarQueryParameter["autoSubscribe"] = autoSubscribe;
658
+ if (aprPeriod !== void 0 && aprPeriod !== null) {
659
+ localVarQueryParameter["aprPeriod"] = aprPeriod;
660
+ }
661
+ if (startTime !== void 0 && startTime !== null) {
662
+ localVarQueryParameter["startTime"] = startTime;
663
+ }
664
+ if (endTime !== void 0 && endTime !== null) {
665
+ localVarQueryParameter["endTime"] = endTime;
666
+ }
667
+ if (current !== void 0 && current !== null) {
668
+ localVarQueryParameter["current"] = current;
669
+ }
670
+ if (size !== void 0 && size !== null) {
671
+ localVarQueryParameter["size"] = size;
651
672
  }
652
673
  if (recvWindow !== void 0 && recvWindow !== null) {
653
674
  localVarQueryParameter["recvWindow"] = recvWindow;
@@ -655,33 +676,35 @@ var EarnApiAxiosParamCreator = function(configuration) {
655
676
  let _timeUnit;
656
677
  if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
657
678
  return {
658
- endpoint: "/sapi/v1/simple-earn/flexible/setAutoSubscribe",
659
- method: "POST",
679
+ endpoint: "/sapi/v1/simple-earn/flexible/history/rateHistory",
680
+ method: "GET",
660
681
  params: localVarQueryParameter,
661
682
  timeUnit: _timeUnit
662
683
  };
663
684
  },
664
685
  /**
665
- * Set locked auto subscribe
686
+ * Get available Simple Earn flexible product list
666
687
  *
667
688
  * Weight: 150
668
689
  *
669
- * @summary Set Locked Auto Subscribe(USER_DATA)
670
- * @param {string} positionId
671
- * @param {boolean} autoSubscribe true or false
690
+ * @summary Get Simple Earn Flexible Product List(USER_DATA)
691
+ * @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
672
694
  * @param {number} [recvWindow]
673
695
  *
674
696
  * @throws {RequiredError}
675
697
  */
676
- setLockedAutoSubscribe: async (positionId, autoSubscribe, recvWindow) => {
677
- assertParamExists2("setLockedAutoSubscribe", "positionId", positionId);
678
- assertParamExists2("setLockedAutoSubscribe", "autoSubscribe", autoSubscribe);
698
+ getSimpleEarnFlexibleProductList: async (asset, current, size, recvWindow) => {
679
699
  const localVarQueryParameter = {};
680
- if (positionId !== void 0 && positionId !== null) {
681
- localVarQueryParameter["positionId"] = positionId;
700
+ if (asset !== void 0 && asset !== null) {
701
+ localVarQueryParameter["asset"] = asset;
682
702
  }
683
- if (autoSubscribe !== void 0 && autoSubscribe !== null) {
684
- localVarQueryParameter["autoSubscribe"] = autoSubscribe;
703
+ if (current !== void 0 && current !== null) {
704
+ localVarQueryParameter["current"] = current;
705
+ }
706
+ if (size !== void 0 && size !== null) {
707
+ localVarQueryParameter["size"] = size;
685
708
  }
686
709
  if (recvWindow !== void 0 && recvWindow !== null) {
687
710
  localVarQueryParameter["recvWindow"] = recvWindow;
@@ -689,33 +712,37 @@ var EarnApiAxiosParamCreator = function(configuration) {
689
712
  let _timeUnit;
690
713
  if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
691
714
  return {
692
- endpoint: "/sapi/v1/simple-earn/locked/setAutoSubscribe",
693
- method: "POST",
715
+ endpoint: "/sapi/v1/simple-earn/flexible/list",
716
+ method: "GET",
694
717
  params: localVarQueryParameter,
695
718
  timeUnit: _timeUnit
696
719
  };
697
720
  },
698
721
  /**
699
- * Set redeem option for Locked product
722
+ * Get Simple Earn Locked Product List
700
723
  *
701
- * Weight: 50
724
+ * Get available Simple Earn locked product list
702
725
  *
703
- * @summary Set Locked Product Redeem Option(USER_DATA)
704
- * @param {string} positionId
705
- * @param {string} redeemTo `SPOT`,'FLEXIBLE'
726
+ * Weight: 150
727
+ *
728
+ * @summary Get Simple Earn Locked Product List(USER_DATA)
729
+ * @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
706
732
  * @param {number} [recvWindow]
707
733
  *
708
734
  * @throws {RequiredError}
709
735
  */
710
- setLockedProductRedeemOption: async (positionId, redeemTo, recvWindow) => {
711
- assertParamExists2("setLockedProductRedeemOption", "positionId", positionId);
712
- assertParamExists2("setLockedProductRedeemOption", "redeemTo", redeemTo);
736
+ getSimpleEarnLockedProductList: async (asset, current, size, recvWindow) => {
713
737
  const localVarQueryParameter = {};
714
- if (positionId !== void 0 && positionId !== null) {
715
- localVarQueryParameter["positionId"] = positionId;
738
+ if (asset !== void 0 && asset !== null) {
739
+ localVarQueryParameter["asset"] = asset;
716
740
  }
717
- if (redeemTo !== void 0 && redeemTo !== null) {
718
- localVarQueryParameter["redeemTo"] = redeemTo;
741
+ if (current !== void 0 && current !== null) {
742
+ localVarQueryParameter["current"] = current;
743
+ }
744
+ if (size !== void 0 && size !== null) {
745
+ localVarQueryParameter["size"] = size;
719
746
  }
720
747
  if (recvWindow !== void 0 && recvWindow !== null) {
721
748
  localVarQueryParameter["recvWindow"] = recvWindow;
@@ -723,43 +750,42 @@ var EarnApiAxiosParamCreator = function(configuration) {
723
750
  let _timeUnit;
724
751
  if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
725
752
  return {
726
- endpoint: "/sapi/v1/simple-earn/locked/setRedeemOption",
727
- method: "POST",
753
+ endpoint: "/sapi/v1/simple-earn/locked/list",
754
+ method: "GET",
728
755
  params: localVarQueryParameter,
729
756
  timeUnit: _timeUnit
730
757
  };
731
758
  },
732
759
  /**
733
- * Subscribe Flexible Product
760
+ * Redeem Flexible Product
734
761
  *
735
762
  * You need to open `Enable Spot & Margin Trading` permission for the API Key which requests this endpoint.
736
763
  *
737
764
  * Weight: 1
738
765
  *
739
- * @summary Subscribe Flexible Product(TRADE)
766
+ * @summary Redeem Flexible Product(TRADE)
740
767
  * @param {string} productId
741
- * @param {number} amount
742
- * @param {boolean} [autoSubscribe] true or false, default true.
743
- * @param {string} [sourceAccount] `SPOT`,`FUND`,`ALL`, default `SPOT`
768
+ * @param {boolean} [redeemAll] true or false, default to false
769
+ * @param {number} [amount] if redeemAll is false, amount is mandatory
770
+ * @param {string} [destAccount] `SPOT`,`FUND`, default `SPOT`
744
771
  * @param {number} [recvWindow]
745
772
  *
746
773
  * @throws {RequiredError}
747
774
  */
748
- subscribeFlexibleProduct: async (productId, amount, autoSubscribe, sourceAccount, recvWindow) => {
749
- assertParamExists2("subscribeFlexibleProduct", "productId", productId);
750
- assertParamExists2("subscribeFlexibleProduct", "amount", amount);
775
+ redeemFlexibleProduct: async (productId, redeemAll, amount, destAccount, recvWindow) => {
776
+ assertParamExists("redeemFlexibleProduct", "productId", productId);
751
777
  const localVarQueryParameter = {};
752
778
  if (productId !== void 0 && productId !== null) {
753
779
  localVarQueryParameter["productId"] = productId;
754
780
  }
781
+ if (redeemAll !== void 0 && redeemAll !== null) {
782
+ localVarQueryParameter["redeemAll"] = redeemAll;
783
+ }
755
784
  if (amount !== void 0 && amount !== null) {
756
785
  localVarQueryParameter["amount"] = amount;
757
786
  }
758
- if (autoSubscribe !== void 0 && autoSubscribe !== null) {
759
- localVarQueryParameter["autoSubscribe"] = autoSubscribe;
760
- }
761
- if (sourceAccount !== void 0 && sourceAccount !== null) {
762
- localVarQueryParameter["sourceAccount"] = sourceAccount;
787
+ if (destAccount !== void 0 && destAccount !== null) {
788
+ localVarQueryParameter["destAccount"] = destAccount;
763
789
  }
764
790
  if (recvWindow !== void 0 && recvWindow !== null) {
765
791
  localVarQueryParameter["recvWindow"] = recvWindow;
@@ -767,86 +793,717 @@ var EarnApiAxiosParamCreator = function(configuration) {
767
793
  let _timeUnit;
768
794
  if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
769
795
  return {
770
- endpoint: "/sapi/v1/simple-earn/flexible/subscribe",
796
+ endpoint: "/sapi/v1/simple-earn/flexible/redeem",
771
797
  method: "POST",
772
798
  params: localVarQueryParameter,
773
799
  timeUnit: _timeUnit
774
800
  };
775
801
  },
776
802
  /**
777
- * Subscribe Locked Product
803
+ * Redeem Locked Product
778
804
  *
779
805
  * You need to open `Enable Spot & Margin Trading` permission for the API Key which requests this endpoint.
780
806
  *
781
- * Weight: 1
807
+ * Weight: 1/3s per account
782
808
  *
783
- * @summary Subscribe Locked Product(TRADE)
784
- * @param {string} projectId
785
- * @param {number} amount
786
- * @param {boolean} [autoSubscribe] true or false, default true.
787
- * @param {string} [sourceAccount] `SPOT`,`FUND`,`ALL`, default `SPOT`
788
- * @param {string} [redeemTo] `SPOT`,`FLEXIBLE`, default `FLEXIBLE`
809
+ * @summary Redeem Locked Product(TRADE)
810
+ * @param {string} positionId
789
811
  * @param {number} [recvWindow]
790
812
  *
791
813
  * @throws {RequiredError}
792
814
  */
793
- subscribeLockedProduct: async (projectId, amount, autoSubscribe, sourceAccount, redeemTo, recvWindow) => {
794
- assertParamExists2("subscribeLockedProduct", "projectId", projectId);
795
- assertParamExists2("subscribeLockedProduct", "amount", amount);
815
+ redeemLockedProduct: async (positionId, recvWindow) => {
816
+ assertParamExists("redeemLockedProduct", "positionId", positionId);
796
817
  const localVarQueryParameter = {};
797
- if (projectId !== void 0 && projectId !== null) {
798
- localVarQueryParameter["projectId"] = projectId;
818
+ if (positionId !== void 0 && positionId !== null) {
819
+ localVarQueryParameter["positionId"] = positionId;
799
820
  }
800
- if (amount !== void 0 && amount !== null) {
801
- localVarQueryParameter["amount"] = amount;
821
+ if (recvWindow !== void 0 && recvWindow !== null) {
822
+ localVarQueryParameter["recvWindow"] = recvWindow;
823
+ }
824
+ let _timeUnit;
825
+ if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
826
+ return {
827
+ endpoint: "/sapi/v1/simple-earn/locked/redeem",
828
+ method: "POST",
829
+ params: localVarQueryParameter,
830
+ timeUnit: _timeUnit
831
+ };
832
+ },
833
+ /**
834
+ * Set Flexible Auto Subscribe
835
+ *
836
+ * Weight: 150
837
+ *
838
+ * @summary Set Flexible Auto Subscribe(USER_DATA)
839
+ * @param {string} productId
840
+ * @param {boolean} autoSubscribe true or false
841
+ * @param {number} [recvWindow]
842
+ *
843
+ * @throws {RequiredError}
844
+ */
845
+ setFlexibleAutoSubscribe: async (productId, autoSubscribe, recvWindow) => {
846
+ assertParamExists("setFlexibleAutoSubscribe", "productId", productId);
847
+ assertParamExists("setFlexibleAutoSubscribe", "autoSubscribe", autoSubscribe);
848
+ const localVarQueryParameter = {};
849
+ if (productId !== void 0 && productId !== null) {
850
+ localVarQueryParameter["productId"] = productId;
802
851
  }
803
852
  if (autoSubscribe !== void 0 && autoSubscribe !== null) {
804
853
  localVarQueryParameter["autoSubscribe"] = autoSubscribe;
805
854
  }
806
- if (sourceAccount !== void 0 && sourceAccount !== null) {
807
- localVarQueryParameter["sourceAccount"] = sourceAccount;
808
- }
809
- if (redeemTo !== void 0 && redeemTo !== null) {
810
- localVarQueryParameter["redeemTo"] = redeemTo;
811
- }
812
855
  if (recvWindow !== void 0 && recvWindow !== null) {
813
856
  localVarQueryParameter["recvWindow"] = recvWindow;
814
857
  }
815
858
  let _timeUnit;
816
859
  if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
817
860
  return {
818
- endpoint: "/sapi/v1/simple-earn/locked/subscribe",
861
+ endpoint: "/sapi/v1/simple-earn/flexible/setAutoSubscribe",
819
862
  method: "POST",
820
863
  params: localVarQueryParameter,
821
864
  timeUnit: _timeUnit
822
865
  };
823
- }
824
- };
825
- };
826
- var EarnApi = class {
827
- constructor(configuration) {
828
- this.configuration = configuration;
829
- this.localVarAxiosParamCreator = EarnApiAxiosParamCreator(configuration);
866
+ },
867
+ /**
868
+ * Set locked auto subscribe
869
+ *
870
+ * Weight: 150
871
+ *
872
+ * @summary Set Locked Auto Subscribe(USER_DATA)
873
+ * @param {string} positionId
874
+ * @param {boolean} autoSubscribe true or false
875
+ * @param {number} [recvWindow]
876
+ *
877
+ * @throws {RequiredError}
878
+ */
879
+ setLockedAutoSubscribe: async (positionId, autoSubscribe, recvWindow) => {
880
+ assertParamExists("setLockedAutoSubscribe", "positionId", positionId);
881
+ assertParamExists("setLockedAutoSubscribe", "autoSubscribe", autoSubscribe);
882
+ const localVarQueryParameter = {};
883
+ if (positionId !== void 0 && positionId !== null) {
884
+ localVarQueryParameter["positionId"] = positionId;
885
+ }
886
+ if (autoSubscribe !== void 0 && autoSubscribe !== null) {
887
+ localVarQueryParameter["autoSubscribe"] = autoSubscribe;
888
+ }
889
+ if (recvWindow !== void 0 && recvWindow !== null) {
890
+ localVarQueryParameter["recvWindow"] = recvWindow;
891
+ }
892
+ let _timeUnit;
893
+ if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
894
+ return {
895
+ endpoint: "/sapi/v1/simple-earn/locked/setAutoSubscribe",
896
+ method: "POST",
897
+ params: localVarQueryParameter,
898
+ timeUnit: _timeUnit
899
+ };
900
+ },
901
+ /**
902
+ * Set redeem option for Locked product
903
+ *
904
+ * Weight: 50
905
+ *
906
+ * @summary Set Locked Product Redeem Option(USER_DATA)
907
+ * @param {string} positionId
908
+ * @param {string} redeemTo `SPOT`,'FLEXIBLE'
909
+ * @param {number} [recvWindow]
910
+ *
911
+ * @throws {RequiredError}
912
+ */
913
+ setLockedProductRedeemOption: async (positionId, redeemTo, recvWindow) => {
914
+ assertParamExists("setLockedProductRedeemOption", "positionId", positionId);
915
+ assertParamExists("setLockedProductRedeemOption", "redeemTo", redeemTo);
916
+ const localVarQueryParameter = {};
917
+ if (positionId !== void 0 && positionId !== null) {
918
+ localVarQueryParameter["positionId"] = positionId;
919
+ }
920
+ if (redeemTo !== void 0 && redeemTo !== null) {
921
+ localVarQueryParameter["redeemTo"] = redeemTo;
922
+ }
923
+ if (recvWindow !== void 0 && recvWindow !== null) {
924
+ localVarQueryParameter["recvWindow"] = recvWindow;
925
+ }
926
+ let _timeUnit;
927
+ if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
928
+ return {
929
+ endpoint: "/sapi/v1/simple-earn/locked/setRedeemOption",
930
+ method: "POST",
931
+ params: localVarQueryParameter,
932
+ timeUnit: _timeUnit
933
+ };
934
+ },
935
+ /**
936
+ * Simple Account query
937
+ *
938
+ * Weight: 150
939
+ *
940
+ * @summary Simple Account(USER_DATA)
941
+ * @param {number} [recvWindow]
942
+ *
943
+ * @throws {RequiredError}
944
+ */
945
+ simpleAccount: async (recvWindow) => {
946
+ const localVarQueryParameter = {};
947
+ if (recvWindow !== void 0 && recvWindow !== null) {
948
+ localVarQueryParameter["recvWindow"] = recvWindow;
949
+ }
950
+ let _timeUnit;
951
+ if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
952
+ return {
953
+ endpoint: "/sapi/v1/simple-earn/account",
954
+ method: "GET",
955
+ params: localVarQueryParameter,
956
+ timeUnit: _timeUnit
957
+ };
958
+ },
959
+ /**
960
+ * Subscribe Flexible Product
961
+ *
962
+ * You need to open `Enable Spot & Margin Trading` permission for the API Key which requests this endpoint.
963
+ *
964
+ * Weight: 1
965
+ *
966
+ * @summary Subscribe Flexible Product(TRADE)
967
+ * @param {string} productId
968
+ * @param {number} amount Amount
969
+ * @param {boolean} [autoSubscribe] true or false, default true.
970
+ * @param {string} [sourceAccount] `SPOT`,`FUND`,`ALL`, default `SPOT`
971
+ * @param {number} [recvWindow]
972
+ *
973
+ * @throws {RequiredError}
974
+ */
975
+ subscribeFlexibleProduct: async (productId, amount, autoSubscribe, sourceAccount, recvWindow) => {
976
+ assertParamExists("subscribeFlexibleProduct", "productId", productId);
977
+ assertParamExists("subscribeFlexibleProduct", "amount", amount);
978
+ const localVarQueryParameter = {};
979
+ if (productId !== void 0 && productId !== null) {
980
+ localVarQueryParameter["productId"] = productId;
981
+ }
982
+ if (amount !== void 0 && amount !== null) {
983
+ localVarQueryParameter["amount"] = amount;
984
+ }
985
+ if (autoSubscribe !== void 0 && autoSubscribe !== null) {
986
+ localVarQueryParameter["autoSubscribe"] = autoSubscribe;
987
+ }
988
+ if (sourceAccount !== void 0 && sourceAccount !== null) {
989
+ localVarQueryParameter["sourceAccount"] = sourceAccount;
990
+ }
991
+ if (recvWindow !== void 0 && recvWindow !== null) {
992
+ localVarQueryParameter["recvWindow"] = recvWindow;
993
+ }
994
+ let _timeUnit;
995
+ if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
996
+ return {
997
+ endpoint: "/sapi/v1/simple-earn/flexible/subscribe",
998
+ method: "POST",
999
+ params: localVarQueryParameter,
1000
+ timeUnit: _timeUnit
1001
+ };
1002
+ },
1003
+ /**
1004
+ * Subscribe Locked Product
1005
+ *
1006
+ * You need to open `Enable Spot & Margin Trading` permission for the API Key which requests this endpoint.
1007
+ *
1008
+ * Weight: 1
1009
+ *
1010
+ * @summary Subscribe Locked Product(TRADE)
1011
+ * @param {string} projectId
1012
+ * @param {number} amount Amount
1013
+ * @param {boolean} [autoSubscribe] true or false, default true.
1014
+ * @param {string} [sourceAccount] `SPOT`,`FUND`,`ALL`, default `SPOT`
1015
+ * @param {string} [redeemTo] `SPOT`,`FLEXIBLE`, default `FLEXIBLE`
1016
+ * @param {number} [recvWindow]
1017
+ *
1018
+ * @throws {RequiredError}
1019
+ */
1020
+ subscribeLockedProduct: async (projectId, amount, autoSubscribe, sourceAccount, redeemTo, recvWindow) => {
1021
+ assertParamExists("subscribeLockedProduct", "projectId", projectId);
1022
+ assertParamExists("subscribeLockedProduct", "amount", amount);
1023
+ const localVarQueryParameter = {};
1024
+ if (projectId !== void 0 && projectId !== null) {
1025
+ localVarQueryParameter["projectId"] = projectId;
1026
+ }
1027
+ if (amount !== void 0 && amount !== null) {
1028
+ localVarQueryParameter["amount"] = amount;
1029
+ }
1030
+ if (autoSubscribe !== void 0 && autoSubscribe !== null) {
1031
+ localVarQueryParameter["autoSubscribe"] = autoSubscribe;
1032
+ }
1033
+ if (sourceAccount !== void 0 && sourceAccount !== null) {
1034
+ localVarQueryParameter["sourceAccount"] = sourceAccount;
1035
+ }
1036
+ if (redeemTo !== void 0 && redeemTo !== null) {
1037
+ localVarQueryParameter["redeemTo"] = redeemTo;
1038
+ }
1039
+ if (recvWindow !== void 0 && recvWindow !== null) {
1040
+ localVarQueryParameter["recvWindow"] = recvWindow;
1041
+ }
1042
+ let _timeUnit;
1043
+ if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
1044
+ return {
1045
+ endpoint: "/sapi/v1/simple-earn/locked/subscribe",
1046
+ method: "POST",
1047
+ params: localVarQueryParameter,
1048
+ timeUnit: _timeUnit
1049
+ };
1050
+ }
1051
+ };
1052
+ };
1053
+ var FlexibleLockedApi = class {
1054
+ constructor(configuration) {
1055
+ this.configuration = configuration;
1056
+ this.localVarAxiosParamCreator = FlexibleLockedApiAxiosParamCreator(configuration);
1057
+ }
1058
+ /**
1059
+ * Get Collateral Record
1060
+ *
1061
+ * The time between `startTime` and `endTime` cannot be longer than 30 days.
1062
+ * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.
1063
+ * If `startTime` is sent but `endTime` is not sent, the next 30 days' data beginning from `startTime` will be returned.
1064
+ * If `endTime` is sent but `startTime` is not sent, the 30 days' data before `endTime` will be returned.
1065
+ *
1066
+ * Weight: 1
1067
+ *
1068
+ * @summary Get Collateral Record(USER_DATA)
1069
+ * @param {GetCollateralRecordRequest} requestParameters Request parameters.
1070
+ * @returns {Promise<RestApiResponse<GetCollateralRecordResponse>>}
1071
+ * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1072
+ * @memberof FlexibleLockedApi
1073
+ * @see {@link https://developers.binance.com/docs/simple_earn/flexible-locked/history/Get-Collateral-Record Binance API Documentation}
1074
+ */
1075
+ async getCollateralRecord(requestParameters = {}) {
1076
+ const localVarAxiosArgs = await this.localVarAxiosParamCreator.getCollateralRecord(
1077
+ requestParameters?.productId,
1078
+ requestParameters?.startTime,
1079
+ requestParameters?.endTime,
1080
+ requestParameters?.current,
1081
+ requestParameters?.size,
1082
+ requestParameters?.recvWindow
1083
+ );
1084
+ return sendRequest(
1085
+ this.configuration,
1086
+ localVarAxiosArgs.endpoint,
1087
+ localVarAxiosArgs.method,
1088
+ localVarAxiosArgs.params,
1089
+ localVarAxiosArgs?.timeUnit,
1090
+ { isSigned: true }
1091
+ );
1092
+ }
1093
+ /**
1094
+ * Get Flexible Personal Left Quota
1095
+ *
1096
+ * Weight: 150
1097
+ *
1098
+ * @summary Get Flexible Personal Left Quota(USER_DATA)
1099
+ * @param {GetFlexiblePersonalLeftQuotaRequest} requestParameters Request parameters.
1100
+ * @returns {Promise<RestApiResponse<GetFlexiblePersonalLeftQuotaResponse>>}
1101
+ * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1102
+ * @memberof FlexibleLockedApi
1103
+ * @see {@link https://developers.binance.com/docs/simple_earn/flexible-locked/account/Get-Flexible-Personal-Left-Quota Binance API Documentation}
1104
+ */
1105
+ async getFlexiblePersonalLeftQuota(requestParameters) {
1106
+ const localVarAxiosArgs = await this.localVarAxiosParamCreator.getFlexiblePersonalLeftQuota(
1107
+ requestParameters?.productId,
1108
+ requestParameters?.recvWindow
1109
+ );
1110
+ return sendRequest(
1111
+ this.configuration,
1112
+ localVarAxiosArgs.endpoint,
1113
+ localVarAxiosArgs.method,
1114
+ localVarAxiosArgs.params,
1115
+ localVarAxiosArgs?.timeUnit,
1116
+ { isSigned: true }
1117
+ );
1118
+ }
1119
+ /**
1120
+ * Get Flexible Product Position
1121
+ *
1122
+ * Weight: 150
1123
+ *
1124
+ * @summary Get Flexible Product Position(USER_DATA)
1125
+ * @param {GetFlexibleProductPositionRequest} requestParameters Request parameters.
1126
+ * @returns {Promise<RestApiResponse<GetFlexibleProductPositionResponse>>}
1127
+ * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1128
+ * @memberof FlexibleLockedApi
1129
+ * @see {@link https://developers.binance.com/docs/simple_earn/flexible-locked/account/Get-Flexible-Product-Position Binance API Documentation}
1130
+ */
1131
+ async getFlexibleProductPosition(requestParameters = {}) {
1132
+ const localVarAxiosArgs = await this.localVarAxiosParamCreator.getFlexibleProductPosition(
1133
+ requestParameters?.asset,
1134
+ requestParameters?.productId,
1135
+ requestParameters?.current,
1136
+ requestParameters?.size,
1137
+ requestParameters?.recvWindow
1138
+ );
1139
+ return sendRequest(
1140
+ this.configuration,
1141
+ localVarAxiosArgs.endpoint,
1142
+ localVarAxiosArgs.method,
1143
+ localVarAxiosArgs.params,
1144
+ localVarAxiosArgs?.timeUnit,
1145
+ { isSigned: true }
1146
+ );
1147
+ }
1148
+ /**
1149
+ * Get Flexible Redemption Record
1150
+ *
1151
+ * The time between `startTime` and `endTime` cannot be longer than 3 months.
1152
+ * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.
1153
+ * If `startTime` is sent but `endTime` is not sent, the next 30 days' data beginning from `startTime` will be returned.
1154
+ * If `endTime` is sent but `startTime` is not sent, the 30 days' data before `endTime` will be returned.
1155
+ *
1156
+ * Weight: 150
1157
+ *
1158
+ * @summary Get Flexible Redemption Record(USER_DATA)
1159
+ * @param {GetFlexibleRedemptionRecordRequest} requestParameters Request parameters.
1160
+ * @returns {Promise<RestApiResponse<GetFlexibleRedemptionRecordResponse>>}
1161
+ * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1162
+ * @memberof FlexibleLockedApi
1163
+ * @see {@link https://developers.binance.com/docs/simple_earn/flexible-locked/history/Get-Flexible-Redemption-Record Binance API Documentation}
1164
+ */
1165
+ async getFlexibleRedemptionRecord(requestParameters = {}) {
1166
+ const localVarAxiosArgs = await this.localVarAxiosParamCreator.getFlexibleRedemptionRecord(
1167
+ requestParameters?.productId,
1168
+ requestParameters?.redeemId,
1169
+ requestParameters?.asset,
1170
+ requestParameters?.startTime,
1171
+ requestParameters?.endTime,
1172
+ requestParameters?.current,
1173
+ requestParameters?.size,
1174
+ requestParameters?.recvWindow
1175
+ );
1176
+ return sendRequest(
1177
+ this.configuration,
1178
+ localVarAxiosArgs.endpoint,
1179
+ localVarAxiosArgs.method,
1180
+ localVarAxiosArgs.params,
1181
+ localVarAxiosArgs?.timeUnit,
1182
+ { isSigned: true }
1183
+ );
1184
+ }
1185
+ /**
1186
+ * Get Flexible Rewards History
1187
+ *
1188
+ * The time between `startTime` and `endTime` cannot be longer than 3 months.
1189
+ * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.
1190
+ * If `startTime` is sent but `endTime` is not sent, the next 30 days' data beginning from `startTime` will be returned.
1191
+ * If `endTime` is sent but `startTime` is not sent, the 30 days' data before `endTime` will be returned.
1192
+ *
1193
+ * Weight: 150
1194
+ *
1195
+ * @summary Get Flexible Rewards History(USER_DATA)
1196
+ * @param {GetFlexibleRewardsHistoryRequest} requestParameters Request parameters.
1197
+ * @returns {Promise<RestApiResponse<GetFlexibleRewardsHistoryResponse>>}
1198
+ * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1199
+ * @memberof FlexibleLockedApi
1200
+ * @see {@link https://developers.binance.com/docs/simple_earn/flexible-locked/history/Get-Flexible-Rewards-History Binance API Documentation}
1201
+ */
1202
+ async getFlexibleRewardsHistory(requestParameters) {
1203
+ const localVarAxiosArgs = await this.localVarAxiosParamCreator.getFlexibleRewardsHistory(
1204
+ requestParameters?.type,
1205
+ requestParameters?.productId,
1206
+ requestParameters?.asset,
1207
+ requestParameters?.startTime,
1208
+ requestParameters?.endTime,
1209
+ requestParameters?.current,
1210
+ requestParameters?.size,
1211
+ requestParameters?.recvWindow
1212
+ );
1213
+ return sendRequest(
1214
+ this.configuration,
1215
+ localVarAxiosArgs.endpoint,
1216
+ localVarAxiosArgs.method,
1217
+ localVarAxiosArgs.params,
1218
+ localVarAxiosArgs?.timeUnit,
1219
+ { isSigned: true }
1220
+ );
1221
+ }
1222
+ /**
1223
+ * Get Flexible Subscription Preview
1224
+ *
1225
+ * Weight: 150
1226
+ *
1227
+ * @summary Get Flexible Subscription Preview(USER_DATA)
1228
+ * @param {GetFlexibleSubscriptionPreviewRequest} requestParameters Request parameters.
1229
+ * @returns {Promise<RestApiResponse<GetFlexibleSubscriptionPreviewResponse>>}
1230
+ * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1231
+ * @memberof FlexibleLockedApi
1232
+ * @see {@link https://developers.binance.com/docs/simple_earn/flexible-locked/earn/Get-Flexible-Subscription-Preview Binance API Documentation}
1233
+ */
1234
+ async getFlexibleSubscriptionPreview(requestParameters) {
1235
+ const localVarAxiosArgs = await this.localVarAxiosParamCreator.getFlexibleSubscriptionPreview(
1236
+ requestParameters?.productId,
1237
+ requestParameters?.amount,
1238
+ requestParameters?.recvWindow
1239
+ );
1240
+ return sendRequest(
1241
+ this.configuration,
1242
+ localVarAxiosArgs.endpoint,
1243
+ localVarAxiosArgs.method,
1244
+ localVarAxiosArgs.params,
1245
+ localVarAxiosArgs?.timeUnit,
1246
+ { isSigned: true }
1247
+ );
1248
+ }
1249
+ /**
1250
+ * Get Flexible Subscription Record
1251
+ *
1252
+ * The time between `startTime` and `endTime` cannot be longer than 3 months.
1253
+ * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.
1254
+ * If `startTime` is sent but `endTime` is not sent, the next 30 days' data beginning from `startTime` will be returned.
1255
+ * If `endTime` is sent but `startTime` is not sent, the 30 days' data before `endTime` will be returned.
1256
+ *
1257
+ * Weight: 150
1258
+ *
1259
+ * @summary Get Flexible Subscription Record(USER_DATA)
1260
+ * @param {GetFlexibleSubscriptionRecordRequest} requestParameters Request parameters.
1261
+ * @returns {Promise<RestApiResponse<GetFlexibleSubscriptionRecordResponse>>}
1262
+ * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1263
+ * @memberof FlexibleLockedApi
1264
+ * @see {@link https://developers.binance.com/docs/simple_earn/flexible-locked/history/Get-Flexible-Subscription-Record Binance API Documentation}
1265
+ */
1266
+ async getFlexibleSubscriptionRecord(requestParameters = {}) {
1267
+ const localVarAxiosArgs = await this.localVarAxiosParamCreator.getFlexibleSubscriptionRecord(
1268
+ requestParameters?.productId,
1269
+ requestParameters?.purchaseId,
1270
+ requestParameters?.asset,
1271
+ requestParameters?.startTime,
1272
+ requestParameters?.endTime,
1273
+ requestParameters?.current,
1274
+ requestParameters?.size,
1275
+ requestParameters?.recvWindow
1276
+ );
1277
+ return sendRequest(
1278
+ this.configuration,
1279
+ localVarAxiosArgs.endpoint,
1280
+ localVarAxiosArgs.method,
1281
+ localVarAxiosArgs.params,
1282
+ localVarAxiosArgs?.timeUnit,
1283
+ { isSigned: true }
1284
+ );
1285
+ }
1286
+ /**
1287
+ * Get Locked Personal Left Quota
1288
+ *
1289
+ * Weight: 150
1290
+ *
1291
+ * @summary Get Locked Personal Left Quota(USER_DATA)
1292
+ * @param {GetLockedPersonalLeftQuotaRequest} requestParameters Request parameters.
1293
+ * @returns {Promise<RestApiResponse<GetLockedPersonalLeftQuotaResponse>>}
1294
+ * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1295
+ * @memberof FlexibleLockedApi
1296
+ * @see {@link https://developers.binance.com/docs/simple_earn/flexible-locked/account/Get-Locked-Personal-Left-Quota Binance API Documentation}
1297
+ */
1298
+ async getLockedPersonalLeftQuota(requestParameters) {
1299
+ const localVarAxiosArgs = await this.localVarAxiosParamCreator.getLockedPersonalLeftQuota(
1300
+ requestParameters?.projectId,
1301
+ requestParameters?.recvWindow
1302
+ );
1303
+ return sendRequest(
1304
+ this.configuration,
1305
+ localVarAxiosArgs.endpoint,
1306
+ localVarAxiosArgs.method,
1307
+ localVarAxiosArgs.params,
1308
+ localVarAxiosArgs?.timeUnit,
1309
+ { isSigned: true }
1310
+ );
1311
+ }
1312
+ /**
1313
+ * Get Locked Product Position
1314
+ *
1315
+ * Weight: 150
1316
+ *
1317
+ * @summary Get Locked Product Position
1318
+ * @param {GetLockedProductPositionRequest} requestParameters Request parameters.
1319
+ * @returns {Promise<RestApiResponse<GetLockedProductPositionResponse>>}
1320
+ * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1321
+ * @memberof FlexibleLockedApi
1322
+ * @see {@link https://developers.binance.com/docs/simple_earn/flexible-locked/account/Get-Locked-Product-Position Binance API Documentation}
1323
+ */
1324
+ async getLockedProductPosition(requestParameters = {}) {
1325
+ const localVarAxiosArgs = await this.localVarAxiosParamCreator.getLockedProductPosition(
1326
+ requestParameters?.asset,
1327
+ requestParameters?.positionId,
1328
+ requestParameters?.projectId,
1329
+ requestParameters?.current,
1330
+ requestParameters?.size,
1331
+ requestParameters?.recvWindow
1332
+ );
1333
+ return sendRequest(
1334
+ this.configuration,
1335
+ localVarAxiosArgs.endpoint,
1336
+ localVarAxiosArgs.method,
1337
+ localVarAxiosArgs.params,
1338
+ localVarAxiosArgs?.timeUnit,
1339
+ { isSigned: true }
1340
+ );
1341
+ }
1342
+ /**
1343
+ * Get Locked Redemption Record
1344
+ *
1345
+ * The time between `startTime` and `endTime` cannot be longer than 3 months.
1346
+ * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.
1347
+ * If `startTime` is sent but `endTime` is not sent, the next 30 days' data beginning from `startTime` will be returned.
1348
+ * If `endTime` is sent but `startTime` is not sent, the 30 days' data before `endTime` will be returned.
1349
+ *
1350
+ * Weight: 150
1351
+ *
1352
+ * @summary Get Locked Redemption Record(USER_DATA)
1353
+ * @param {GetLockedRedemptionRecordRequest} requestParameters Request parameters.
1354
+ * @returns {Promise<RestApiResponse<GetLockedRedemptionRecordResponse>>}
1355
+ * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1356
+ * @memberof FlexibleLockedApi
1357
+ * @see {@link https://developers.binance.com/docs/simple_earn/flexible-locked/history/Get-Locked-Redemption-Record Binance API Documentation}
1358
+ */
1359
+ async getLockedRedemptionRecord(requestParameters = {}) {
1360
+ const localVarAxiosArgs = await this.localVarAxiosParamCreator.getLockedRedemptionRecord(
1361
+ requestParameters?.positionId,
1362
+ requestParameters?.redeemId,
1363
+ requestParameters?.asset,
1364
+ requestParameters?.startTime,
1365
+ requestParameters?.endTime,
1366
+ requestParameters?.current,
1367
+ requestParameters?.size,
1368
+ requestParameters?.recvWindow
1369
+ );
1370
+ return sendRequest(
1371
+ this.configuration,
1372
+ localVarAxiosArgs.endpoint,
1373
+ localVarAxiosArgs.method,
1374
+ localVarAxiosArgs.params,
1375
+ localVarAxiosArgs?.timeUnit,
1376
+ { isSigned: true }
1377
+ );
1378
+ }
1379
+ /**
1380
+ * Get Locked Rewards History
1381
+ *
1382
+ * The time between `startTime` and `endTime` cannot be longer than 3 months.
1383
+ * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.
1384
+ * If `startTime` is sent but `endTime` is not sent, the next 30 days' data beginning from `startTime` will be returned.
1385
+ * If `endTime` is sent but `startTime` is not sent, the 30 days' data before `endTime` will be returned.
1386
+ *
1387
+ * Weight: 150
1388
+ *
1389
+ * @summary Get Locked Rewards History(USER_DATA)
1390
+ * @param {GetLockedRewardsHistoryRequest} requestParameters Request parameters.
1391
+ * @returns {Promise<RestApiResponse<GetLockedRewardsHistoryResponse>>}
1392
+ * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1393
+ * @memberof FlexibleLockedApi
1394
+ * @see {@link https://developers.binance.com/docs/simple_earn/flexible-locked/history/Get-Locked-Rewards-History Binance API Documentation}
1395
+ */
1396
+ async getLockedRewardsHistory(requestParameters = {}) {
1397
+ const localVarAxiosArgs = await this.localVarAxiosParamCreator.getLockedRewardsHistory(
1398
+ requestParameters?.positionId,
1399
+ requestParameters?.asset,
1400
+ requestParameters?.startTime,
1401
+ requestParameters?.endTime,
1402
+ requestParameters?.current,
1403
+ requestParameters?.size,
1404
+ requestParameters?.recvWindow
1405
+ );
1406
+ return sendRequest(
1407
+ this.configuration,
1408
+ localVarAxiosArgs.endpoint,
1409
+ localVarAxiosArgs.method,
1410
+ localVarAxiosArgs.params,
1411
+ localVarAxiosArgs?.timeUnit,
1412
+ { isSigned: true }
1413
+ );
1414
+ }
1415
+ /**
1416
+ * Get Locked Subscription Preview
1417
+ *
1418
+ * Weight: 150
1419
+ *
1420
+ * @summary Get Locked Subscription Preview(USER_DATA)
1421
+ * @param {GetLockedSubscriptionPreviewRequest} requestParameters Request parameters.
1422
+ * @returns {Promise<RestApiResponse<GetLockedSubscriptionPreviewResponse>>}
1423
+ * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1424
+ * @memberof FlexibleLockedApi
1425
+ * @see {@link https://developers.binance.com/docs/simple_earn/flexible-locked/earn/Get-Locked-Subscription-Preview Binance API Documentation}
1426
+ */
1427
+ async getLockedSubscriptionPreview(requestParameters) {
1428
+ const localVarAxiosArgs = await this.localVarAxiosParamCreator.getLockedSubscriptionPreview(
1429
+ requestParameters?.projectId,
1430
+ requestParameters?.amount,
1431
+ requestParameters?.autoSubscribe,
1432
+ requestParameters?.recvWindow
1433
+ );
1434
+ return sendRequest(
1435
+ this.configuration,
1436
+ localVarAxiosArgs.endpoint,
1437
+ localVarAxiosArgs.method,
1438
+ localVarAxiosArgs.params,
1439
+ localVarAxiosArgs?.timeUnit,
1440
+ { isSigned: true }
1441
+ );
1442
+ }
1443
+ /**
1444
+ * Get Locked Subscription Record
1445
+ *
1446
+ * The time between `startTime` and `endTime` cannot be longer than 3 months.
1447
+ * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.
1448
+ * If `startTime` is sent but `endTime` is not sent, the next 30 days' data beginning from `startTime` will be returned.
1449
+ * If `endTime` is sent but `startTime` is not sent, the 30 days' data before `endTime` will be returned.
1450
+ *
1451
+ * Weight: 150
1452
+ *
1453
+ * @summary Get Locked Subscription Record(USER_DATA)
1454
+ * @param {GetLockedSubscriptionRecordRequest} requestParameters Request parameters.
1455
+ * @returns {Promise<RestApiResponse<GetLockedSubscriptionRecordResponse>>}
1456
+ * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1457
+ * @memberof FlexibleLockedApi
1458
+ * @see {@link https://developers.binance.com/docs/simple_earn/flexible-locked/history/Get-Locked-Subscription-Record Binance API Documentation}
1459
+ */
1460
+ async getLockedSubscriptionRecord(requestParameters = {}) {
1461
+ const localVarAxiosArgs = await this.localVarAxiosParamCreator.getLockedSubscriptionRecord(
1462
+ requestParameters?.purchaseId,
1463
+ requestParameters?.asset,
1464
+ requestParameters?.startTime,
1465
+ requestParameters?.endTime,
1466
+ requestParameters?.current,
1467
+ requestParameters?.size,
1468
+ requestParameters?.recvWindow
1469
+ );
1470
+ return sendRequest(
1471
+ this.configuration,
1472
+ localVarAxiosArgs.endpoint,
1473
+ localVarAxiosArgs.method,
1474
+ localVarAxiosArgs.params,
1475
+ localVarAxiosArgs?.timeUnit,
1476
+ { isSigned: true }
1477
+ );
830
1478
  }
831
1479
  /**
832
- * Get Flexible Subscription Preview
1480
+ * Get Rate History
1481
+ *
1482
+ * The time between startTime and endTime cannot be longer than 1 year.
1483
+ * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.
1484
+ * If `startTime` is sent but `endTime` is not sent, the next 30 days' data beginning from `startTime` will be returned.
1485
+ * If `endTime` is sent but `startTime` is not sent, the 30 days' data before `endTime` will be returned.
833
1486
  *
834
1487
  * Weight: 150
835
1488
  *
836
- * @summary Get Flexible Subscription Preview(USER_DATA)
837
- * @param {GetFlexibleSubscriptionPreviewRequest} requestParameters Request parameters.
838
- * @returns {Promise<RestApiResponse<GetFlexibleSubscriptionPreviewResponse>>}
1489
+ * @summary Get Rate History(USER_DATA)
1490
+ * @param {GetRateHistoryRequest} requestParameters Request parameters.
1491
+ * @returns {Promise<RestApiResponse<GetRateHistoryResponse>>}
839
1492
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
840
- * @memberof EarnApi
841
- * @see {@link https://developers.binance.com/docs/simple_earn/earn/Get-Flexible-Subscription-Preview Binance API Documentation}
1493
+ * @memberof FlexibleLockedApi
1494
+ * @see {@link https://developers.binance.com/docs/simple_earn/flexible-locked/history/Get-Rate-History Binance API Documentation}
842
1495
  */
843
- async getFlexibleSubscriptionPreview(requestParameters) {
844
- const localVarAxiosArgs = await this.localVarAxiosParamCreator.getFlexibleSubscriptionPreview(
1496
+ async getRateHistory(requestParameters) {
1497
+ const localVarAxiosArgs = await this.localVarAxiosParamCreator.getRateHistory(
845
1498
  requestParameters?.productId,
846
- requestParameters?.amount,
1499
+ requestParameters?.aprPeriod,
1500
+ requestParameters?.startTime,
1501
+ requestParameters?.endTime,
1502
+ requestParameters?.current,
1503
+ requestParameters?.size,
847
1504
  requestParameters?.recvWindow
848
1505
  );
849
- return sendRequest2(
1506
+ return sendRequest(
850
1507
  this.configuration,
851
1508
  localVarAxiosArgs.endpoint,
852
1509
  localVarAxiosArgs.method,
@@ -856,25 +1513,55 @@ var EarnApi = class {
856
1513
  );
857
1514
  }
858
1515
  /**
859
- * Get Locked Subscription Preview
1516
+ * Get available Simple Earn flexible product list
860
1517
  *
861
1518
  * Weight: 150
862
1519
  *
863
- * @summary Get Locked Subscription Preview(USER_DATA)
864
- * @param {GetLockedSubscriptionPreviewRequest} requestParameters Request parameters.
865
- * @returns {Promise<RestApiResponse<GetLockedSubscriptionPreviewResponse>>}
1520
+ * @summary Get Simple Earn Flexible Product List(USER_DATA)
1521
+ * @param {GetSimpleEarnFlexibleProductListRequest} requestParameters Request parameters.
1522
+ * @returns {Promise<RestApiResponse<GetSimpleEarnFlexibleProductListResponse>>}
866
1523
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
867
- * @memberof EarnApi
868
- * @see {@link https://developers.binance.com/docs/simple_earn/earn/Get-Locked-Subscription-Preview Binance API Documentation}
1524
+ * @memberof FlexibleLockedApi
1525
+ * @see {@link https://developers.binance.com/docs/simple_earn/flexible-locked/account/Get-Simple-Earn-Flexible-Product-List Binance API Documentation}
869
1526
  */
870
- async getLockedSubscriptionPreview(requestParameters) {
871
- const localVarAxiosArgs = await this.localVarAxiosParamCreator.getLockedSubscriptionPreview(
872
- requestParameters?.projectId,
873
- requestParameters?.amount,
874
- requestParameters?.autoSubscribe,
1527
+ async getSimpleEarnFlexibleProductList(requestParameters = {}) {
1528
+ const localVarAxiosArgs = await this.localVarAxiosParamCreator.getSimpleEarnFlexibleProductList(
1529
+ requestParameters?.asset,
1530
+ requestParameters?.current,
1531
+ requestParameters?.size,
875
1532
  requestParameters?.recvWindow
876
1533
  );
877
- return sendRequest2(
1534
+ return sendRequest(
1535
+ this.configuration,
1536
+ localVarAxiosArgs.endpoint,
1537
+ localVarAxiosArgs.method,
1538
+ localVarAxiosArgs.params,
1539
+ localVarAxiosArgs?.timeUnit,
1540
+ { isSigned: true }
1541
+ );
1542
+ }
1543
+ /**
1544
+ * Get Simple Earn Locked Product List
1545
+ *
1546
+ * Get available Simple Earn locked product list
1547
+ *
1548
+ * Weight: 150
1549
+ *
1550
+ * @summary Get Simple Earn Locked Product List(USER_DATA)
1551
+ * @param {GetSimpleEarnLockedProductListRequest} requestParameters Request parameters.
1552
+ * @returns {Promise<RestApiResponse<GetSimpleEarnLockedProductListResponse>>}
1553
+ * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1554
+ * @memberof FlexibleLockedApi
1555
+ * @see {@link https://developers.binance.com/docs/simple_earn/flexible-locked/account/Get-Simple-Earn-Locked-Product-List Binance API Documentation}
1556
+ */
1557
+ async getSimpleEarnLockedProductList(requestParameters = {}) {
1558
+ const localVarAxiosArgs = await this.localVarAxiosParamCreator.getSimpleEarnLockedProductList(
1559
+ requestParameters?.asset,
1560
+ requestParameters?.current,
1561
+ requestParameters?.size,
1562
+ requestParameters?.recvWindow
1563
+ );
1564
+ return sendRequest(
878
1565
  this.configuration,
879
1566
  localVarAxiosArgs.endpoint,
880
1567
  localVarAxiosArgs.method,
@@ -894,8 +1581,8 @@ var EarnApi = class {
894
1581
  * @param {RedeemFlexibleProductRequest} requestParameters Request parameters.
895
1582
  * @returns {Promise<RestApiResponse<RedeemFlexibleProductResponse>>}
896
1583
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
897
- * @memberof EarnApi
898
- * @see {@link https://developers.binance.com/docs/simple_earn/earn/Redeem-Flexible-Product Binance API Documentation}
1584
+ * @memberof FlexibleLockedApi
1585
+ * @see {@link https://developers.binance.com/docs/simple_earn/flexible-locked/earn/Redeem-Flexible-Product Binance API Documentation}
899
1586
  */
900
1587
  async redeemFlexibleProduct(requestParameters) {
901
1588
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.redeemFlexibleProduct(
@@ -905,7 +1592,7 @@ var EarnApi = class {
905
1592
  requestParameters?.destAccount,
906
1593
  requestParameters?.recvWindow
907
1594
  );
908
- return sendRequest2(
1595
+ return sendRequest(
909
1596
  this.configuration,
910
1597
  localVarAxiosArgs.endpoint,
911
1598
  localVarAxiosArgs.method,
@@ -925,15 +1612,15 @@ var EarnApi = class {
925
1612
  * @param {RedeemLockedProductRequest} requestParameters Request parameters.
926
1613
  * @returns {Promise<RestApiResponse<RedeemLockedProductResponse>>}
927
1614
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
928
- * @memberof EarnApi
929
- * @see {@link https://developers.binance.com/docs/simple_earn/earn/Redeem-Locked-Product Binance API Documentation}
1615
+ * @memberof FlexibleLockedApi
1616
+ * @see {@link https://developers.binance.com/docs/simple_earn/flexible-locked/earn/Redeem-Locked-Product Binance API Documentation}
930
1617
  */
931
1618
  async redeemLockedProduct(requestParameters) {
932
1619
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.redeemLockedProduct(
933
1620
  requestParameters?.positionId,
934
1621
  requestParameters?.recvWindow
935
1622
  );
936
- return sendRequest2(
1623
+ return sendRequest(
937
1624
  this.configuration,
938
1625
  localVarAxiosArgs.endpoint,
939
1626
  localVarAxiosArgs.method,
@@ -951,8 +1638,8 @@ var EarnApi = class {
951
1638
  * @param {SetFlexibleAutoSubscribeRequest} requestParameters Request parameters.
952
1639
  * @returns {Promise<RestApiResponse<SetFlexibleAutoSubscribeResponse>>}
953
1640
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
954
- * @memberof EarnApi
955
- * @see {@link https://developers.binance.com/docs/simple_earn/earn/Set-Flexible-Auto-Subscribe Binance API Documentation}
1641
+ * @memberof FlexibleLockedApi
1642
+ * @see {@link https://developers.binance.com/docs/simple_earn/flexible-locked/earn/Set-Flexible-Auto-Subscribe Binance API Documentation}
956
1643
  */
957
1644
  async setFlexibleAutoSubscribe(requestParameters) {
958
1645
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.setFlexibleAutoSubscribe(
@@ -960,7 +1647,7 @@ var EarnApi = class {
960
1647
  requestParameters?.autoSubscribe,
961
1648
  requestParameters?.recvWindow
962
1649
  );
963
- return sendRequest2(
1650
+ return sendRequest(
964
1651
  this.configuration,
965
1652
  localVarAxiosArgs.endpoint,
966
1653
  localVarAxiosArgs.method,
@@ -978,8 +1665,8 @@ var EarnApi = class {
978
1665
  * @param {SetLockedAutoSubscribeRequest} requestParameters Request parameters.
979
1666
  * @returns {Promise<RestApiResponse<SetLockedAutoSubscribeResponse>>}
980
1667
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
981
- * @memberof EarnApi
982
- * @see {@link https://developers.binance.com/docs/simple_earn/earn/Set-Locked-Auto-Subscribe Binance API Documentation}
1668
+ * @memberof FlexibleLockedApi
1669
+ * @see {@link https://developers.binance.com/docs/simple_earn/flexible-locked/earn/Set-Locked-Auto-Subscribe Binance API Documentation}
983
1670
  */
984
1671
  async setLockedAutoSubscribe(requestParameters) {
985
1672
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.setLockedAutoSubscribe(
@@ -987,7 +1674,7 @@ var EarnApi = class {
987
1674
  requestParameters?.autoSubscribe,
988
1675
  requestParameters?.recvWindow
989
1676
  );
990
- return sendRequest2(
1677
+ return sendRequest(
991
1678
  this.configuration,
992
1679
  localVarAxiosArgs.endpoint,
993
1680
  localVarAxiosArgs.method,
@@ -1005,8 +1692,8 @@ var EarnApi = class {
1005
1692
  * @param {SetLockedProductRedeemOptionRequest} requestParameters Request parameters.
1006
1693
  * @returns {Promise<RestApiResponse<SetLockedProductRedeemOptionResponse>>}
1007
1694
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1008
- * @memberof EarnApi
1009
- * @see {@link https://developers.binance.com/docs/simple_earn/earn/Set-Locked-Redeem-Option Binance API Documentation}
1695
+ * @memberof FlexibleLockedApi
1696
+ * @see {@link https://developers.binance.com/docs/simple_earn/flexible-locked/earn/Set-Locked-Redeem-Option Binance API Documentation}
1010
1697
  */
1011
1698
  async setLockedProductRedeemOption(requestParameters) {
1012
1699
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.setLockedProductRedeemOption(
@@ -1014,7 +1701,32 @@ var EarnApi = class {
1014
1701
  requestParameters?.redeemTo,
1015
1702
  requestParameters?.recvWindow
1016
1703
  );
1017
- return sendRequest2(
1704
+ return sendRequest(
1705
+ this.configuration,
1706
+ localVarAxiosArgs.endpoint,
1707
+ localVarAxiosArgs.method,
1708
+ localVarAxiosArgs.params,
1709
+ localVarAxiosArgs?.timeUnit,
1710
+ { isSigned: true }
1711
+ );
1712
+ }
1713
+ /**
1714
+ * Simple Account query
1715
+ *
1716
+ * Weight: 150
1717
+ *
1718
+ * @summary Simple Account(USER_DATA)
1719
+ * @param {SimpleAccountRequest} requestParameters Request parameters.
1720
+ * @returns {Promise<RestApiResponse<SimpleAccountResponse>>}
1721
+ * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1722
+ * @memberof FlexibleLockedApi
1723
+ * @see {@link https://developers.binance.com/docs/simple_earn/flexible-locked/account/Simple-Account Binance API Documentation}
1724
+ */
1725
+ async simpleAccount(requestParameters = {}) {
1726
+ const localVarAxiosArgs = await this.localVarAxiosParamCreator.simpleAccount(
1727
+ requestParameters?.recvWindow
1728
+ );
1729
+ return sendRequest(
1018
1730
  this.configuration,
1019
1731
  localVarAxiosArgs.endpoint,
1020
1732
  localVarAxiosArgs.method,
@@ -1034,8 +1746,8 @@ var EarnApi = class {
1034
1746
  * @param {SubscribeFlexibleProductRequest} requestParameters Request parameters.
1035
1747
  * @returns {Promise<RestApiResponse<SubscribeFlexibleProductResponse>>}
1036
1748
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1037
- * @memberof EarnApi
1038
- * @see {@link https://developers.binance.com/docs/simple_earn/earn/Subscribe-Flexible-Product Binance API Documentation}
1749
+ * @memberof FlexibleLockedApi
1750
+ * @see {@link https://developers.binance.com/docs/simple_earn/flexible-locked/earn/Subscribe-Flexible-Product Binance API Documentation}
1039
1751
  */
1040
1752
  async subscribeFlexibleProduct(requestParameters) {
1041
1753
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.subscribeFlexibleProduct(
@@ -1045,7 +1757,7 @@ var EarnApi = class {
1045
1757
  requestParameters?.sourceAccount,
1046
1758
  requestParameters?.recvWindow
1047
1759
  );
1048
- return sendRequest2(
1760
+ return sendRequest(
1049
1761
  this.configuration,
1050
1762
  localVarAxiosArgs.endpoint,
1051
1763
  localVarAxiosArgs.method,
@@ -1065,8 +1777,8 @@ var EarnApi = class {
1065
1777
  * @param {SubscribeLockedProductRequest} requestParameters Request parameters.
1066
1778
  * @returns {Promise<RestApiResponse<SubscribeLockedProductResponse>>}
1067
1779
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1068
- * @memberof EarnApi
1069
- * @see {@link https://developers.binance.com/docs/simple_earn/earn/Subscribe-Locked-Product Binance API Documentation}
1780
+ * @memberof FlexibleLockedApi
1781
+ * @see {@link https://developers.binance.com/docs/simple_earn/flexible-locked/earn/Subscribe-Locked-Product Binance API Documentation}
1070
1782
  */
1071
1783
  async subscribeLockedProduct(requestParameters) {
1072
1784
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.subscribeLockedProduct(
@@ -1077,7 +1789,7 @@ var EarnApi = class {
1077
1789
  requestParameters?.redeemTo,
1078
1790
  requestParameters?.recvWindow
1079
1791
  );
1080
- return sendRequest2(
1792
+ return sendRequest(
1081
1793
  this.configuration,
1082
1794
  localVarAxiosArgs.endpoint,
1083
1795
  localVarAxiosArgs.method,
@@ -1088,191 +1800,72 @@ var EarnApi = class {
1088
1800
  }
1089
1801
  };
1090
1802
 
1091
- // src/rest-api/modules/history-api.ts
1803
+ // src/rest-api/modules/rwusd-api.ts
1092
1804
  import {
1093
- assertParamExists as assertParamExists3,
1094
- sendRequest as sendRequest3
1805
+ assertParamExists as assertParamExists2,
1806
+ sendRequest as sendRequest2
1095
1807
  } from "@binance/common";
1096
- var HistoryApiAxiosParamCreator = function(configuration) {
1808
+ var RwusdApiAxiosParamCreator = function(configuration) {
1097
1809
  return {
1098
1810
  /**
1099
- * Get Collateral Record
1100
- *
1101
- * The time between `startTime` and `endTime` cannot be longer than 30 days.
1102
- * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.
1103
- * If `startTime` is sent but `endTime` is not sent, the next 30 days' data beginning from `startTime` will be returned.
1104
- * If `endTime` is sent but `startTime` is not sent, the 30 days' data before `endTime` will be returned.
1105
- *
1106
- * Weight: 1
1107
- *
1108
- * @summary Get Collateral Record(USER_DATA)
1109
- * @param {string} [productId]
1110
- * @param {number} [startTime]
1111
- * @param {number} [endTime]
1112
- * @param {number} [current] Currently querying the page. Start from 1. Default:1
1113
- * @param {number} [size] Default:10, Max:100
1114
- * @param {number} [recvWindow]
1115
- *
1116
- * @throws {RequiredError}
1117
- */
1118
- getCollateralRecord: async (productId, startTime, endTime, current, size, recvWindow) => {
1119
- const localVarQueryParameter = {};
1120
- if (productId !== void 0 && productId !== null) {
1121
- localVarQueryParameter["productId"] = productId;
1122
- }
1123
- if (startTime !== void 0 && startTime !== null) {
1124
- localVarQueryParameter["startTime"] = startTime;
1125
- }
1126
- if (endTime !== void 0 && endTime !== null) {
1127
- localVarQueryParameter["endTime"] = endTime;
1128
- }
1129
- if (current !== void 0 && current !== null) {
1130
- localVarQueryParameter["current"] = current;
1131
- }
1132
- if (size !== void 0 && size !== null) {
1133
- localVarQueryParameter["size"] = size;
1134
- }
1135
- if (recvWindow !== void 0 && recvWindow !== null) {
1136
- localVarQueryParameter["recvWindow"] = recvWindow;
1137
- }
1138
- let _timeUnit;
1139
- if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
1140
- return {
1141
- endpoint: "/sapi/v1/simple-earn/flexible/history/collateralRecord",
1142
- method: "GET",
1143
- params: localVarQueryParameter,
1144
- timeUnit: _timeUnit
1145
- };
1146
- },
1147
- /**
1148
- * Get Flexible Redemption Record
1149
- *
1150
- * The time between `startTime` and `endTime` cannot be longer than 3 months.
1151
- * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.
1152
- * If `startTime` is sent but `endTime` is not sent, the next 30 days' data beginning from `startTime` will be returned.
1153
- * If `endTime` is sent but `startTime` is not sent, the 30 days' data before `endTime` will be returned.
1811
+ * Get RWUSD account information.
1154
1812
  *
1155
1813
  * Weight: 150
1156
1814
  *
1157
- * @summary Get Flexible Redemption Record(USER_DATA)
1158
- * @param {string} [productId]
1159
- * @param {string} [redeemId]
1160
- * @param {string} [asset]
1161
- * @param {number} [startTime]
1162
- * @param {number} [endTime]
1163
- * @param {number} [current] Currently querying the page. Start from 1. Default:1
1164
- * @param {number} [size] Default:10, Max:100
1815
+ * @summary Get RWUSD Account (USER_DATA)
1165
1816
  * @param {number} [recvWindow]
1166
1817
  *
1167
1818
  * @throws {RequiredError}
1168
1819
  */
1169
- getFlexibleRedemptionRecord: async (productId, redeemId, asset, startTime, endTime, current, size, recvWindow) => {
1820
+ getRwusdAccount: async (recvWindow) => {
1170
1821
  const localVarQueryParameter = {};
1171
- if (productId !== void 0 && productId !== null) {
1172
- localVarQueryParameter["productId"] = productId;
1173
- }
1174
- if (redeemId !== void 0 && redeemId !== null) {
1175
- localVarQueryParameter["redeemId"] = redeemId;
1176
- }
1177
- if (asset !== void 0 && asset !== null) {
1178
- localVarQueryParameter["asset"] = asset;
1179
- }
1180
- if (startTime !== void 0 && startTime !== null) {
1181
- localVarQueryParameter["startTime"] = startTime;
1182
- }
1183
- if (endTime !== void 0 && endTime !== null) {
1184
- localVarQueryParameter["endTime"] = endTime;
1185
- }
1186
- if (current !== void 0 && current !== null) {
1187
- localVarQueryParameter["current"] = current;
1188
- }
1189
- if (size !== void 0 && size !== null) {
1190
- localVarQueryParameter["size"] = size;
1191
- }
1192
1822
  if (recvWindow !== void 0 && recvWindow !== null) {
1193
1823
  localVarQueryParameter["recvWindow"] = recvWindow;
1194
1824
  }
1195
1825
  let _timeUnit;
1196
1826
  if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
1197
1827
  return {
1198
- endpoint: "/sapi/v1/simple-earn/flexible/history/redemptionRecord",
1828
+ endpoint: "/sapi/v1/rwusd/account",
1199
1829
  method: "GET",
1200
1830
  params: localVarQueryParameter,
1201
1831
  timeUnit: _timeUnit
1202
1832
  };
1203
1833
  },
1204
1834
  /**
1205
- * Get Flexible Rewards History
1206
- *
1207
- * The time between `startTime` and `endTime` cannot be longer than 3 months.
1208
- * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.
1209
- * If `startTime` is sent but `endTime` is not sent, the next 30 days' data beginning from `startTime` will be returned.
1210
- * If `endTime` is sent but `startTime` is not sent, the 30 days' data before `endTime` will be returned.
1835
+ * Get RWUSD quota details including subscription quota, fast redemption quota, and standard redemption quota.
1211
1836
  *
1212
1837
  * Weight: 150
1213
1838
  *
1214
- * @summary Get Flexible Rewards History(USER_DATA)
1215
- * @param {string} type `BONUS` - Bonus tiered APR, `REALTIME` Real-time APR, `REWARDS` Historical rewards,`ALL`(set to default)
1216
- * @param {string} [productId]
1217
- * @param {string} [asset]
1218
- * @param {number} [startTime]
1219
- * @param {number} [endTime]
1220
- * @param {number} [current] Currently querying the page. Start from 1. Default:1
1221
- * @param {number} [size] Default:10, Max:100
1839
+ * @summary Get RWUSD Quota Details (USER_DATA)
1222
1840
  * @param {number} [recvWindow]
1223
1841
  *
1224
1842
  * @throws {RequiredError}
1225
1843
  */
1226
- getFlexibleRewardsHistory: async (type, productId, asset, startTime, endTime, current, size, recvWindow) => {
1227
- assertParamExists3("getFlexibleRewardsHistory", "type", type);
1844
+ getRwusdQuotaDetails: async (recvWindow) => {
1228
1845
  const localVarQueryParameter = {};
1229
- if (productId !== void 0 && productId !== null) {
1230
- localVarQueryParameter["productId"] = productId;
1231
- }
1232
- if (asset !== void 0 && asset !== null) {
1233
- localVarQueryParameter["asset"] = asset;
1234
- }
1235
- if (startTime !== void 0 && startTime !== null) {
1236
- localVarQueryParameter["startTime"] = startTime;
1237
- }
1238
- if (endTime !== void 0 && endTime !== null) {
1239
- localVarQueryParameter["endTime"] = endTime;
1240
- }
1241
- if (type !== void 0 && type !== null) {
1242
- localVarQueryParameter["type"] = type;
1243
- }
1244
- if (current !== void 0 && current !== null) {
1245
- localVarQueryParameter["current"] = current;
1246
- }
1247
- if (size !== void 0 && size !== null) {
1248
- localVarQueryParameter["size"] = size;
1249
- }
1250
1846
  if (recvWindow !== void 0 && recvWindow !== null) {
1251
1847
  localVarQueryParameter["recvWindow"] = recvWindow;
1252
1848
  }
1253
1849
  let _timeUnit;
1254
1850
  if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
1255
1851
  return {
1256
- endpoint: "/sapi/v1/simple-earn/flexible/history/rewardsRecord",
1852
+ endpoint: "/sapi/v1/rwusd/quota",
1257
1853
  method: "GET",
1258
1854
  params: localVarQueryParameter,
1259
1855
  timeUnit: _timeUnit
1260
1856
  };
1261
1857
  },
1262
1858
  /**
1263
- * Get Flexible Subscription Record
1859
+ * Get RWUSD rate history sorted by descending order.
1264
1860
  *
1265
- * The time between `startTime` and `endTime` cannot be longer than 3 months.
1861
+ * The time between `startTime` and `endTime` cannot be longer than 6 months.
1266
1862
  * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.
1267
- * If `startTime` is sent but `endTime` is not sent, the next 30 days' data beginning from `startTime` will be returned.
1268
- * If `endTime` is sent but `startTime` is not sent, the 30 days' data before `endTime` will be returned.
1863
+ * If `startTime` is sent but `endTime` is not sent, `endTime` will default to current time, and results from `startTime` onward will be returned.
1864
+ * 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.
1269
1865
  *
1270
1866
  * Weight: 150
1271
1867
  *
1272
- * @summary Get Flexible Subscription Record(USER_DATA)
1273
- * @param {string} [productId]
1274
- * @param {string} [purchaseId]
1275
- * @param {string} [asset]
1868
+ * @summary Get RWUSD Rate History (USER_DATA)
1276
1869
  * @param {number} [startTime]
1277
1870
  * @param {number} [endTime]
1278
1871
  * @param {number} [current] Currently querying the page. Start from 1. Default:1
@@ -1281,17 +1874,8 @@ var HistoryApiAxiosParamCreator = function(configuration) {
1281
1874
  *
1282
1875
  * @throws {RequiredError}
1283
1876
  */
1284
- getFlexibleSubscriptionRecord: async (productId, purchaseId, asset, startTime, endTime, current, size, recvWindow) => {
1877
+ getRwusdRateHistory: async (startTime, endTime, current, size, recvWindow) => {
1285
1878
  const localVarQueryParameter = {};
1286
- if (productId !== void 0 && productId !== null) {
1287
- localVarQueryParameter["productId"] = productId;
1288
- }
1289
- if (purchaseId !== void 0 && purchaseId !== null) {
1290
- localVarQueryParameter["purchaseId"] = purchaseId;
1291
- }
1292
- if (asset !== void 0 && asset !== null) {
1293
- localVarQueryParameter["asset"] = asset;
1294
- }
1295
1879
  if (startTime !== void 0 && startTime !== null) {
1296
1880
  localVarQueryParameter["startTime"] = startTime;
1297
1881
  }
@@ -1310,26 +1894,23 @@ var HistoryApiAxiosParamCreator = function(configuration) {
1310
1894
  let _timeUnit;
1311
1895
  if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
1312
1896
  return {
1313
- endpoint: "/sapi/v1/simple-earn/flexible/history/subscriptionRecord",
1897
+ endpoint: "/sapi/v1/rwusd/history/rateHistory",
1314
1898
  method: "GET",
1315
1899
  params: localVarQueryParameter,
1316
1900
  timeUnit: _timeUnit
1317
1901
  };
1318
1902
  },
1319
1903
  /**
1320
- * Get Locked Redemption Record
1904
+ * Get RWUSD redemption history.
1321
1905
  *
1322
- * The time between `startTime` and `endTime` cannot be longer than 3 months.
1906
+ * The time between `startTime` and `endTime` cannot be longer than 6 months.
1323
1907
  * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.
1324
- * If `startTime` is sent but `endTime` is not sent, the next 30 days' data beginning from `startTime` will be returned.
1325
- * If `endTime` is sent but `startTime` is not sent, the 30 days' data before `endTime` will be returned.
1908
+ * If `startTime` is sent but `endTime` is not sent, `endTime` will default to current time, and results from `startTime` onward will be returned.
1909
+ * 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.
1326
1910
  *
1327
1911
  * Weight: 150
1328
1912
  *
1329
- * @summary Get Locked Redemption Record(USER_DATA)
1330
- * @param {number} [positionId]
1331
- * @param {string} [redeemId]
1332
- * @param {string} [asset]
1913
+ * @summary Get RWUSD Redemption History (USER_DATA)
1333
1914
  * @param {number} [startTime]
1334
1915
  * @param {number} [endTime]
1335
1916
  * @param {number} [current] Currently querying the page. Start from 1. Default:1
@@ -1338,17 +1919,8 @@ var HistoryApiAxiosParamCreator = function(configuration) {
1338
1919
  *
1339
1920
  * @throws {RequiredError}
1340
1921
  */
1341
- getLockedRedemptionRecord: async (positionId, redeemId, asset, startTime, endTime, current, size, recvWindow) => {
1922
+ getRwusdRedemptionHistory: async (startTime, endTime, current, size, recvWindow) => {
1342
1923
  const localVarQueryParameter = {};
1343
- if (positionId !== void 0 && positionId !== null) {
1344
- localVarQueryParameter["positionId"] = positionId;
1345
- }
1346
- if (redeemId !== void 0 && redeemId !== null) {
1347
- localVarQueryParameter["redeemId"] = redeemId;
1348
- }
1349
- if (asset !== void 0 && asset !== null) {
1350
- localVarQueryParameter["asset"] = asset;
1351
- }
1352
1924
  if (startTime !== void 0 && startTime !== null) {
1353
1925
  localVarQueryParameter["startTime"] = startTime;
1354
1926
  }
@@ -1367,25 +1939,23 @@ var HistoryApiAxiosParamCreator = function(configuration) {
1367
1939
  let _timeUnit;
1368
1940
  if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
1369
1941
  return {
1370
- endpoint: "/sapi/v1/simple-earn/locked/history/redemptionRecord",
1942
+ endpoint: "/sapi/v1/rwusd/history/redemptionHistory",
1371
1943
  method: "GET",
1372
1944
  params: localVarQueryParameter,
1373
1945
  timeUnit: _timeUnit
1374
1946
  };
1375
1947
  },
1376
1948
  /**
1377
- * Get Locked Rewards History
1949
+ * Get RWUSD rewards history.
1378
1950
  *
1379
- * The time between `startTime` and `endTime` cannot be longer than 3 months.
1951
+ * The time between `startTime` and `endTime` cannot be longer than 6 months.
1380
1952
  * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.
1381
- * If `startTime` is sent but `endTime` is not sent, the next 30 days' data beginning from `startTime` will be returned.
1382
- * If `endTime` is sent but `startTime` is not sent, the 30 days' data before `endTime` will be returned.
1953
+ * If `startTime` is sent but `endTime` is not sent, `endTime` will default to current time, and results from `startTime` onward will be returned.
1954
+ * 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.
1383
1955
  *
1384
1956
  * Weight: 150
1385
1957
  *
1386
- * @summary Get Locked Rewards History(USER_DATA)
1387
- * @param {number} [positionId]
1388
- * @param {string} [asset]
1958
+ * @summary Get RWUSD Rewards History (USER_DATA)
1389
1959
  * @param {number} [startTime]
1390
1960
  * @param {number} [endTime]
1391
1961
  * @param {number} [current] Currently querying the page. Start from 1. Default:1
@@ -1394,14 +1964,8 @@ var HistoryApiAxiosParamCreator = function(configuration) {
1394
1964
  *
1395
1965
  * @throws {RequiredError}
1396
1966
  */
1397
- getLockedRewardsHistory: async (positionId, asset, startTime, endTime, current, size, recvWindow) => {
1967
+ getRwusdRewardsHistory: async (startTime, endTime, current, size, recvWindow) => {
1398
1968
  const localVarQueryParameter = {};
1399
- if (positionId !== void 0 && positionId !== null) {
1400
- localVarQueryParameter["positionId"] = positionId;
1401
- }
1402
- if (asset !== void 0 && asset !== null) {
1403
- localVarQueryParameter["asset"] = asset;
1404
- }
1405
1969
  if (startTime !== void 0 && startTime !== null) {
1406
1970
  localVarQueryParameter["startTime"] = startTime;
1407
1971
  }
@@ -1420,25 +1984,24 @@ var HistoryApiAxiosParamCreator = function(configuration) {
1420
1984
  let _timeUnit;
1421
1985
  if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
1422
1986
  return {
1423
- endpoint: "/sapi/v1/simple-earn/locked/history/rewardsRecord",
1987
+ endpoint: "/sapi/v1/rwusd/history/rewardsHistory",
1424
1988
  method: "GET",
1425
1989
  params: localVarQueryParameter,
1426
1990
  timeUnit: _timeUnit
1427
1991
  };
1428
1992
  },
1429
1993
  /**
1430
- * Get Locked Subscription Record
1994
+ * Get RWUSD subscription history
1431
1995
  *
1432
- * The time between `startTime` and `endTime` cannot be longer than 3 months.
1996
+ * The time between `startTime` and `endTime` cannot be longer than 6 months.
1433
1997
  * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.
1434
- * If `startTime` is sent but `endTime` is not sent, the next 30 days' data beginning from `startTime` will be returned.
1435
- * If `endTime` is sent but `startTime` is not sent, the 30 days' data before `endTime` will be returned.
1998
+ * If `startTime` is sent but `endTime` is not sent, `endTime` will default to current time, and results from `startTime` onward will be returned.
1999
+ * 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.
1436
2000
  *
1437
2001
  * Weight: 150
1438
2002
  *
1439
- * @summary Get Locked Subscription Record(USER_DATA)
1440
- * @param {string} [purchaseId]
1441
- * @param {string} [asset]
2003
+ * @summary Get RWUSD subscription history(USER_DATA)
2004
+ * @param {string} [asset] USDC or USDT
1442
2005
  * @param {number} [startTime]
1443
2006
  * @param {number} [endTime]
1444
2007
  * @param {number} [current] Currently querying the page. Start from 1. Default:1
@@ -1447,11 +2010,8 @@ var HistoryApiAxiosParamCreator = function(configuration) {
1447
2010
  *
1448
2011
  * @throws {RequiredError}
1449
2012
  */
1450
- getLockedSubscriptionRecord: async (purchaseId, asset, startTime, endTime, current, size, recvWindow) => {
2013
+ getRwusdSubscriptionHistory: async (asset, startTime, endTime, current, size, recvWindow) => {
1451
2014
  const localVarQueryParameter = {};
1452
- if (purchaseId !== void 0 && purchaseId !== null) {
1453
- localVarQueryParameter["purchaseId"] = purchaseId;
1454
- }
1455
2015
  if (asset !== void 0 && asset !== null) {
1456
2016
  localVarQueryParameter["asset"] = asset;
1457
2017
  }
@@ -1473,53 +2033,71 @@ var HistoryApiAxiosParamCreator = function(configuration) {
1473
2033
  let _timeUnit;
1474
2034
  if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
1475
2035
  return {
1476
- endpoint: "/sapi/v1/simple-earn/locked/history/subscriptionRecord",
2036
+ endpoint: "/sapi/v1/rwusd/history/subscriptionHistory",
1477
2037
  method: "GET",
1478
2038
  params: localVarQueryParameter,
1479
2039
  timeUnit: _timeUnit
1480
2040
  };
1481
2041
  },
1482
2042
  /**
1483
- * Get Rate History
2043
+ * Redeem RWUSD to USDC
1484
2044
  *
1485
- * The time between startTime and endTime cannot be longer than 1 year.
1486
- * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.
1487
- * If `startTime` is sent but `endTime` is not sent, the next 30 days' data beginning from `startTime` will be returned.
1488
- * If `endTime` is sent but `startTime` is not sent, the 30 days' data before `endTime` will be returned.
2045
+ * You need to open Enable Spot & Margin Trading permission for the API Key which requests this endpoint.
1489
2046
  *
1490
2047
  * Weight: 150
1491
2048
  *
1492
- * @summary Get Rate History(USER_DATA)
1493
- * @param {string} productId
1494
- * @param {string} [aprPeriod] "DAY","YEAR",default"DAY"
1495
- * @param {number} [startTime]
1496
- * @param {number} [endTime]
1497
- * @param {number} [current] Currently querying the page. Start from 1. Default:1
1498
- * @param {number} [size] Default:10, Max:100
2049
+ * @summary Redeem RWUSD(TRADE)
2050
+ * @param {number} amount Amount
2051
+ * @param {string} type FAST or STANDARD, defaults to STANDARD
1499
2052
  * @param {number} [recvWindow]
1500
2053
  *
1501
2054
  * @throws {RequiredError}
1502
2055
  */
1503
- getRateHistory: async (productId, aprPeriod, startTime, endTime, current, size, recvWindow) => {
1504
- assertParamExists3("getRateHistory", "productId", productId);
2056
+ redeemRwusd: async (amount, type, recvWindow) => {
2057
+ assertParamExists2("redeemRwusd", "amount", amount);
2058
+ assertParamExists2("redeemRwusd", "type", type);
1505
2059
  const localVarQueryParameter = {};
1506
- if (productId !== void 0 && productId !== null) {
1507
- localVarQueryParameter["productId"] = productId;
1508
- }
1509
- if (aprPeriod !== void 0 && aprPeriod !== null) {
1510
- localVarQueryParameter["aprPeriod"] = aprPeriod;
2060
+ if (amount !== void 0 && amount !== null) {
2061
+ localVarQueryParameter["amount"] = amount;
1511
2062
  }
1512
- if (startTime !== void 0 && startTime !== null) {
1513
- localVarQueryParameter["startTime"] = startTime;
2063
+ if (type !== void 0 && type !== null) {
2064
+ localVarQueryParameter["type"] = type;
1514
2065
  }
1515
- if (endTime !== void 0 && endTime !== null) {
1516
- localVarQueryParameter["endTime"] = endTime;
2066
+ if (recvWindow !== void 0 && recvWindow !== null) {
2067
+ localVarQueryParameter["recvWindow"] = recvWindow;
1517
2068
  }
1518
- if (current !== void 0 && current !== null) {
1519
- localVarQueryParameter["current"] = current;
2069
+ let _timeUnit;
2070
+ if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
2071
+ return {
2072
+ endpoint: "/sapi/v1/rwusd/redeem",
2073
+ method: "POST",
2074
+ params: localVarQueryParameter,
2075
+ timeUnit: _timeUnit
2076
+ };
2077
+ },
2078
+ /**
2079
+ * Subscribe RWUSD
2080
+ *
2081
+ * You need to open Enable Spot & Margin Trading permission for the API Key which requests this endpoint.
2082
+ *
2083
+ * Weight: 150
2084
+ *
2085
+ * @summary Subscribe RWUSD(TRADE)
2086
+ * @param {string} asset USDT or USDC (whichever is eligible)
2087
+ * @param {number} amount Amount
2088
+ * @param {number} [recvWindow]
2089
+ *
2090
+ * @throws {RequiredError}
2091
+ */
2092
+ subscribeRwusd: async (asset, amount, recvWindow) => {
2093
+ assertParamExists2("subscribeRwusd", "asset", asset);
2094
+ assertParamExists2("subscribeRwusd", "amount", amount);
2095
+ const localVarQueryParameter = {};
2096
+ if (asset !== void 0 && asset !== null) {
2097
+ localVarQueryParameter["asset"] = asset;
1520
2098
  }
1521
- if (size !== void 0 && size !== null) {
1522
- localVarQueryParameter["size"] = size;
2099
+ if (amount !== void 0 && amount !== null) {
2100
+ localVarQueryParameter["amount"] = amount;
1523
2101
  }
1524
2102
  if (recvWindow !== void 0 && recvWindow !== null) {
1525
2103
  localVarQueryParameter["recvWindow"] = recvWindow;
@@ -1527,46 +2105,36 @@ var HistoryApiAxiosParamCreator = function(configuration) {
1527
2105
  let _timeUnit;
1528
2106
  if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
1529
2107
  return {
1530
- endpoint: "/sapi/v1/simple-earn/flexible/history/rateHistory",
1531
- method: "GET",
2108
+ endpoint: "/sapi/v1/rwusd/subscribe",
2109
+ method: "POST",
1532
2110
  params: localVarQueryParameter,
1533
2111
  timeUnit: _timeUnit
1534
2112
  };
1535
2113
  }
1536
2114
  };
1537
2115
  };
1538
- var HistoryApi = class {
2116
+ var RwusdApi = class {
1539
2117
  constructor(configuration) {
1540
2118
  this.configuration = configuration;
1541
- this.localVarAxiosParamCreator = HistoryApiAxiosParamCreator(configuration);
2119
+ this.localVarAxiosParamCreator = RwusdApiAxiosParamCreator(configuration);
1542
2120
  }
1543
2121
  /**
1544
- * Get Collateral Record
1545
- *
1546
- * The time between `startTime` and `endTime` cannot be longer than 30 days.
1547
- * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.
1548
- * If `startTime` is sent but `endTime` is not sent, the next 30 days' data beginning from `startTime` will be returned.
1549
- * If `endTime` is sent but `startTime` is not sent, the 30 days' data before `endTime` will be returned.
2122
+ * Get RWUSD account information.
1550
2123
  *
1551
- * Weight: 1
2124
+ * Weight: 150
1552
2125
  *
1553
- * @summary Get Collateral Record(USER_DATA)
1554
- * @param {GetCollateralRecordRequest} requestParameters Request parameters.
1555
- * @returns {Promise<RestApiResponse<GetCollateralRecordResponse>>}
2126
+ * @summary Get RWUSD Account (USER_DATA)
2127
+ * @param {GetRwusdAccountRequest} requestParameters Request parameters.
2128
+ * @returns {Promise<RestApiResponse<GetRwusdAccountResponse>>}
1556
2129
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1557
- * @memberof HistoryApi
1558
- * @see {@link https://developers.binance.com/docs/simple_earn/history/Get-Collateral-Record Binance API Documentation}
2130
+ * @memberof RwusdApi
2131
+ * @see {@link https://developers.binance.com/docs/simple_earn/rwusd/account/ Binance API Documentation}
1559
2132
  */
1560
- async getCollateralRecord(requestParameters = {}) {
1561
- const localVarAxiosArgs = await this.localVarAxiosParamCreator.getCollateralRecord(
1562
- requestParameters?.productId,
1563
- requestParameters?.startTime,
1564
- requestParameters?.endTime,
1565
- requestParameters?.current,
1566
- requestParameters?.size,
2133
+ async getRwusdAccount(requestParameters = {}) {
2134
+ const localVarAxiosArgs = await this.localVarAxiosParamCreator.getRwusdAccount(
1567
2135
  requestParameters?.recvWindow
1568
2136
  );
1569
- return sendRequest3(
2137
+ return sendRequest2(
1570
2138
  this.configuration,
1571
2139
  localVarAxiosArgs.endpoint,
1572
2140
  localVarAxiosArgs.method,
@@ -1576,34 +2144,22 @@ var HistoryApi = class {
1576
2144
  );
1577
2145
  }
1578
2146
  /**
1579
- * Get Flexible Redemption Record
1580
- *
1581
- * The time between `startTime` and `endTime` cannot be longer than 3 months.
1582
- * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.
1583
- * If `startTime` is sent but `endTime` is not sent, the next 30 days' data beginning from `startTime` will be returned.
1584
- * If `endTime` is sent but `startTime` is not sent, the 30 days' data before `endTime` will be returned.
2147
+ * Get RWUSD quota details including subscription quota, fast redemption quota, and standard redemption quota.
1585
2148
  *
1586
2149
  * Weight: 150
1587
2150
  *
1588
- * @summary Get Flexible Redemption Record(USER_DATA)
1589
- * @param {GetFlexibleRedemptionRecordRequest} requestParameters Request parameters.
1590
- * @returns {Promise<RestApiResponse<GetFlexibleRedemptionRecordResponse>>}
2151
+ * @summary Get RWUSD Quota Details (USER_DATA)
2152
+ * @param {GetRwusdQuotaDetailsRequest} requestParameters Request parameters.
2153
+ * @returns {Promise<RestApiResponse<GetRwusdQuotaDetailsResponse>>}
1591
2154
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1592
- * @memberof HistoryApi
1593
- * @see {@link https://developers.binance.com/docs/simple_earn/history/Get-Flexible-Redemption-Record Binance API Documentation}
2155
+ * @memberof RwusdApi
2156
+ * @see {@link https://developers.binance.com/docs/simple_earn/rwusd/account/Get-RWUSD-Quota-Details Binance API Documentation}
1594
2157
  */
1595
- async getFlexibleRedemptionRecord(requestParameters = {}) {
1596
- const localVarAxiosArgs = await this.localVarAxiosParamCreator.getFlexibleRedemptionRecord(
1597
- requestParameters?.productId,
1598
- requestParameters?.redeemId,
1599
- requestParameters?.asset,
1600
- requestParameters?.startTime,
1601
- requestParameters?.endTime,
1602
- requestParameters?.current,
1603
- requestParameters?.size,
2158
+ async getRwusdQuotaDetails(requestParameters = {}) {
2159
+ const localVarAxiosArgs = await this.localVarAxiosParamCreator.getRwusdQuotaDetails(
1604
2160
  requestParameters?.recvWindow
1605
2161
  );
1606
- return sendRequest3(
2162
+ return sendRequest2(
1607
2163
  this.configuration,
1608
2164
  localVarAxiosArgs.endpoint,
1609
2165
  localVarAxiosArgs.method,
@@ -1613,34 +2169,31 @@ var HistoryApi = class {
1613
2169
  );
1614
2170
  }
1615
2171
  /**
1616
- * Get Flexible Rewards History
2172
+ * Get RWUSD rate history sorted by descending order.
1617
2173
  *
1618
- * The time between `startTime` and `endTime` cannot be longer than 3 months.
1619
- * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.
1620
- * If `startTime` is sent but `endTime` is not sent, the next 30 days' data beginning from `startTime` will be returned.
1621
- * If `endTime` is sent but `startTime` is not sent, the 30 days' data before `endTime` will be returned.
2174
+ * The time between `startTime` and `endTime` cannot be longer than 6 months.
2175
+ * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.
2176
+ * If `startTime` is sent but `endTime` is not sent, `endTime` will default to current time, and results from `startTime` onward will be returned.
2177
+ * 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.
1622
2178
  *
1623
2179
  * Weight: 150
1624
2180
  *
1625
- * @summary Get Flexible Rewards History(USER_DATA)
1626
- * @param {GetFlexibleRewardsHistoryRequest} requestParameters Request parameters.
1627
- * @returns {Promise<RestApiResponse<GetFlexibleRewardsHistoryResponse>>}
2181
+ * @summary Get RWUSD Rate History (USER_DATA)
2182
+ * @param {GetRwusdRateHistoryRequest} requestParameters Request parameters.
2183
+ * @returns {Promise<RestApiResponse<GetRwusdRateHistoryResponse>>}
1628
2184
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1629
- * @memberof HistoryApi
1630
- * @see {@link https://developers.binance.com/docs/simple_earn/history/Get-Flexible-Rewards-History Binance API Documentation}
2185
+ * @memberof RwusdApi
2186
+ * @see {@link https://developers.binance.com/docs/simple_earn/rwusd/history/Get-RWUSD-Rate-History Binance API Documentation}
1631
2187
  */
1632
- async getFlexibleRewardsHistory(requestParameters) {
1633
- const localVarAxiosArgs = await this.localVarAxiosParamCreator.getFlexibleRewardsHistory(
1634
- requestParameters?.type,
1635
- requestParameters?.productId,
1636
- requestParameters?.asset,
2188
+ async getRwusdRateHistory(requestParameters = {}) {
2189
+ const localVarAxiosArgs = await this.localVarAxiosParamCreator.getRwusdRateHistory(
1637
2190
  requestParameters?.startTime,
1638
2191
  requestParameters?.endTime,
1639
2192
  requestParameters?.current,
1640
2193
  requestParameters?.size,
1641
2194
  requestParameters?.recvWindow
1642
2195
  );
1643
- return sendRequest3(
2196
+ return sendRequest2(
1644
2197
  this.configuration,
1645
2198
  localVarAxiosArgs.endpoint,
1646
2199
  localVarAxiosArgs.method,
@@ -1650,34 +2203,31 @@ var HistoryApi = class {
1650
2203
  );
1651
2204
  }
1652
2205
  /**
1653
- * Get Flexible Subscription Record
2206
+ * Get RWUSD redemption history.
1654
2207
  *
1655
- * The time between `startTime` and `endTime` cannot be longer than 3 months.
2208
+ * The time between `startTime` and `endTime` cannot be longer than 6 months.
1656
2209
  * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.
1657
- * If `startTime` is sent but `endTime` is not sent, the next 30 days' data beginning from `startTime` will be returned.
1658
- * If `endTime` is sent but `startTime` is not sent, the 30 days' data before `endTime` will be returned.
2210
+ * If `startTime` is sent but `endTime` is not sent, `endTime` will default to current time, and results from `startTime` onward will be returned.
2211
+ * 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.
1659
2212
  *
1660
2213
  * Weight: 150
1661
2214
  *
1662
- * @summary Get Flexible Subscription Record(USER_DATA)
1663
- * @param {GetFlexibleSubscriptionRecordRequest} requestParameters Request parameters.
1664
- * @returns {Promise<RestApiResponse<GetFlexibleSubscriptionRecordResponse>>}
2215
+ * @summary Get RWUSD Redemption History (USER_DATA)
2216
+ * @param {GetRwusdRedemptionHistoryRequest} requestParameters Request parameters.
2217
+ * @returns {Promise<RestApiResponse<GetRwusdRedemptionHistoryResponse>>}
1665
2218
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1666
- * @memberof HistoryApi
1667
- * @see {@link https://developers.binance.com/docs/simple_earn/history/Get-Flexible-Subscription-Record Binance API Documentation}
2219
+ * @memberof RwusdApi
2220
+ * @see {@link https://developers.binance.com/docs/simple_earn/rwusd/history/Get-RWUSD-Redemption-History Binance API Documentation}
1668
2221
  */
1669
- async getFlexibleSubscriptionRecord(requestParameters = {}) {
1670
- const localVarAxiosArgs = await this.localVarAxiosParamCreator.getFlexibleSubscriptionRecord(
1671
- requestParameters?.productId,
1672
- requestParameters?.purchaseId,
1673
- requestParameters?.asset,
2222
+ async getRwusdRedemptionHistory(requestParameters = {}) {
2223
+ const localVarAxiosArgs = await this.localVarAxiosParamCreator.getRwusdRedemptionHistory(
1674
2224
  requestParameters?.startTime,
1675
2225
  requestParameters?.endTime,
1676
2226
  requestParameters?.current,
1677
2227
  requestParameters?.size,
1678
2228
  requestParameters?.recvWindow
1679
2229
  );
1680
- return sendRequest3(
2230
+ return sendRequest2(
1681
2231
  this.configuration,
1682
2232
  localVarAxiosArgs.endpoint,
1683
2233
  localVarAxiosArgs.method,
@@ -1687,34 +2237,31 @@ var HistoryApi = class {
1687
2237
  );
1688
2238
  }
1689
2239
  /**
1690
- * Get Locked Redemption Record
2240
+ * Get RWUSD rewards history.
1691
2241
  *
1692
- * The time between `startTime` and `endTime` cannot be longer than 3 months.
2242
+ * The time between `startTime` and `endTime` cannot be longer than 6 months.
1693
2243
  * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.
1694
- * If `startTime` is sent but `endTime` is not sent, the next 30 days' data beginning from `startTime` will be returned.
1695
- * If `endTime` is sent but `startTime` is not sent, the 30 days' data before `endTime` will be returned.
2244
+ * If `startTime` is sent but `endTime` is not sent, `endTime` will default to current time, and results from `startTime` onward will be returned.
2245
+ * 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.
1696
2246
  *
1697
2247
  * Weight: 150
1698
2248
  *
1699
- * @summary Get Locked Redemption Record(USER_DATA)
1700
- * @param {GetLockedRedemptionRecordRequest} requestParameters Request parameters.
1701
- * @returns {Promise<RestApiResponse<GetLockedRedemptionRecordResponse>>}
2249
+ * @summary Get RWUSD Rewards History (USER_DATA)
2250
+ * @param {GetRwusdRewardsHistoryRequest} requestParameters Request parameters.
2251
+ * @returns {Promise<RestApiResponse<GetRwusdRewardsHistoryResponse>>}
1702
2252
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1703
- * @memberof HistoryApi
1704
- * @see {@link https://developers.binance.com/docs/simple_earn/history/Get-Locked-Redemption-Record Binance API Documentation}
2253
+ * @memberof RwusdApi
2254
+ * @see {@link https://developers.binance.com/docs/simple_earn/rwusd/history/Get-RWUSD-Rewards-History Binance API Documentation}
1705
2255
  */
1706
- async getLockedRedemptionRecord(requestParameters = {}) {
1707
- const localVarAxiosArgs = await this.localVarAxiosParamCreator.getLockedRedemptionRecord(
1708
- requestParameters?.positionId,
1709
- requestParameters?.redeemId,
1710
- requestParameters?.asset,
2256
+ async getRwusdRewardsHistory(requestParameters = {}) {
2257
+ const localVarAxiosArgs = await this.localVarAxiosParamCreator.getRwusdRewardsHistory(
1711
2258
  requestParameters?.startTime,
1712
2259
  requestParameters?.endTime,
1713
2260
  requestParameters?.current,
1714
2261
  requestParameters?.size,
1715
2262
  requestParameters?.recvWindow
1716
2263
  );
1717
- return sendRequest3(
2264
+ return sendRequest2(
1718
2265
  this.configuration,
1719
2266
  localVarAxiosArgs.endpoint,
1720
2267
  localVarAxiosArgs.method,
@@ -1724,25 +2271,24 @@ var HistoryApi = class {
1724
2271
  );
1725
2272
  }
1726
2273
  /**
1727
- * Get Locked Rewards History
2274
+ * Get RWUSD subscription history
1728
2275
  *
1729
- * The time between `startTime` and `endTime` cannot be longer than 3 months.
2276
+ * The time between `startTime` and `endTime` cannot be longer than 6 months.
1730
2277
  * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.
1731
- * If `startTime` is sent but `endTime` is not sent, the next 30 days' data beginning from `startTime` will be returned.
1732
- * If `endTime` is sent but `startTime` is not sent, the 30 days' data before `endTime` will be returned.
2278
+ * If `startTime` is sent but `endTime` is not sent, `endTime` will default to current time, and results from `startTime` onward will be returned.
2279
+ * 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.
1733
2280
  *
1734
2281
  * Weight: 150
1735
2282
  *
1736
- * @summary Get Locked Rewards History(USER_DATA)
1737
- * @param {GetLockedRewardsHistoryRequest} requestParameters Request parameters.
1738
- * @returns {Promise<RestApiResponse<GetLockedRewardsHistoryResponse>>}
2283
+ * @summary Get RWUSD subscription history(USER_DATA)
2284
+ * @param {GetRwusdSubscriptionHistoryRequest} requestParameters Request parameters.
2285
+ * @returns {Promise<RestApiResponse<GetRwusdSubscriptionHistoryResponse>>}
1739
2286
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1740
- * @memberof HistoryApi
1741
- * @see {@link https://developers.binance.com/docs/simple_earn/history/Get-Locked-Rewards-History Binance API Documentation}
2287
+ * @memberof RwusdApi
2288
+ * @see {@link https://developers.binance.com/docs/simple_earn/rwusd/history/Get-RWUSD-subscription-history Binance API Documentation}
1742
2289
  */
1743
- async getLockedRewardsHistory(requestParameters = {}) {
1744
- const localVarAxiosArgs = await this.localVarAxiosParamCreator.getLockedRewardsHistory(
1745
- requestParameters?.positionId,
2290
+ async getRwusdSubscriptionHistory(requestParameters = {}) {
2291
+ const localVarAxiosArgs = await this.localVarAxiosParamCreator.getRwusdSubscriptionHistory(
1746
2292
  requestParameters?.asset,
1747
2293
  requestParameters?.startTime,
1748
2294
  requestParameters?.endTime,
@@ -1750,7 +2296,7 @@ var HistoryApi = class {
1750
2296
  requestParameters?.size,
1751
2297
  requestParameters?.recvWindow
1752
2298
  );
1753
- return sendRequest3(
2299
+ return sendRequest2(
1754
2300
  this.configuration,
1755
2301
  localVarAxiosArgs.endpoint,
1756
2302
  localVarAxiosArgs.method,
@@ -1760,33 +2306,26 @@ var HistoryApi = class {
1760
2306
  );
1761
2307
  }
1762
2308
  /**
1763
- * Get Locked Subscription Record
2309
+ * Redeem RWUSD to USDC
1764
2310
  *
1765
- * The time between `startTime` and `endTime` cannot be longer than 3 months.
1766
- * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.
1767
- * If `startTime` is sent but `endTime` is not sent, the next 30 days' data beginning from `startTime` will be returned.
1768
- * If `endTime` is sent but `startTime` is not sent, the 30 days' data before `endTime` will be returned.
2311
+ * You need to open Enable Spot & Margin Trading permission for the API Key which requests this endpoint.
1769
2312
  *
1770
2313
  * Weight: 150
1771
2314
  *
1772
- * @summary Get Locked Subscription Record(USER_DATA)
1773
- * @param {GetLockedSubscriptionRecordRequest} requestParameters Request parameters.
1774
- * @returns {Promise<RestApiResponse<GetLockedSubscriptionRecordResponse>>}
2315
+ * @summary Redeem RWUSD(TRADE)
2316
+ * @param {RedeemRwusdRequest} requestParameters Request parameters.
2317
+ * @returns {Promise<RestApiResponse<RedeemRwusdResponse>>}
1775
2318
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1776
- * @memberof HistoryApi
1777
- * @see {@link https://developers.binance.com/docs/simple_earn/history/Get-Locked-Subscription-Record Binance API Documentation}
2319
+ * @memberof RwusdApi
2320
+ * @see {@link https://developers.binance.com/docs/simple_earn/rwusd/earn/Redeem-RWUSD Binance API Documentation}
1778
2321
  */
1779
- async getLockedSubscriptionRecord(requestParameters = {}) {
1780
- const localVarAxiosArgs = await this.localVarAxiosParamCreator.getLockedSubscriptionRecord(
1781
- requestParameters?.purchaseId,
1782
- requestParameters?.asset,
1783
- requestParameters?.startTime,
1784
- requestParameters?.endTime,
1785
- requestParameters?.current,
1786
- requestParameters?.size,
2322
+ async redeemRwusd(requestParameters) {
2323
+ const localVarAxiosArgs = await this.localVarAxiosParamCreator.redeemRwusd(
2324
+ requestParameters?.amount,
2325
+ requestParameters?.type,
1787
2326
  requestParameters?.recvWindow
1788
2327
  );
1789
- return sendRequest3(
2328
+ return sendRequest2(
1790
2329
  this.configuration,
1791
2330
  localVarAxiosArgs.endpoint,
1792
2331
  localVarAxiosArgs.method,
@@ -1796,33 +2335,26 @@ var HistoryApi = class {
1796
2335
  );
1797
2336
  }
1798
2337
  /**
1799
- * Get Rate History
2338
+ * Subscribe RWUSD
1800
2339
  *
1801
- * The time between startTime and endTime cannot be longer than 1 year.
1802
- * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.
1803
- * If `startTime` is sent but `endTime` is not sent, the next 30 days' data beginning from `startTime` will be returned.
1804
- * If `endTime` is sent but `startTime` is not sent, the 30 days' data before `endTime` will be returned.
2340
+ * You need to open Enable Spot & Margin Trading permission for the API Key which requests this endpoint.
1805
2341
  *
1806
2342
  * Weight: 150
1807
2343
  *
1808
- * @summary Get Rate History(USER_DATA)
1809
- * @param {GetRateHistoryRequest} requestParameters Request parameters.
1810
- * @returns {Promise<RestApiResponse<GetRateHistoryResponse>>}
2344
+ * @summary Subscribe RWUSD(TRADE)
2345
+ * @param {SubscribeRwusdRequest} requestParameters Request parameters.
2346
+ * @returns {Promise<RestApiResponse<SubscribeRwusdResponse>>}
1811
2347
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1812
- * @memberof HistoryApi
1813
- * @see {@link https://developers.binance.com/docs/simple_earn/history/Get-Rate-History Binance API Documentation}
2348
+ * @memberof RwusdApi
2349
+ * @see {@link https://developers.binance.com/docs/simple_earn/rwusd/earn/Subscribe-RWUSD Binance API Documentation}
1814
2350
  */
1815
- async getRateHistory(requestParameters) {
1816
- const localVarAxiosArgs = await this.localVarAxiosParamCreator.getRateHistory(
1817
- requestParameters?.productId,
1818
- requestParameters?.aprPeriod,
1819
- requestParameters?.startTime,
1820
- requestParameters?.endTime,
1821
- requestParameters?.current,
1822
- requestParameters?.size,
2351
+ async subscribeRwusd(requestParameters) {
2352
+ const localVarAxiosArgs = await this.localVarAxiosParamCreator.subscribeRwusd(
2353
+ requestParameters?.asset,
2354
+ requestParameters?.amount,
1823
2355
  requestParameters?.recvWindow
1824
2356
  );
1825
- return sendRequest3(
2357
+ return sendRequest2(
1826
2358
  this.configuration,
1827
2359
  localVarAxiosArgs.endpoint,
1828
2360
  localVarAxiosArgs.method,
@@ -1834,13 +2366,12 @@ var HistoryApi = class {
1834
2366
  };
1835
2367
 
1836
2368
  // src/rest-api/rest-api.ts
1837
- import { sendRequest as sendRequest4 } from "@binance/common";
2369
+ import { sendRequest as sendRequest3 } from "@binance/common";
1838
2370
  var RestAPI = class {
1839
2371
  constructor(configuration) {
1840
2372
  this.configuration = configuration;
1841
- this.accountApi = new AccountApi(configuration);
1842
- this.earnApi = new EarnApi(configuration);
1843
- this.historyApi = new HistoryApi(configuration);
2373
+ this.flexibleLockedApi = new FlexibleLockedApi(configuration);
2374
+ this.rwusdApi = new RwusdApi(configuration);
1844
2375
  }
1845
2376
  /**
1846
2377
  * Generic function to send a request.
@@ -1851,7 +2382,7 @@ var RestAPI = class {
1851
2382
  * @returns A promise resolving to the response data object.
1852
2383
  */
1853
2384
  sendRequest(endpoint, method, params = {}) {
1854
- return sendRequest4(this.configuration, endpoint, method, params, void 0);
2385
+ return sendRequest3(this.configuration, endpoint, method, params, void 0);
1855
2386
  }
1856
2387
  /**
1857
2388
  * Generic function to send a signed request.
@@ -1859,12 +2390,31 @@ var RestAPI = class {
1859
2390
  * @param method - HTTP method to use (GET, POST, DELETE, etc.).
1860
2391
  * @param params - Query parameters for the request.
1861
2392
  *
1862
- * @returns A promise resolving to the response data object.
2393
+ * @returns A promise resolving to the response data object.
2394
+ */
2395
+ sendSignedRequest(endpoint, method, params = {}) {
2396
+ return sendRequest3(this.configuration, endpoint, method, params, void 0, {
2397
+ isSigned: true
2398
+ });
2399
+ }
2400
+ /**
2401
+ * Get Collateral Record
2402
+ *
2403
+ * The time between `startTime` and `endTime` cannot be longer than 30 days.
2404
+ * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.
2405
+ * If `startTime` is sent but `endTime` is not sent, the next 30 days' data beginning from `startTime` will be returned.
2406
+ * If `endTime` is sent but `startTime` is not sent, the 30 days' data before `endTime` will be returned.
2407
+ *
2408
+ * Weight: 1
2409
+ *
2410
+ * @summary Get Collateral Record(USER_DATA)
2411
+ * @param {GetCollateralRecordRequest} requestParameters Request parameters.
2412
+ * @returns {Promise<RestApiResponse<GetCollateralRecordResponse>>}
2413
+ * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
2414
+ * @see {@link https://developers.binance.com/docs/simple_earn/flexible-locked/history/Get-Collateral-Record Binance API Documentation}
1863
2415
  */
1864
- sendSignedRequest(endpoint, method, params = {}) {
1865
- return sendRequest4(this.configuration, endpoint, method, params, void 0, {
1866
- isSigned: true
1867
- });
2416
+ getCollateralRecord(requestParameters = {}) {
2417
+ return this.flexibleLockedApi.getCollateralRecord(requestParameters);
1868
2418
  }
1869
2419
  /**
1870
2420
  * Get Flexible Personal Left Quota
@@ -1875,10 +2425,10 @@ var RestAPI = class {
1875
2425
  * @param {GetFlexiblePersonalLeftQuotaRequest} requestParameters Request parameters.
1876
2426
  * @returns {Promise<RestApiResponse<GetFlexiblePersonalLeftQuotaResponse>>}
1877
2427
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1878
- * @see {@link https://developers.binance.com/docs/simple_earn/account/Get-Flexible-Personal-Left-Quota Binance API Documentation}
2428
+ * @see {@link https://developers.binance.com/docs/simple_earn/flexible-locked/account/Get-Flexible-Personal-Left-Quota Binance API Documentation}
1879
2429
  */
1880
2430
  getFlexiblePersonalLeftQuota(requestParameters) {
1881
- return this.accountApi.getFlexiblePersonalLeftQuota(requestParameters);
2431
+ return this.flexibleLockedApi.getFlexiblePersonalLeftQuota(requestParameters);
1882
2432
  }
1883
2433
  /**
1884
2434
  * Get Flexible Product Position
@@ -1889,10 +2439,81 @@ var RestAPI = class {
1889
2439
  * @param {GetFlexibleProductPositionRequest} requestParameters Request parameters.
1890
2440
  * @returns {Promise<RestApiResponse<GetFlexibleProductPositionResponse>>}
1891
2441
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1892
- * @see {@link https://developers.binance.com/docs/simple_earn/account/Get-Flexible-Product-Position Binance API Documentation}
2442
+ * @see {@link https://developers.binance.com/docs/simple_earn/flexible-locked/account/Get-Flexible-Product-Position Binance API Documentation}
1893
2443
  */
1894
2444
  getFlexibleProductPosition(requestParameters = {}) {
1895
- return this.accountApi.getFlexibleProductPosition(requestParameters);
2445
+ return this.flexibleLockedApi.getFlexibleProductPosition(requestParameters);
2446
+ }
2447
+ /**
2448
+ * Get Flexible Redemption Record
2449
+ *
2450
+ * The time between `startTime` and `endTime` cannot be longer than 3 months.
2451
+ * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.
2452
+ * If `startTime` is sent but `endTime` is not sent, the next 30 days' data beginning from `startTime` will be returned.
2453
+ * If `endTime` is sent but `startTime` is not sent, the 30 days' data before `endTime` will be returned.
2454
+ *
2455
+ * Weight: 150
2456
+ *
2457
+ * @summary Get Flexible Redemption Record(USER_DATA)
2458
+ * @param {GetFlexibleRedemptionRecordRequest} requestParameters Request parameters.
2459
+ * @returns {Promise<RestApiResponse<GetFlexibleRedemptionRecordResponse>>}
2460
+ * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
2461
+ * @see {@link https://developers.binance.com/docs/simple_earn/flexible-locked/history/Get-Flexible-Redemption-Record Binance API Documentation}
2462
+ */
2463
+ getFlexibleRedemptionRecord(requestParameters = {}) {
2464
+ return this.flexibleLockedApi.getFlexibleRedemptionRecord(requestParameters);
2465
+ }
2466
+ /**
2467
+ * Get Flexible Rewards History
2468
+ *
2469
+ * The time between `startTime` and `endTime` cannot be longer than 3 months.
2470
+ * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.
2471
+ * If `startTime` is sent but `endTime` is not sent, the next 30 days' data beginning from `startTime` will be returned.
2472
+ * If `endTime` is sent but `startTime` is not sent, the 30 days' data before `endTime` will be returned.
2473
+ *
2474
+ * Weight: 150
2475
+ *
2476
+ * @summary Get Flexible Rewards History(USER_DATA)
2477
+ * @param {GetFlexibleRewardsHistoryRequest} requestParameters Request parameters.
2478
+ * @returns {Promise<RestApiResponse<GetFlexibleRewardsHistoryResponse>>}
2479
+ * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
2480
+ * @see {@link https://developers.binance.com/docs/simple_earn/flexible-locked/history/Get-Flexible-Rewards-History Binance API Documentation}
2481
+ */
2482
+ getFlexibleRewardsHistory(requestParameters) {
2483
+ return this.flexibleLockedApi.getFlexibleRewardsHistory(requestParameters);
2484
+ }
2485
+ /**
2486
+ * Get Flexible Subscription Preview
2487
+ *
2488
+ * Weight: 150
2489
+ *
2490
+ * @summary Get Flexible Subscription Preview(USER_DATA)
2491
+ * @param {GetFlexibleSubscriptionPreviewRequest} requestParameters Request parameters.
2492
+ * @returns {Promise<RestApiResponse<GetFlexibleSubscriptionPreviewResponse>>}
2493
+ * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
2494
+ * @see {@link https://developers.binance.com/docs/simple_earn/flexible-locked/earn/Get-Flexible-Subscription-Preview Binance API Documentation}
2495
+ */
2496
+ getFlexibleSubscriptionPreview(requestParameters) {
2497
+ return this.flexibleLockedApi.getFlexibleSubscriptionPreview(requestParameters);
2498
+ }
2499
+ /**
2500
+ * Get Flexible Subscription Record
2501
+ *
2502
+ * The time between `startTime` and `endTime` cannot be longer than 3 months.
2503
+ * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.
2504
+ * If `startTime` is sent but `endTime` is not sent, the next 30 days' data beginning from `startTime` will be returned.
2505
+ * If `endTime` is sent but `startTime` is not sent, the 30 days' data before `endTime` will be returned.
2506
+ *
2507
+ * Weight: 150
2508
+ *
2509
+ * @summary Get Flexible Subscription Record(USER_DATA)
2510
+ * @param {GetFlexibleSubscriptionRecordRequest} requestParameters Request parameters.
2511
+ * @returns {Promise<RestApiResponse<GetFlexibleSubscriptionRecordResponse>>}
2512
+ * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
2513
+ * @see {@link https://developers.binance.com/docs/simple_earn/flexible-locked/history/Get-Flexible-Subscription-Record Binance API Documentation}
2514
+ */
2515
+ getFlexibleSubscriptionRecord(requestParameters = {}) {
2516
+ return this.flexibleLockedApi.getFlexibleSubscriptionRecord(requestParameters);
1896
2517
  }
1897
2518
  /**
1898
2519
  * Get Locked Personal Left Quota
@@ -1903,10 +2524,10 @@ var RestAPI = class {
1903
2524
  * @param {GetLockedPersonalLeftQuotaRequest} requestParameters Request parameters.
1904
2525
  * @returns {Promise<RestApiResponse<GetLockedPersonalLeftQuotaResponse>>}
1905
2526
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1906
- * @see {@link https://developers.binance.com/docs/simple_earn/account/Get-Locked-Personal-Left-Quota Binance API Documentation}
2527
+ * @see {@link https://developers.binance.com/docs/simple_earn/flexible-locked/account/Get-Locked-Personal-Left-Quota Binance API Documentation}
1907
2528
  */
1908
2529
  getLockedPersonalLeftQuota(requestParameters) {
1909
- return this.accountApi.getLockedPersonalLeftQuota(requestParameters);
2530
+ return this.flexibleLockedApi.getLockedPersonalLeftQuota(requestParameters);
1910
2531
  }
1911
2532
  /**
1912
2533
  * Get Locked Product Position
@@ -1917,82 +2538,130 @@ var RestAPI = class {
1917
2538
  * @param {GetLockedProductPositionRequest} requestParameters Request parameters.
1918
2539
  * @returns {Promise<RestApiResponse<GetLockedProductPositionResponse>>}
1919
2540
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1920
- * @see {@link https://developers.binance.com/docs/simple_earn/account/Get-Locked-Product-Position Binance API Documentation}
2541
+ * @see {@link https://developers.binance.com/docs/simple_earn/flexible-locked/account/Get-Locked-Product-Position Binance API Documentation}
1921
2542
  */
1922
2543
  getLockedProductPosition(requestParameters = {}) {
1923
- return this.accountApi.getLockedProductPosition(requestParameters);
2544
+ return this.flexibleLockedApi.getLockedProductPosition(requestParameters);
1924
2545
  }
1925
2546
  /**
1926
- * Get available Simple Earn flexible product list
2547
+ * Get Locked Redemption Record
2548
+ *
2549
+ * The time between `startTime` and `endTime` cannot be longer than 3 months.
2550
+ * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.
2551
+ * If `startTime` is sent but `endTime` is not sent, the next 30 days' data beginning from `startTime` will be returned.
2552
+ * If `endTime` is sent but `startTime` is not sent, the 30 days' data before `endTime` will be returned.
1927
2553
  *
1928
2554
  * Weight: 150
1929
2555
  *
1930
- * @summary Get Simple Earn Flexible Product List(USER_DATA)
1931
- * @param {GetSimpleEarnFlexibleProductListRequest} requestParameters Request parameters.
1932
- * @returns {Promise<RestApiResponse<GetSimpleEarnFlexibleProductListResponse>>}
2556
+ * @summary Get Locked Redemption Record(USER_DATA)
2557
+ * @param {GetLockedRedemptionRecordRequest} requestParameters Request parameters.
2558
+ * @returns {Promise<RestApiResponse<GetLockedRedemptionRecordResponse>>}
1933
2559
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1934
- * @see {@link https://developers.binance.com/docs/simple_earn/account/Get-Simple-Earn-Flexible-Product-List Binance API Documentation}
2560
+ * @see {@link https://developers.binance.com/docs/simple_earn/flexible-locked/history/Get-Locked-Redemption-Record Binance API Documentation}
1935
2561
  */
1936
- getSimpleEarnFlexibleProductList(requestParameters = {}) {
1937
- return this.accountApi.getSimpleEarnFlexibleProductList(requestParameters);
2562
+ getLockedRedemptionRecord(requestParameters = {}) {
2563
+ return this.flexibleLockedApi.getLockedRedemptionRecord(requestParameters);
1938
2564
  }
1939
2565
  /**
1940
- * Get Simple Earn Locked Product List
2566
+ * Get Locked Rewards History
1941
2567
  *
1942
- * Get available Simple Earn locked product list
2568
+ * The time between `startTime` and `endTime` cannot be longer than 3 months.
2569
+ * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.
2570
+ * If `startTime` is sent but `endTime` is not sent, the next 30 days' data beginning from `startTime` will be returned.
2571
+ * If `endTime` is sent but `startTime` is not sent, the 30 days' data before `endTime` will be returned.
1943
2572
  *
1944
2573
  * Weight: 150
1945
2574
  *
1946
- * @summary Get Simple Earn Locked Product List(USER_DATA)
1947
- * @param {GetSimpleEarnLockedProductListRequest} requestParameters Request parameters.
1948
- * @returns {Promise<RestApiResponse<GetSimpleEarnLockedProductListResponse>>}
2575
+ * @summary Get Locked Rewards History(USER_DATA)
2576
+ * @param {GetLockedRewardsHistoryRequest} requestParameters Request parameters.
2577
+ * @returns {Promise<RestApiResponse<GetLockedRewardsHistoryResponse>>}
1949
2578
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1950
- * @see {@link https://developers.binance.com/docs/simple_earn/account/Get-Simple-Earn-Locked-Product-List Binance API Documentation}
2579
+ * @see {@link https://developers.binance.com/docs/simple_earn/flexible-locked/history/Get-Locked-Rewards-History Binance API Documentation}
1951
2580
  */
1952
- getSimpleEarnLockedProductList(requestParameters = {}) {
1953
- return this.accountApi.getSimpleEarnLockedProductList(requestParameters);
2581
+ getLockedRewardsHistory(requestParameters = {}) {
2582
+ return this.flexibleLockedApi.getLockedRewardsHistory(requestParameters);
1954
2583
  }
1955
2584
  /**
1956
- * Simple Account query
2585
+ * Get Locked Subscription Preview
1957
2586
  *
1958
2587
  * Weight: 150
1959
2588
  *
1960
- * @summary Simple Account(USER_DATA)
1961
- * @param {SimpleAccountRequest} requestParameters Request parameters.
1962
- * @returns {Promise<RestApiResponse<SimpleAccountResponse>>}
2589
+ * @summary Get Locked Subscription Preview(USER_DATA)
2590
+ * @param {GetLockedSubscriptionPreviewRequest} requestParameters Request parameters.
2591
+ * @returns {Promise<RestApiResponse<GetLockedSubscriptionPreviewResponse>>}
1963
2592
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1964
- * @see {@link https://developers.binance.com/docs/simple_earn/account/Simple-Account Binance API Documentation}
2593
+ * @see {@link https://developers.binance.com/docs/simple_earn/flexible-locked/earn/Get-Locked-Subscription-Preview Binance API Documentation}
1965
2594
  */
1966
- simpleAccount(requestParameters = {}) {
1967
- return this.accountApi.simpleAccount(requestParameters);
2595
+ getLockedSubscriptionPreview(requestParameters) {
2596
+ return this.flexibleLockedApi.getLockedSubscriptionPreview(requestParameters);
1968
2597
  }
1969
2598
  /**
1970
- * Get Flexible Subscription Preview
2599
+ * Get Locked Subscription Record
2600
+ *
2601
+ * The time between `startTime` and `endTime` cannot be longer than 3 months.
2602
+ * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.
2603
+ * If `startTime` is sent but `endTime` is not sent, the next 30 days' data beginning from `startTime` will be returned.
2604
+ * If `endTime` is sent but `startTime` is not sent, the 30 days' data before `endTime` will be returned.
1971
2605
  *
1972
2606
  * Weight: 150
1973
2607
  *
1974
- * @summary Get Flexible Subscription Preview(USER_DATA)
1975
- * @param {GetFlexibleSubscriptionPreviewRequest} requestParameters Request parameters.
1976
- * @returns {Promise<RestApiResponse<GetFlexibleSubscriptionPreviewResponse>>}
2608
+ * @summary Get Locked Subscription Record(USER_DATA)
2609
+ * @param {GetLockedSubscriptionRecordRequest} requestParameters Request parameters.
2610
+ * @returns {Promise<RestApiResponse<GetLockedSubscriptionRecordResponse>>}
1977
2611
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1978
- * @see {@link https://developers.binance.com/docs/simple_earn/earn/Get-Flexible-Subscription-Preview Binance API Documentation}
2612
+ * @see {@link https://developers.binance.com/docs/simple_earn/flexible-locked/history/Get-Locked-Subscription-Record Binance API Documentation}
1979
2613
  */
1980
- getFlexibleSubscriptionPreview(requestParameters) {
1981
- return this.earnApi.getFlexibleSubscriptionPreview(requestParameters);
2614
+ getLockedSubscriptionRecord(requestParameters = {}) {
2615
+ return this.flexibleLockedApi.getLockedSubscriptionRecord(requestParameters);
1982
2616
  }
1983
2617
  /**
1984
- * Get Locked Subscription Preview
2618
+ * Get Rate History
2619
+ *
2620
+ * The time between startTime and endTime cannot be longer than 1 year.
2621
+ * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.
2622
+ * If `startTime` is sent but `endTime` is not sent, the next 30 days' data beginning from `startTime` will be returned.
2623
+ * If `endTime` is sent but `startTime` is not sent, the 30 days' data before `endTime` will be returned.
1985
2624
  *
1986
2625
  * Weight: 150
1987
2626
  *
1988
- * @summary Get Locked Subscription Preview(USER_DATA)
1989
- * @param {GetLockedSubscriptionPreviewRequest} requestParameters Request parameters.
1990
- * @returns {Promise<RestApiResponse<GetLockedSubscriptionPreviewResponse>>}
2627
+ * @summary Get Rate History(USER_DATA)
2628
+ * @param {GetRateHistoryRequest} requestParameters Request parameters.
2629
+ * @returns {Promise<RestApiResponse<GetRateHistoryResponse>>}
1991
2630
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1992
- * @see {@link https://developers.binance.com/docs/simple_earn/earn/Get-Locked-Subscription-Preview Binance API Documentation}
2631
+ * @see {@link https://developers.binance.com/docs/simple_earn/flexible-locked/history/Get-Rate-History Binance API Documentation}
1993
2632
  */
1994
- getLockedSubscriptionPreview(requestParameters) {
1995
- return this.earnApi.getLockedSubscriptionPreview(requestParameters);
2633
+ getRateHistory(requestParameters) {
2634
+ return this.flexibleLockedApi.getRateHistory(requestParameters);
2635
+ }
2636
+ /**
2637
+ * Get available Simple Earn flexible product list
2638
+ *
2639
+ * Weight: 150
2640
+ *
2641
+ * @summary Get Simple Earn Flexible Product List(USER_DATA)
2642
+ * @param {GetSimpleEarnFlexibleProductListRequest} requestParameters Request parameters.
2643
+ * @returns {Promise<RestApiResponse<GetSimpleEarnFlexibleProductListResponse>>}
2644
+ * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
2645
+ * @see {@link https://developers.binance.com/docs/simple_earn/flexible-locked/account/Get-Simple-Earn-Flexible-Product-List Binance API Documentation}
2646
+ */
2647
+ getSimpleEarnFlexibleProductList(requestParameters = {}) {
2648
+ return this.flexibleLockedApi.getSimpleEarnFlexibleProductList(requestParameters);
2649
+ }
2650
+ /**
2651
+ * Get Simple Earn Locked Product List
2652
+ *
2653
+ * Get available Simple Earn locked product list
2654
+ *
2655
+ * Weight: 150
2656
+ *
2657
+ * @summary Get Simple Earn Locked Product List(USER_DATA)
2658
+ * @param {GetSimpleEarnLockedProductListRequest} requestParameters Request parameters.
2659
+ * @returns {Promise<RestApiResponse<GetSimpleEarnLockedProductListResponse>>}
2660
+ * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
2661
+ * @see {@link https://developers.binance.com/docs/simple_earn/flexible-locked/account/Get-Simple-Earn-Locked-Product-List Binance API Documentation}
2662
+ */
2663
+ getSimpleEarnLockedProductList(requestParameters = {}) {
2664
+ return this.flexibleLockedApi.getSimpleEarnLockedProductList(requestParameters);
1996
2665
  }
1997
2666
  /**
1998
2667
  * Redeem Flexible Product
@@ -2005,10 +2674,10 @@ var RestAPI = class {
2005
2674
  * @param {RedeemFlexibleProductRequest} requestParameters Request parameters.
2006
2675
  * @returns {Promise<RestApiResponse<RedeemFlexibleProductResponse>>}
2007
2676
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
2008
- * @see {@link https://developers.binance.com/docs/simple_earn/earn/Redeem-Flexible-Product Binance API Documentation}
2677
+ * @see {@link https://developers.binance.com/docs/simple_earn/flexible-locked/earn/Redeem-Flexible-Product Binance API Documentation}
2009
2678
  */
2010
2679
  redeemFlexibleProduct(requestParameters) {
2011
- return this.earnApi.redeemFlexibleProduct(requestParameters);
2680
+ return this.flexibleLockedApi.redeemFlexibleProduct(requestParameters);
2012
2681
  }
2013
2682
  /**
2014
2683
  * Redeem Locked Product
@@ -2021,10 +2690,10 @@ var RestAPI = class {
2021
2690
  * @param {RedeemLockedProductRequest} requestParameters Request parameters.
2022
2691
  * @returns {Promise<RestApiResponse<RedeemLockedProductResponse>>}
2023
2692
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
2024
- * @see {@link https://developers.binance.com/docs/simple_earn/earn/Redeem-Locked-Product Binance API Documentation}
2693
+ * @see {@link https://developers.binance.com/docs/simple_earn/flexible-locked/earn/Redeem-Locked-Product Binance API Documentation}
2025
2694
  */
2026
2695
  redeemLockedProduct(requestParameters) {
2027
- return this.earnApi.redeemLockedProduct(requestParameters);
2696
+ return this.flexibleLockedApi.redeemLockedProduct(requestParameters);
2028
2697
  }
2029
2698
  /**
2030
2699
  * Set Flexible Auto Subscribe
@@ -2035,10 +2704,10 @@ var RestAPI = class {
2035
2704
  * @param {SetFlexibleAutoSubscribeRequest} requestParameters Request parameters.
2036
2705
  * @returns {Promise<RestApiResponse<SetFlexibleAutoSubscribeResponse>>}
2037
2706
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
2038
- * @see {@link https://developers.binance.com/docs/simple_earn/earn/Set-Flexible-Auto-Subscribe Binance API Documentation}
2707
+ * @see {@link https://developers.binance.com/docs/simple_earn/flexible-locked/earn/Set-Flexible-Auto-Subscribe Binance API Documentation}
2039
2708
  */
2040
2709
  setFlexibleAutoSubscribe(requestParameters) {
2041
- return this.earnApi.setFlexibleAutoSubscribe(requestParameters);
2710
+ return this.flexibleLockedApi.setFlexibleAutoSubscribe(requestParameters);
2042
2711
  }
2043
2712
  /**
2044
2713
  * Set locked auto subscribe
@@ -2049,10 +2718,10 @@ var RestAPI = class {
2049
2718
  * @param {SetLockedAutoSubscribeRequest} requestParameters Request parameters.
2050
2719
  * @returns {Promise<RestApiResponse<SetLockedAutoSubscribeResponse>>}
2051
2720
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
2052
- * @see {@link https://developers.binance.com/docs/simple_earn/earn/Set-Locked-Auto-Subscribe Binance API Documentation}
2721
+ * @see {@link https://developers.binance.com/docs/simple_earn/flexible-locked/earn/Set-Locked-Auto-Subscribe Binance API Documentation}
2053
2722
  */
2054
2723
  setLockedAutoSubscribe(requestParameters) {
2055
- return this.earnApi.setLockedAutoSubscribe(requestParameters);
2724
+ return this.flexibleLockedApi.setLockedAutoSubscribe(requestParameters);
2056
2725
  }
2057
2726
  /**
2058
2727
  * Set redeem option for Locked product
@@ -2063,10 +2732,24 @@ var RestAPI = class {
2063
2732
  * @param {SetLockedProductRedeemOptionRequest} requestParameters Request parameters.
2064
2733
  * @returns {Promise<RestApiResponse<SetLockedProductRedeemOptionResponse>>}
2065
2734
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
2066
- * @see {@link https://developers.binance.com/docs/simple_earn/earn/Set-Locked-Redeem-Option Binance API Documentation}
2735
+ * @see {@link https://developers.binance.com/docs/simple_earn/flexible-locked/earn/Set-Locked-Redeem-Option Binance API Documentation}
2067
2736
  */
2068
2737
  setLockedProductRedeemOption(requestParameters) {
2069
- return this.earnApi.setLockedProductRedeemOption(requestParameters);
2738
+ return this.flexibleLockedApi.setLockedProductRedeemOption(requestParameters);
2739
+ }
2740
+ /**
2741
+ * Simple Account query
2742
+ *
2743
+ * Weight: 150
2744
+ *
2745
+ * @summary Simple Account(USER_DATA)
2746
+ * @param {SimpleAccountRequest} requestParameters Request parameters.
2747
+ * @returns {Promise<RestApiResponse<SimpleAccountResponse>>}
2748
+ * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
2749
+ * @see {@link https://developers.binance.com/docs/simple_earn/flexible-locked/account/Simple-Account Binance API Documentation}
2750
+ */
2751
+ simpleAccount(requestParameters = {}) {
2752
+ return this.flexibleLockedApi.simpleAccount(requestParameters);
2070
2753
  }
2071
2754
  /**
2072
2755
  * Subscribe Flexible Product
@@ -2079,10 +2762,10 @@ var RestAPI = class {
2079
2762
  * @param {SubscribeFlexibleProductRequest} requestParameters Request parameters.
2080
2763
  * @returns {Promise<RestApiResponse<SubscribeFlexibleProductResponse>>}
2081
2764
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
2082
- * @see {@link https://developers.binance.com/docs/simple_earn/earn/Subscribe-Flexible-Product Binance API Documentation}
2765
+ * @see {@link https://developers.binance.com/docs/simple_earn/flexible-locked/earn/Subscribe-Flexible-Product Binance API Documentation}
2083
2766
  */
2084
2767
  subscribeFlexibleProduct(requestParameters) {
2085
- return this.earnApi.subscribeFlexibleProduct(requestParameters);
2768
+ return this.flexibleLockedApi.subscribeFlexibleProduct(requestParameters);
2086
2769
  }
2087
2770
  /**
2088
2771
  * Subscribe Locked Product
@@ -2095,162 +2778,146 @@ var RestAPI = class {
2095
2778
  * @param {SubscribeLockedProductRequest} requestParameters Request parameters.
2096
2779
  * @returns {Promise<RestApiResponse<SubscribeLockedProductResponse>>}
2097
2780
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
2098
- * @see {@link https://developers.binance.com/docs/simple_earn/earn/Subscribe-Locked-Product Binance API Documentation}
2781
+ * @see {@link https://developers.binance.com/docs/simple_earn/flexible-locked/earn/Subscribe-Locked-Product Binance API Documentation}
2099
2782
  */
2100
2783
  subscribeLockedProduct(requestParameters) {
2101
- return this.earnApi.subscribeLockedProduct(requestParameters);
2784
+ return this.flexibleLockedApi.subscribeLockedProduct(requestParameters);
2102
2785
  }
2103
2786
  /**
2104
- * Get Collateral Record
2105
- *
2106
- * The time between `startTime` and `endTime` cannot be longer than 30 days.
2107
- * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.
2108
- * If `startTime` is sent but `endTime` is not sent, the next 30 days' data beginning from `startTime` will be returned.
2109
- * If `endTime` is sent but `startTime` is not sent, the 30 days' data before `endTime` will be returned.
2787
+ * Get RWUSD account information.
2110
2788
  *
2111
- * Weight: 1
2789
+ * Weight: 150
2112
2790
  *
2113
- * @summary Get Collateral Record(USER_DATA)
2114
- * @param {GetCollateralRecordRequest} requestParameters Request parameters.
2115
- * @returns {Promise<RestApiResponse<GetCollateralRecordResponse>>}
2791
+ * @summary Get RWUSD Account (USER_DATA)
2792
+ * @param {GetRwusdAccountRequest} requestParameters Request parameters.
2793
+ * @returns {Promise<RestApiResponse<GetRwusdAccountResponse>>}
2116
2794
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
2117
- * @see {@link https://developers.binance.com/docs/simple_earn/history/Get-Collateral-Record Binance API Documentation}
2795
+ * @see {@link https://developers.binance.com/docs/simple_earn/rwusd/account/ Binance API Documentation}
2118
2796
  */
2119
- getCollateralRecord(requestParameters = {}) {
2120
- return this.historyApi.getCollateralRecord(requestParameters);
2797
+ getRwusdAccount(requestParameters = {}) {
2798
+ return this.rwusdApi.getRwusdAccount(requestParameters);
2121
2799
  }
2122
2800
  /**
2123
- * Get Flexible Redemption Record
2124
- *
2125
- * The time between `startTime` and `endTime` cannot be longer than 3 months.
2126
- * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.
2127
- * If `startTime` is sent but `endTime` is not sent, the next 30 days' data beginning from `startTime` will be returned.
2128
- * If `endTime` is sent but `startTime` is not sent, the 30 days' data before `endTime` will be returned.
2801
+ * Get RWUSD quota details including subscription quota, fast redemption quota, and standard redemption quota.
2129
2802
  *
2130
2803
  * Weight: 150
2131
2804
  *
2132
- * @summary Get Flexible Redemption Record(USER_DATA)
2133
- * @param {GetFlexibleRedemptionRecordRequest} requestParameters Request parameters.
2134
- * @returns {Promise<RestApiResponse<GetFlexibleRedemptionRecordResponse>>}
2805
+ * @summary Get RWUSD Quota Details (USER_DATA)
2806
+ * @param {GetRwusdQuotaDetailsRequest} requestParameters Request parameters.
2807
+ * @returns {Promise<RestApiResponse<GetRwusdQuotaDetailsResponse>>}
2135
2808
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
2136
- * @see {@link https://developers.binance.com/docs/simple_earn/history/Get-Flexible-Redemption-Record Binance API Documentation}
2809
+ * @see {@link https://developers.binance.com/docs/simple_earn/rwusd/account/Get-RWUSD-Quota-Details Binance API Documentation}
2137
2810
  */
2138
- getFlexibleRedemptionRecord(requestParameters = {}) {
2139
- return this.historyApi.getFlexibleRedemptionRecord(requestParameters);
2811
+ getRwusdQuotaDetails(requestParameters = {}) {
2812
+ return this.rwusdApi.getRwusdQuotaDetails(requestParameters);
2140
2813
  }
2141
2814
  /**
2142
- * Get Flexible Rewards History
2815
+ * Get RWUSD rate history sorted by descending order.
2143
2816
  *
2144
- * The time between `startTime` and `endTime` cannot be longer than 3 months.
2145
- * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.
2146
- * If `startTime` is sent but `endTime` is not sent, the next 30 days' data beginning from `startTime` will be returned.
2147
- * If `endTime` is sent but `startTime` is not sent, the 30 days' data before `endTime` will be returned.
2817
+ * The time between `startTime` and `endTime` cannot be longer than 6 months.
2818
+ * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.
2819
+ * If `startTime` is sent but `endTime` is not sent, `endTime` will default to current time, and results from `startTime` onward will be returned.
2820
+ * 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.
2148
2821
  *
2149
2822
  * Weight: 150
2150
2823
  *
2151
- * @summary Get Flexible Rewards History(USER_DATA)
2152
- * @param {GetFlexibleRewardsHistoryRequest} requestParameters Request parameters.
2153
- * @returns {Promise<RestApiResponse<GetFlexibleRewardsHistoryResponse>>}
2824
+ * @summary Get RWUSD Rate History (USER_DATA)
2825
+ * @param {GetRwusdRateHistoryRequest} requestParameters Request parameters.
2826
+ * @returns {Promise<RestApiResponse<GetRwusdRateHistoryResponse>>}
2154
2827
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
2155
- * @see {@link https://developers.binance.com/docs/simple_earn/history/Get-Flexible-Rewards-History Binance API Documentation}
2828
+ * @see {@link https://developers.binance.com/docs/simple_earn/rwusd/history/Get-RWUSD-Rate-History Binance API Documentation}
2156
2829
  */
2157
- getFlexibleRewardsHistory(requestParameters) {
2158
- return this.historyApi.getFlexibleRewardsHistory(requestParameters);
2830
+ getRwusdRateHistory(requestParameters = {}) {
2831
+ return this.rwusdApi.getRwusdRateHistory(requestParameters);
2159
2832
  }
2160
2833
  /**
2161
- * Get Flexible Subscription Record
2834
+ * Get RWUSD redemption history.
2162
2835
  *
2163
- * The time between `startTime` and `endTime` cannot be longer than 3 months.
2836
+ * The time between `startTime` and `endTime` cannot be longer than 6 months.
2164
2837
  * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.
2165
- * If `startTime` is sent but `endTime` is not sent, the next 30 days' data beginning from `startTime` will be returned.
2166
- * If `endTime` is sent but `startTime` is not sent, the 30 days' data before `endTime` will be returned.
2838
+ * If `startTime` is sent but `endTime` is not sent, `endTime` will default to current time, and results from `startTime` onward will be returned.
2839
+ * 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.
2167
2840
  *
2168
2841
  * Weight: 150
2169
2842
  *
2170
- * @summary Get Flexible Subscription Record(USER_DATA)
2171
- * @param {GetFlexibleSubscriptionRecordRequest} requestParameters Request parameters.
2172
- * @returns {Promise<RestApiResponse<GetFlexibleSubscriptionRecordResponse>>}
2843
+ * @summary Get RWUSD Redemption History (USER_DATA)
2844
+ * @param {GetRwusdRedemptionHistoryRequest} requestParameters Request parameters.
2845
+ * @returns {Promise<RestApiResponse<GetRwusdRedemptionHistoryResponse>>}
2173
2846
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
2174
- * @see {@link https://developers.binance.com/docs/simple_earn/history/Get-Flexible-Subscription-Record Binance API Documentation}
2847
+ * @see {@link https://developers.binance.com/docs/simple_earn/rwusd/history/Get-RWUSD-Redemption-History Binance API Documentation}
2175
2848
  */
2176
- getFlexibleSubscriptionRecord(requestParameters = {}) {
2177
- return this.historyApi.getFlexibleSubscriptionRecord(requestParameters);
2849
+ getRwusdRedemptionHistory(requestParameters = {}) {
2850
+ return this.rwusdApi.getRwusdRedemptionHistory(requestParameters);
2178
2851
  }
2179
2852
  /**
2180
- * Get Locked Redemption Record
2853
+ * Get RWUSD rewards history.
2181
2854
  *
2182
- * The time between `startTime` and `endTime` cannot be longer than 3 months.
2855
+ * The time between `startTime` and `endTime` cannot be longer than 6 months.
2183
2856
  * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.
2184
- * If `startTime` is sent but `endTime` is not sent, the next 30 days' data beginning from `startTime` will be returned.
2185
- * If `endTime` is sent but `startTime` is not sent, the 30 days' data before `endTime` will be returned.
2857
+ * If `startTime` is sent but `endTime` is not sent, `endTime` will default to current time, and results from `startTime` onward will be returned.
2858
+ * 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.
2186
2859
  *
2187
2860
  * Weight: 150
2188
2861
  *
2189
- * @summary Get Locked Redemption Record(USER_DATA)
2190
- * @param {GetLockedRedemptionRecordRequest} requestParameters Request parameters.
2191
- * @returns {Promise<RestApiResponse<GetLockedRedemptionRecordResponse>>}
2862
+ * @summary Get RWUSD Rewards History (USER_DATA)
2863
+ * @param {GetRwusdRewardsHistoryRequest} requestParameters Request parameters.
2864
+ * @returns {Promise<RestApiResponse<GetRwusdRewardsHistoryResponse>>}
2192
2865
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
2193
- * @see {@link https://developers.binance.com/docs/simple_earn/history/Get-Locked-Redemption-Record Binance API Documentation}
2866
+ * @see {@link https://developers.binance.com/docs/simple_earn/rwusd/history/Get-RWUSD-Rewards-History Binance API Documentation}
2194
2867
  */
2195
- getLockedRedemptionRecord(requestParameters = {}) {
2196
- return this.historyApi.getLockedRedemptionRecord(requestParameters);
2868
+ getRwusdRewardsHistory(requestParameters = {}) {
2869
+ return this.rwusdApi.getRwusdRewardsHistory(requestParameters);
2197
2870
  }
2198
2871
  /**
2199
- * Get Locked Rewards History
2872
+ * Get RWUSD subscription history
2200
2873
  *
2201
- * The time between `startTime` and `endTime` cannot be longer than 3 months.
2874
+ * The time between `startTime` and `endTime` cannot be longer than 6 months.
2202
2875
  * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.
2203
- * If `startTime` is sent but `endTime` is not sent, the next 30 days' data beginning from `startTime` will be returned.
2204
- * If `endTime` is sent but `startTime` is not sent, the 30 days' data before `endTime` will be returned.
2876
+ * If `startTime` is sent but `endTime` is not sent, `endTime` will default to current time, and results from `startTime` onward will be returned.
2877
+ * 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.
2205
2878
  *
2206
2879
  * Weight: 150
2207
2880
  *
2208
- * @summary Get Locked Rewards History(USER_DATA)
2209
- * @param {GetLockedRewardsHistoryRequest} requestParameters Request parameters.
2210
- * @returns {Promise<RestApiResponse<GetLockedRewardsHistoryResponse>>}
2881
+ * @summary Get RWUSD subscription history(USER_DATA)
2882
+ * @param {GetRwusdSubscriptionHistoryRequest} requestParameters Request parameters.
2883
+ * @returns {Promise<RestApiResponse<GetRwusdSubscriptionHistoryResponse>>}
2211
2884
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
2212
- * @see {@link https://developers.binance.com/docs/simple_earn/history/Get-Locked-Rewards-History Binance API Documentation}
2885
+ * @see {@link https://developers.binance.com/docs/simple_earn/rwusd/history/Get-RWUSD-subscription-history Binance API Documentation}
2213
2886
  */
2214
- getLockedRewardsHistory(requestParameters = {}) {
2215
- return this.historyApi.getLockedRewardsHistory(requestParameters);
2887
+ getRwusdSubscriptionHistory(requestParameters = {}) {
2888
+ return this.rwusdApi.getRwusdSubscriptionHistory(requestParameters);
2216
2889
  }
2217
2890
  /**
2218
- * Get Locked Subscription Record
2891
+ * Redeem RWUSD to USDC
2219
2892
  *
2220
- * The time between `startTime` and `endTime` cannot be longer than 3 months.
2221
- * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.
2222
- * If `startTime` is sent but `endTime` is not sent, the next 30 days' data beginning from `startTime` will be returned.
2223
- * If `endTime` is sent but `startTime` is not sent, the 30 days' data before `endTime` will be returned.
2893
+ * You need to open Enable Spot & Margin Trading permission for the API Key which requests this endpoint.
2224
2894
  *
2225
2895
  * Weight: 150
2226
2896
  *
2227
- * @summary Get Locked Subscription Record(USER_DATA)
2228
- * @param {GetLockedSubscriptionRecordRequest} requestParameters Request parameters.
2229
- * @returns {Promise<RestApiResponse<GetLockedSubscriptionRecordResponse>>}
2897
+ * @summary Redeem RWUSD(TRADE)
2898
+ * @param {RedeemRwusdRequest} requestParameters Request parameters.
2899
+ * @returns {Promise<RestApiResponse<RedeemRwusdResponse>>}
2230
2900
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
2231
- * @see {@link https://developers.binance.com/docs/simple_earn/history/Get-Locked-Subscription-Record Binance API Documentation}
2901
+ * @see {@link https://developers.binance.com/docs/simple_earn/rwusd/earn/Redeem-RWUSD Binance API Documentation}
2232
2902
  */
2233
- getLockedSubscriptionRecord(requestParameters = {}) {
2234
- return this.historyApi.getLockedSubscriptionRecord(requestParameters);
2903
+ redeemRwusd(requestParameters) {
2904
+ return this.rwusdApi.redeemRwusd(requestParameters);
2235
2905
  }
2236
2906
  /**
2237
- * Get Rate History
2907
+ * Subscribe RWUSD
2238
2908
  *
2239
- * The time between startTime and endTime cannot be longer than 1 year.
2240
- * If `startTime` and `endTime` are both not sent, then the last 30 days' data will be returned.
2241
- * If `startTime` is sent but `endTime` is not sent, the next 30 days' data beginning from `startTime` will be returned.
2242
- * If `endTime` is sent but `startTime` is not sent, the 30 days' data before `endTime` will be returned.
2909
+ * You need to open Enable Spot & Margin Trading permission for the API Key which requests this endpoint.
2243
2910
  *
2244
2911
  * Weight: 150
2245
2912
  *
2246
- * @summary Get Rate History(USER_DATA)
2247
- * @param {GetRateHistoryRequest} requestParameters Request parameters.
2248
- * @returns {Promise<RestApiResponse<GetRateHistoryResponse>>}
2913
+ * @summary Subscribe RWUSD(TRADE)
2914
+ * @param {SubscribeRwusdRequest} requestParameters Request parameters.
2915
+ * @returns {Promise<RestApiResponse<SubscribeRwusdResponse>>}
2249
2916
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
2250
- * @see {@link https://developers.binance.com/docs/simple_earn/history/Get-Rate-History Binance API Documentation}
2917
+ * @see {@link https://developers.binance.com/docs/simple_earn/rwusd/earn/Subscribe-RWUSD Binance API Documentation}
2251
2918
  */
2252
- getRateHistory(requestParameters) {
2253
- return this.historyApi.getRateHistory(requestParameters);
2919
+ subscribeRwusd(requestParameters) {
2920
+ return this.rwusdApi.subscribeRwusd(requestParameters);
2254
2921
  }
2255
2922
  };
2256
2923
 
@@ -2259,7 +2926,7 @@ var SimpleEarn = class {
2259
2926
  constructor(config) {
2260
2927
  const userAgent = buildUserAgent(name, version);
2261
2928
  if (config?.configurationRestAPI) {
2262
- const configRestAPI = new ConfigurationRestAPI5(
2929
+ const configRestAPI = new ConfigurationRestAPI4(
2263
2930
  config.configurationRestAPI
2264
2931
  );
2265
2932
  configRestAPI.basePath = configRestAPI.basePath || SIMPLE_EARN_REST_API_PROD_URL;