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