@binance/crypto-loan 9.0.15 → 10.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -14,14 +14,14 @@ let __binance_common = require("@binance/common");
14
14
 
15
15
  //#region package.json
16
16
  var name = "@binance/crypto-loan";
17
- var version = "9.0.15";
17
+ var version = "10.0.1";
18
18
 
19
19
  //#endregion
20
20
  //#region src/rest-api/modules/flexible-rate-api.ts
21
21
  /**
22
- * Binance Crypto Loan REST API
22
+ * Crypto Loan REST API
23
23
  *
24
- * OpenAPI Specification for the Binance Crypto Loan REST API
24
+ * Access Binance Crypto Loans to query assets, subscribe to loans, and manage loan positions.
25
25
  *
26
26
  * The version of the OpenAPI document: 1.0.0
27
27
  *
@@ -303,15 +303,18 @@ var FlexibleRateApi = class {
303
303
  this.localVarAxiosParamCreator = FlexibleRateApiAxiosParamCreator(configuration);
304
304
  }
305
305
  /**
306
+ * Get the latest rate of collateral coin/loan coin when using collateral repay.
306
307
  *
307
- * Weight: 6000
308
+ * Weight(IP): 6000
308
309
  *
309
- * @summary Check Collateral Repay Rate (USER_DATA)
310
+ * Security Type: USER_DATA
311
+ *
312
+ * @summary Check Collateral Flexible Repay Rate (USER_DATA)
310
313
  * @param {CheckCollateralRepayRateRequest} requestParameters Request parameters.
311
314
  * @returns {Promise<RestApiResponse<CheckCollateralRepayRateResponse>>}
312
315
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
313
316
  * @memberof FlexibleRateApi
314
- * @see {@link https://developers.binance.com/docs/crypto_loan/flexible-rate/user-information/Check-Collateral-Repay-Rate Binance API Documentation}
317
+ * @see {@link https://developers.binance.com/en/docs/catalog/investment-and-services-crypto-loan/api/rest-api/flexible-rate#check-collateral-repay-rate Binance API Documentation}
315
318
  */
316
319
  async checkCollateralRepayRate(requestParameters) {
317
320
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.checkCollateralRepayRate(requestParameters?.loanCoin, requestParameters?.collateralCoin, requestParameters?.recvWindow);
@@ -320,16 +323,19 @@ var FlexibleRateApi = class {
320
323
  /**
321
324
  * Flexible Loan Adjust LTV
322
325
  *
323
- * API Key needs Spot & Margin Trading permission for this endpoint
326
+ * Weight(UID): 6000
327
+ *
328
+ * Security Type: TRADE
324
329
  *
325
- * Weight: 6000
330
+ * Notes:
331
+ * - API key needs Spot & Margin Trading permission for this endpoint.
326
332
  *
327
- * @summary Flexible Loan Adjust LTV(TRADE)
333
+ * @summary Flexible Loan Adjust LTV (TRADE)
328
334
  * @param {FlexibleLoanAdjustLtvRequest} requestParameters Request parameters.
329
335
  * @returns {Promise<RestApiResponse<FlexibleLoanAdjustLtvResponse>>}
330
336
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
331
337
  * @memberof FlexibleRateApi
332
- * @see {@link https://developers.binance.com/docs/crypto_loan/flexible-rate/trade/Flexible-Loan-Adjust-LTV Binance API Documentation}
338
+ * @see {@link https://developers.binance.com/en/docs/catalog/investment-and-services-crypto-loan/api/rest-api/flexible-rate#flexible-loan-adjust-ltv Binance API Documentation}
333
339
  */
334
340
  async flexibleLoanAdjustLtv(requestParameters) {
335
341
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.flexibleLoanAdjustLtv(requestParameters?.loanCoin, requestParameters?.collateralCoin, requestParameters?.adjustmentAmount, requestParameters?.direction, requestParameters?.recvWindow);
@@ -338,18 +344,20 @@ var FlexibleRateApi = class {
338
344
  /**
339
345
  * Borrow Flexible Loan
340
346
  *
347
+ * Weight(IP): 6000
341
348
  *
342
- * This API endpoint is available for both the master account and the sub-account.
343
- * You can customize LTV by entering loanAmount and collateralAmount.
349
+ * Security Type: TRADE
344
350
  *
345
- * Weight: 6000
351
+ * Notes:
352
+ * - This endpoint is available for both master and sub-accounts.
353
+ * - You can customize LTV by entering `loanAmount` and `collateralAmount`.
346
354
  *
347
- * @summary Flexible Loan Borrow(TRADE)
355
+ * @summary Flexible Loan Borrow (TRADE)
348
356
  * @param {FlexibleLoanBorrowRequest} requestParameters Request parameters.
349
357
  * @returns {Promise<RestApiResponse<FlexibleLoanBorrowResponse>>}
350
358
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
351
359
  * @memberof FlexibleRateApi
352
- * @see {@link https://developers.binance.com/docs/crypto_loan/flexible-rate/trade/Flexible-Loan-Borrow Binance API Documentation}
360
+ * @see {@link https://developers.binance.com/en/docs/catalog/investment-and-services-crypto-loan/api/rest-api/flexible-rate#flexible-loan-borrow Binance API Documentation}
353
361
  */
354
362
  async flexibleLoanBorrow(requestParameters) {
355
363
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.flexibleLoanBorrow(requestParameters?.loanCoin, requestParameters?.collateralCoin, requestParameters?.loanAmount, requestParameters?.collateralAmount, requestParameters?.recvWindow);
@@ -358,17 +366,19 @@ var FlexibleRateApi = class {
358
366
  /**
359
367
  * Flexible Loan Repay
360
368
  *
369
+ * Weight(IP): 6000
361
370
  *
362
- * repayAmount is mandatory even fullRepayment = FALSE
371
+ * Security Type: TRADE
363
372
  *
364
- * Weight: 6000
373
+ * Notes:
374
+ * - `repayAmount` is mandatory even when `fullRepayment = FALSE`.
365
375
  *
366
- * @summary Flexible Loan Repay(TRADE)
376
+ * @summary Flexible Loan Repay (TRADE)
367
377
  * @param {FlexibleLoanRepayRequest} requestParameters Request parameters.
368
378
  * @returns {Promise<RestApiResponse<FlexibleLoanRepayResponse>>}
369
379
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
370
380
  * @memberof FlexibleRateApi
371
- * @see {@link https://developers.binance.com/docs/crypto_loan/flexible-rate/trade/Flexible-Loan-Repay Binance API Documentation}
381
+ * @see {@link https://developers.binance.com/en/docs/catalog/investment-and-services-crypto-loan/api/rest-api/flexible-rate#flexible-loan-repay Binance API Documentation}
372
382
  */
373
383
  async flexibleLoanRepay(requestParameters) {
374
384
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.flexibleLoanRepay(requestParameters?.loanCoin, requestParameters?.collateralCoin, requestParameters?.repayAmount, requestParameters?.collateralReturn, requestParameters?.fullRepayment, requestParameters?.repaymentType, requestParameters?.recvWindow);
@@ -377,49 +387,57 @@ var FlexibleRateApi = class {
377
387
  /**
378
388
  * Get interest rate and borrow limit of flexible loanable assets. The borrow limit is shown in USD value.
379
389
  *
380
- * Weight: 400
390
+ * Weight(IP): 400
381
391
  *
382
- * @summary Get Flexible Loan Assets Data(USER_DATA)
392
+ * Security Type: USER_DATA
393
+ *
394
+ * @summary Get Flexible Loan Assets Data (USER_DATA)
383
395
  * @param {GetFlexibleLoanAssetsDataRequest} requestParameters Request parameters.
384
396
  * @returns {Promise<RestApiResponse<GetFlexibleLoanAssetsDataResponse>>}
385
397
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
386
398
  * @memberof FlexibleRateApi
387
- * @see {@link https://developers.binance.com/docs/crypto_loan/flexible-rate/market-data/Get-Flexible-Loan-Assets-Data Binance API Documentation}
399
+ * @see {@link https://developers.binance.com/en/docs/catalog/investment-and-services-crypto-loan/api/rest-api/flexible-rate#get-flexible-loan-assets-data Binance API Documentation}
388
400
  */
389
401
  async getFlexibleLoanAssetsData(requestParameters = {}) {
390
402
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.getFlexibleLoanAssetsData(requestParameters?.loanCoin, requestParameters?.recvWindow);
391
403
  return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
392
404
  }
393
405
  /**
394
- * Get Flexible Loan Borrow History
406
+ * Get Flexible Loan Borrow History. It can be used to check history before 2024-02-27 08:00.
407
+ *
408
+ * Weight(IP): 400
395
409
  *
396
- * If startTime and endTime are not sent, the recent 90-day data will be returned.
397
- * The max interval between startTime and endTime is 180 days.
410
+ * Security Type: USER_DATA
398
411
  *
399
- * Weight: 400
412
+ * Notes:
413
+ * - If `startTime` and `endTime` are not sent, the recent 90-day data is returned.
414
+ * - The max interval between `startTime` and `endTime` is 180 days.
400
415
  *
401
- * @summary Get Flexible Loan Borrow History(USER_DATA)
416
+ * @summary Get Flexible Loan Borrow History (USER_DATA)
402
417
  * @param {GetFlexibleLoanBorrowHistoryRequest} requestParameters Request parameters.
403
418
  * @returns {Promise<RestApiResponse<GetFlexibleLoanBorrowHistoryResponse>>}
404
419
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
405
420
  * @memberof FlexibleRateApi
406
- * @see {@link https://developers.binance.com/docs/crypto_loan/flexible-rate/user-information/Get-Flexible-Loan-Borrow-History Binance API Documentation}
421
+ * @see {@link https://developers.binance.com/en/docs/catalog/investment-and-services-crypto-loan/api/rest-api/flexible-rate#get-flexible-loan-borrow-history Binance API Documentation}
407
422
  */
408
423
  async getFlexibleLoanBorrowHistory(requestParameters = {}) {
409
424
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.getFlexibleLoanBorrowHistory(requestParameters?.loanCoin, requestParameters?.collateralCoin, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.current, requestParameters?.limit, requestParameters?.recvWindow);
410
425
  return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
411
426
  }
412
427
  /**
413
- * Get LTV information and collateral limit of flexible loan's collateral assets. The collateral limit is shown in USD value.
428
+ * Get LTV information and collateral limit of flexible loan's collateral assets. The collateral limit is shown in
429
+ * USD value.
414
430
  *
415
- * Weight: 400
431
+ * Weight(IP): 400
416
432
  *
417
- * @summary Get Flexible Loan Collateral Assets Data(USER_DATA)
433
+ * Security Type: USER_DATA
434
+ *
435
+ * @summary Get Flexible Loan Collateral Assets Data (USER_DATA)
418
436
  * @param {GetFlexibleLoanCollateralAssetsDataRequest} requestParameters Request parameters.
419
437
  * @returns {Promise<RestApiResponse<GetFlexibleLoanCollateralAssetsDataResponse>>}
420
438
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
421
439
  * @memberof FlexibleRateApi
422
- * @see {@link https://developers.binance.com/docs/crypto_loan/flexible-rate/market-data/Get-Flexible-Loan-Collateral-Assets-Data Binance API Documentation}
440
+ * @see {@link https://developers.binance.com/en/docs/catalog/investment-and-services-crypto-loan/api/rest-api/flexible-rate#get-flexible-loan-collateral-assets-data Binance API Documentation}
423
441
  */
424
442
  async getFlexibleLoanCollateralAssetsData(requestParameters = {}) {
425
443
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.getFlexibleLoanCollateralAssetsData(requestParameters?.collateralCoin, requestParameters?.recvWindow);
@@ -428,52 +446,61 @@ var FlexibleRateApi = class {
428
446
  /**
429
447
  * Check Flexible Loan interest rate history
430
448
  *
431
- * If startTime and endTime are not sent, the recent 90-day data will be returned
432
- * The max interval between startTime and endTime is 90 days.
433
- * Time based on UTC+0.
449
+ * Weight(IP): 400
450
+ *
451
+ * Security Type: USER_DATA
434
452
  *
435
- * Weight: 400
453
+ * Notes:
454
+ * - If `startTime` and `endTime` are not sent, the recent 90-day data is returned.
455
+ * - The max interval between `startTime` and `endTime` is 90 days.
456
+ * - Time is based on UTC+0.
436
457
  *
437
458
  * @summary Get Flexible Loan Interest Rate History (USER_DATA)
438
459
  * @param {GetFlexibleLoanInterestRateHistoryRequest} requestParameters Request parameters.
439
460
  * @returns {Promise<RestApiResponse<GetFlexibleLoanInterestRateHistoryResponse>>}
440
461
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
441
462
  * @memberof FlexibleRateApi
442
- * @see {@link https://developers.binance.com/docs/crypto_loan/flexible-rate/market-data/Get-Flexible-Loan-Interest-Rate-History Binance API Documentation}
463
+ * @see {@link https://developers.binance.com/en/docs/catalog/investment-and-services-crypto-loan/api/rest-api/flexible-rate#get-flexible-loan-interest-rate-history Binance API Documentation}
443
464
  */
444
465
  async getFlexibleLoanInterestRateHistory(requestParameters) {
445
466
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.getFlexibleLoanInterestRateHistory(requestParameters?.coin, requestParameters?.recvWindow, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.current, requestParameters?.limit);
446
467
  return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
447
468
  }
448
469
  /**
470
+ * Get Flexible Loan Liquidation History
449
471
  *
450
- * Weight: 400
472
+ * Weight(IP): 400
473
+ *
474
+ * Security Type: USER_DATA
451
475
  *
452
476
  * @summary Get Flexible Loan Liquidation History (USER_DATA)
453
477
  * @param {GetFlexibleLoanLiquidationHistoryRequest} requestParameters Request parameters.
454
478
  * @returns {Promise<RestApiResponse<GetFlexibleLoanLiquidationHistoryResponse>>}
455
479
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
456
480
  * @memberof FlexibleRateApi
457
- * @see {@link https://developers.binance.com/docs/crypto_loan/flexible-rate/user-information/Get-Flexible-Loan-Liquidation-History Binance API Documentation}
481
+ * @see {@link https://developers.binance.com/en/docs/catalog/investment-and-services-crypto-loan/api/rest-api/flexible-rate#get-flexible-loan-liquidation-history Binance API Documentation}
458
482
  */
459
483
  async getFlexibleLoanLiquidationHistory(requestParameters = {}) {
460
484
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.getFlexibleLoanLiquidationHistory(requestParameters?.loanCoin, requestParameters?.collateralCoin, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.current, requestParameters?.limit, requestParameters?.recvWindow);
461
485
  return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
462
486
  }
463
487
  /**
464
- * Get Flexible Loan LTV Adjustment History
488
+ * Get Flexible Loan LTV Adjustment History. It can be used to check history before 2024-02-27 08:00.
489
+ *
490
+ * Weight(UID): 400
465
491
  *
466
- * If startTime and endTime are not sent, the recent 90-day data will be returned.
467
- * The max interval between startTime and endTime is 180 days.
492
+ * Security Type: USER_DATA
468
493
  *
469
- * Weight: 400
494
+ * Notes:
495
+ * - If `startTime` and `endTime` are not sent, the recent 90-day data is returned.
496
+ * - The max interval between `startTime` and `endTime` is 180 days.
470
497
  *
471
- * @summary Get Flexible Loan LTV Adjustment History(USER_DATA)
498
+ * @summary Get Flexible Loan LTV Adjustment History (USER_DATA)
472
499
  * @param {GetFlexibleLoanLtvAdjustmentHistoryRequest} requestParameters Request parameters.
473
500
  * @returns {Promise<RestApiResponse<GetFlexibleLoanLtvAdjustmentHistoryResponse>>}
474
501
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
475
502
  * @memberof FlexibleRateApi
476
- * @see {@link https://developers.binance.com/docs/crypto_loan/flexible-rate/user-information/Get-Flexible-Loan-LTV-Adjustment-History Binance API Documentation}
503
+ * @see {@link https://developers.binance.com/en/docs/catalog/investment-and-services-crypto-loan/api/rest-api/flexible-rate#get-flexible-loan-ltv-adjustment-history Binance API Documentation}
477
504
  */
478
505
  async getFlexibleLoanLtvAdjustmentHistory(requestParameters = {}) {
479
506
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.getFlexibleLoanLtvAdjustmentHistory(requestParameters?.loanCoin, requestParameters?.collateralCoin, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.current, requestParameters?.limit, requestParameters?.recvWindow);
@@ -482,46 +509,61 @@ var FlexibleRateApi = class {
482
509
  /**
483
510
  * Get Flexible Loan Ongoing Orders
484
511
  *
485
- * Weight: 300
512
+ * Weight(IP): 300
486
513
  *
487
- * @summary Get Flexible Loan Ongoing Orders(USER_DATA)
514
+ * Security Type: USER_DATA
515
+ *
516
+ * @summary Get Flexible Loan Ongoing Orders (USER_DATA)
488
517
  * @param {GetFlexibleLoanOngoingOrdersRequest} requestParameters Request parameters.
489
518
  * @returns {Promise<RestApiResponse<GetFlexibleLoanOngoingOrdersResponse>>}
490
519
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
491
520
  * @memberof FlexibleRateApi
492
- * @see {@link https://developers.binance.com/docs/crypto_loan/flexible-rate/user-information/Get-Flexible-Loan-Ongoing-Orders Binance API Documentation}
521
+ * @see {@link https://developers.binance.com/en/docs/catalog/investment-and-services-crypto-loan/api/rest-api/flexible-rate#get-flexible-loan-ongoing-orders Binance API Documentation}
493
522
  */
494
523
  async getFlexibleLoanOngoingOrders(requestParameters = {}) {
495
524
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.getFlexibleLoanOngoingOrders(requestParameters?.loanCoin, requestParameters?.collateralCoin, requestParameters?.current, requestParameters?.limit, requestParameters?.recvWindow);
496
525
  return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
497
526
  }
498
527
  /**
499
- * Get Flexible Loan Repayment History
528
+ * Get Flexible Loan Repayment History. It can be used to check history before 2024-02-27 08:00.
529
+ *
530
+ * Weight(IP): 400
500
531
  *
501
- * If startTime and endTime are not sent, the recent 90-day data will be returned.
502
- * The max interval between startTime and endTime is 180 days.
532
+ * Security Type: USER_DATA
503
533
  *
504
- * Weight: 400
534
+ * Notes:
535
+ * - If `startTime` and `endTime` are not sent, the recent 90-day data is returned.
536
+ * - The max interval between `startTime` and `endTime` is 180 days.
505
537
  *
506
- * @summary Get Flexible Loan Repayment History(USER_DATA)
538
+ * @summary Get Flexible Loan Repayment History (USER_DATA)
507
539
  * @param {GetFlexibleLoanRepaymentHistoryRequest} requestParameters Request parameters.
508
540
  * @returns {Promise<RestApiResponse<GetFlexibleLoanRepaymentHistoryResponse>>}
509
541
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
510
542
  * @memberof FlexibleRateApi
511
- * @see {@link https://developers.binance.com/docs/crypto_loan/flexible-rate/user-information/Get-Flexible-Loan-Repayment-History Binance API Documentation}
543
+ * @see {@link https://developers.binance.com/en/docs/catalog/investment-and-services-crypto-loan/api/rest-api/flexible-rate#get-flexible-loan-repayment-history Binance API Documentation}
512
544
  */
513
545
  async getFlexibleLoanRepaymentHistory(requestParameters = {}) {
514
546
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.getFlexibleLoanRepaymentHistory(requestParameters?.loanCoin, requestParameters?.collateralCoin, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.current, requestParameters?.limit, requestParameters?.recvWindow);
515
547
  return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
516
548
  }
517
549
  };
550
+ let FlexibleLoanAdjustLtvDirectionEnum = /* @__PURE__ */ function(FlexibleLoanAdjustLtvDirectionEnum$1) {
551
+ FlexibleLoanAdjustLtvDirectionEnum$1["ADDITIONAL"] = "ADDITIONAL";
552
+ FlexibleLoanAdjustLtvDirectionEnum$1["REDUCED"] = "REDUCED";
553
+ return FlexibleLoanAdjustLtvDirectionEnum$1;
554
+ }({});
555
+ let FlexibleLoanRepayRepaymentTypeEnum = /* @__PURE__ */ function(FlexibleLoanRepayRepaymentTypeEnum$1) {
556
+ FlexibleLoanRepayRepaymentTypeEnum$1[FlexibleLoanRepayRepaymentTypeEnum$1["REPAYMENT_TYPE_1"] = 1] = "REPAYMENT_TYPE_1";
557
+ FlexibleLoanRepayRepaymentTypeEnum$1[FlexibleLoanRepayRepaymentTypeEnum$1["REPAYMENT_TYPE_2"] = 2] = "REPAYMENT_TYPE_2";
558
+ return FlexibleLoanRepayRepaymentTypeEnum$1;
559
+ }({});
518
560
 
519
561
  //#endregion
520
562
  //#region src/rest-api/modules/stable-rate-api.ts
521
563
  /**
522
- * Binance Crypto Loan REST API
564
+ * Crypto Loan REST API
523
565
  *
524
- * OpenAPI Specification for the Binance Crypto Loan REST API
566
+ * Access Binance Crypto Loans to query assets, subscribe to loans, and manage loan positions.
525
567
  *
526
568
  * The version of the OpenAPI document: 1.0.0
527
569
  *
@@ -535,28 +577,6 @@ var FlexibleRateApi = class {
535
577
  */
536
578
  const StableRateApiAxiosParamCreator = function(configuration) {
537
579
  return {
538
- checkCollateralRepayRateStableRate: async (loanCoin, collateralCoin, repayAmount, recvWindow) => {
539
- (0, __binance_common.assertParamExists)("checkCollateralRepayRateStableRate", "loanCoin", loanCoin);
540
- (0, __binance_common.assertParamExists)("checkCollateralRepayRateStableRate", "collateralCoin", collateralCoin);
541
- (0, __binance_common.assertParamExists)("checkCollateralRepayRateStableRate", "repayAmount", repayAmount);
542
- const localVarQueryParameter = {};
543
- const localVarBodyParameter = {};
544
- const localVarHeaderParameter = {};
545
- if (loanCoin !== void 0 && loanCoin !== null) localVarQueryParameter["loanCoin"] = loanCoin;
546
- if (collateralCoin !== void 0 && collateralCoin !== null) localVarQueryParameter["collateralCoin"] = collateralCoin;
547
- if (repayAmount !== void 0 && repayAmount !== null) localVarQueryParameter["repayAmount"] = repayAmount;
548
- if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
549
- let _timeUnit;
550
- if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
551
- return {
552
- endpoint: "/sapi/v1/loan/repay/collateral/rate",
553
- method: "GET",
554
- queryParams: localVarQueryParameter,
555
- bodyParams: localVarBodyParameter,
556
- headerParams: localVarHeaderParameter,
557
- timeUnit: _timeUnit
558
- };
559
- },
560
580
  getCryptoLoansIncomeHistory: async (asset, type, startTime, endTime, limit, recvWindow) => {
561
581
  const localVarQueryParameter = {};
562
582
  const localVarBodyParameter = {};
@@ -659,35 +679,22 @@ var StableRateApi = class {
659
679
  this.localVarAxiosParamCreator = StableRateApiAxiosParamCreator(configuration);
660
680
  }
661
681
  /**
662
- * Get the the rate of collateral coin / loan coin when using collateral repay, the rate will be valid within 8 second.
663
- *
664
- * Weight: 6000
665
- *
666
- * @summary Check Collateral Repay Rate(USER_DATA)
667
- * @param {CheckCollateralRepayRateStableRateRequest} requestParameters Request parameters.
668
- * @returns {Promise<RestApiResponse<CheckCollateralRepayRateStableRateResponse>>}
669
- * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
670
- * @memberof StableRateApi
671
- * @see {@link https://developers.binance.com/docs/crypto_loan/stable-rate/market-data/Check-Collateral-Repay-Rate Binance API Documentation}
672
- */
673
- async checkCollateralRepayRateStableRate(requestParameters) {
674
- const localVarAxiosArgs = await this.localVarAxiosParamCreator.checkCollateralRepayRateStableRate(requestParameters?.loanCoin, requestParameters?.collateralCoin, requestParameters?.repayAmount, requestParameters?.recvWindow);
675
- return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
676
- }
677
- /**
678
682
  * Get Crypto Loans Income History
679
683
  *
680
- * If startTime and endTime are not sent, the recent 7-day data will be returned.
681
- * The max interval between startTime and endTime is 30 days.
684
+ * Weight(UID): 6000
685
+ *
686
+ * Security Type: USER_DATA
682
687
  *
683
- * Weight: 6000
688
+ * Notes:
689
+ * - If `startTime` and `endTime` are both omitted, the most recent 7 days of data are returned.
690
+ * - The maximum interval between `startTime` and `endTime` is 30 days.
684
691
  *
685
- * @summary Get Crypto Loans Income History(USER_DATA)
692
+ * @summary Get Crypto Loans Income History (USER_DATA)
686
693
  * @param {GetCryptoLoansIncomeHistoryRequest} requestParameters Request parameters.
687
694
  * @returns {Promise<RestApiResponse<GetCryptoLoansIncomeHistoryResponse>>}
688
695
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
689
696
  * @memberof StableRateApi
690
- * @see {@link https://developers.binance.com/docs/crypto_loan/stable-rate/market-data/Get-Crypto-Loans-Income-History Binance API Documentation}
697
+ * @see {@link https://developers.binance.com/en/docs/catalog/investment-and-services-crypto-loan/api/rest-api/stable-rate#get-crypto-loans-income-history Binance API Documentation}
691
698
  */
692
699
  async getCryptoLoansIncomeHistory(requestParameters = {}) {
693
700
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.getCryptoLoansIncomeHistory(requestParameters?.asset, requestParameters?.type, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.limit, requestParameters?.recvWindow);
@@ -696,17 +703,20 @@ var StableRateApi = class {
696
703
  /**
697
704
  * Get Loan Borrow History
698
705
  *
699
- * If startTime and endTime are not sent, the recent 90-day data will be returned.
700
- * The max interval between startTime and endTime is 180 days.
706
+ * Weight(IP): 400
701
707
  *
702
- * Weight: 400
708
+ * Security Type: USER_DATA
703
709
  *
704
- * @summary Get Loan Borrow History(USER_DATA)
710
+ * Notes:
711
+ * - If `startTime` and `endTime` are not sent, the recent 90-day data is returned.
712
+ * - The max interval between `startTime` and `endTime` is 180 days.
713
+ *
714
+ * @summary Get Loan Borrow History (USER_DATA)
705
715
  * @param {GetLoanBorrowHistoryRequest} requestParameters Request parameters.
706
716
  * @returns {Promise<RestApiResponse<GetLoanBorrowHistoryResponse>>}
707
717
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
708
718
  * @memberof StableRateApi
709
- * @see {@link https://developers.binance.com/docs/crypto_loan/stable-rate/user-information/Get-Loan-Borrow-History Binance API Documentation}
719
+ * @see {@link https://developers.binance.com/en/docs/catalog/investment-and-services-crypto-loan/api/rest-api/stable-rate#get-loan-borrow-history Binance API Documentation}
710
720
  */
711
721
  async getLoanBorrowHistory(requestParameters = {}) {
712
722
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.getLoanBorrowHistory(requestParameters?.orderId, requestParameters?.loanCoin, requestParameters?.collateralCoin, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.current, requestParameters?.limit, requestParameters?.recvWindow);
@@ -715,17 +725,20 @@ var StableRateApi = class {
715
725
  /**
716
726
  * Get Loan LTV Adjustment History
717
727
  *
718
- * If startTime and endTime are not sent, the recent 90-day data will be returned.
719
- * The max interval between startTime and endTime is 180 days.
728
+ * Weight(IP): 400
729
+ *
730
+ * Security Type: USER_DATA
720
731
  *
721
- * Weight: 400
732
+ * Notes:
733
+ * - If `startTime` and `endTime` are not sent, the recent 90-day data is returned.
734
+ * - The max interval between `startTime` and `endTime` is 180 days.
722
735
  *
723
- * @summary Get Loan LTV Adjustment History(USER_DATA)
736
+ * @summary Get Loan LTV Adjustment History (USER_DATA)
724
737
  * @param {GetLoanLtvAdjustmentHistoryRequest} requestParameters Request parameters.
725
738
  * @returns {Promise<RestApiResponse<GetLoanLtvAdjustmentHistoryResponse>>}
726
739
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
727
740
  * @memberof StableRateApi
728
- * @see {@link https://developers.binance.com/docs/crypto_loan/stable-rate/user-information/Get-Loan-LTV-Adjustment-History Binance API Documentation}
741
+ * @see {@link https://developers.binance.com/en/docs/catalog/investment-and-services-crypto-loan/api/rest-api/stable-rate#get-loan-ltv-adjustment-history Binance API Documentation}
729
742
  */
730
743
  async getLoanLtvAdjustmentHistory(requestParameters = {}) {
731
744
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.getLoanLtvAdjustmentHistory(requestParameters?.orderId, requestParameters?.loanCoin, requestParameters?.collateralCoin, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.current, requestParameters?.limit, requestParameters?.recvWindow);
@@ -734,30 +747,43 @@ var StableRateApi = class {
734
747
  /**
735
748
  * Get Loan Repayment History
736
749
  *
737
- * If startTime and endTime are not sent, the recent 90-day data will be returned.
738
- * The max interval between startTime and endTime is 180 days.
750
+ * Weight(IP): 400
739
751
  *
740
- * Weight: 400
752
+ * Security Type: USER_DATA
741
753
  *
742
- * @summary Get Loan Repayment History(USER_DATA)
754
+ * Notes:
755
+ * - If `startTime` and `endTime` are not sent, the recent 90-day data is returned.
756
+ * - The max interval between `startTime` and `endTime` is 180 days.
757
+ *
758
+ * @summary Get Loan Repayment History (USER_DATA)
743
759
  * @param {GetLoanRepaymentHistoryRequest} requestParameters Request parameters.
744
760
  * @returns {Promise<RestApiResponse<GetLoanRepaymentHistoryResponse>>}
745
761
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
746
762
  * @memberof StableRateApi
747
- * @see {@link https://developers.binance.com/docs/crypto_loan/stable-rate/user-information/Get-Loan-Repayment-History Binance API Documentation}
763
+ * @see {@link https://developers.binance.com/en/docs/catalog/investment-and-services-crypto-loan/api/rest-api/stable-rate#get-loan-repayment-history Binance API Documentation}
748
764
  */
749
765
  async getLoanRepaymentHistory(requestParameters = {}) {
750
766
  const localVarAxiosArgs = await this.localVarAxiosParamCreator.getLoanRepaymentHistory(requestParameters?.orderId, requestParameters?.loanCoin, requestParameters?.collateralCoin, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.current, requestParameters?.limit, requestParameters?.recvWindow);
751
767
  return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
752
768
  }
753
769
  };
770
+ let GetCryptoLoansIncomeHistoryTypeEnum = /* @__PURE__ */ function(GetCryptoLoansIncomeHistoryTypeEnum$1) {
771
+ GetCryptoLoansIncomeHistoryTypeEnum$1["borrowIn"] = "borrowIn";
772
+ GetCryptoLoansIncomeHistoryTypeEnum$1["collateralSpent"] = "collateralSpent";
773
+ GetCryptoLoansIncomeHistoryTypeEnum$1["repayAmount"] = "repayAmount";
774
+ GetCryptoLoansIncomeHistoryTypeEnum$1["collateralReturn"] = "collateralReturn";
775
+ GetCryptoLoansIncomeHistoryTypeEnum$1["addCollateral"] = "addCollateral";
776
+ GetCryptoLoansIncomeHistoryTypeEnum$1["removeCollateral"] = "removeCollateral";
777
+ GetCryptoLoansIncomeHistoryTypeEnum$1["collateralReturnAfterLiquidation"] = "collateralReturnAfterLiquidation";
778
+ return GetCryptoLoansIncomeHistoryTypeEnum$1;
779
+ }({});
754
780
 
755
781
  //#endregion
756
782
  //#region src/rest-api/rest-api.ts
757
783
  /**
758
- * Binance Crypto Loan REST API
784
+ * Crypto Loan REST API
759
785
  *
760
- * OpenAPI Specification for the Binance Crypto Loan REST API
786
+ * Access Binance Crypto Loans to query assets, subscribe to loans, and manage loan positions.
761
787
  *
762
788
  * The version of the OpenAPI document: 1.0.0
763
789
  *
@@ -797,15 +823,18 @@ var RestAPI = class {
797
823
  return (0, __binance_common.sendRequest)(this.configuration, endpoint, method, queryParams, bodyParams, void 0, void 0, { isSigned: true });
798
824
  }
799
825
  /**
826
+ * Get the latest rate of collateral coin/loan coin when using collateral repay.
827
+ *
828
+ * Weight(IP): 6000
800
829
  *
801
- * Weight: 6000
830
+ * Security Type: USER_DATA
802
831
  *
803
- * @summary Check Collateral Repay Rate (USER_DATA)
832
+ * @summary Check Collateral Flexible Repay Rate (USER_DATA)
804
833
  * @param {CheckCollateralRepayRateRequest} requestParameters Request parameters.
805
834
  *
806
835
  * @returns {Promise<RestApiResponse<CheckCollateralRepayRateResponse>>}
807
836
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
808
- * @see {@link https://developers.binance.com/docs/crypto_loan/flexible-rate/user-information/Check-Collateral-Repay-Rate Binance API Documentation}
837
+ * @see {@link https://developers.binance.com/en/docs/catalog/investment-and-services-crypto-loan/api/rest-api/flexible-rate#check-collateral-repay-rate Binance API Documentation}
809
838
  */
810
839
  checkCollateralRepayRate(requestParameters) {
811
840
  return this.flexibleRateApi.checkCollateralRepayRate(requestParameters);
@@ -813,16 +842,19 @@ var RestAPI = class {
813
842
  /**
814
843
  * Flexible Loan Adjust LTV
815
844
  *
816
- * API Key needs Spot & Margin Trading permission for this endpoint
845
+ * Weight(UID): 6000
817
846
  *
818
- * Weight: 6000
847
+ * Security Type: TRADE
819
848
  *
820
- * @summary Flexible Loan Adjust LTV(TRADE)
849
+ * Notes:
850
+ * - API key needs Spot & Margin Trading permission for this endpoint.
851
+ *
852
+ * @summary Flexible Loan Adjust LTV (TRADE)
821
853
  * @param {FlexibleLoanAdjustLtvRequest} requestParameters Request parameters.
822
854
  *
823
855
  * @returns {Promise<RestApiResponse<FlexibleLoanAdjustLtvResponse>>}
824
856
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
825
- * @see {@link https://developers.binance.com/docs/crypto_loan/flexible-rate/trade/Flexible-Loan-Adjust-LTV Binance API Documentation}
857
+ * @see {@link https://developers.binance.com/en/docs/catalog/investment-and-services-crypto-loan/api/rest-api/flexible-rate#flexible-loan-adjust-ltv Binance API Documentation}
826
858
  */
827
859
  flexibleLoanAdjustLtv(requestParameters) {
828
860
  return this.flexibleRateApi.flexibleLoanAdjustLtv(requestParameters);
@@ -830,18 +862,20 @@ var RestAPI = class {
830
862
  /**
831
863
  * Borrow Flexible Loan
832
864
  *
865
+ * Weight(IP): 6000
833
866
  *
834
- * This API endpoint is available for both the master account and the sub-account.
835
- * You can customize LTV by entering loanAmount and collateralAmount.
867
+ * Security Type: TRADE
836
868
  *
837
- * Weight: 6000
869
+ * Notes:
870
+ * - This endpoint is available for both master and sub-accounts.
871
+ * - You can customize LTV by entering `loanAmount` and `collateralAmount`.
838
872
  *
839
- * @summary Flexible Loan Borrow(TRADE)
873
+ * @summary Flexible Loan Borrow (TRADE)
840
874
  * @param {FlexibleLoanBorrowRequest} requestParameters Request parameters.
841
875
  *
842
876
  * @returns {Promise<RestApiResponse<FlexibleLoanBorrowResponse>>}
843
877
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
844
- * @see {@link https://developers.binance.com/docs/crypto_loan/flexible-rate/trade/Flexible-Loan-Borrow Binance API Documentation}
878
+ * @see {@link https://developers.binance.com/en/docs/catalog/investment-and-services-crypto-loan/api/rest-api/flexible-rate#flexible-loan-borrow Binance API Documentation}
845
879
  */
846
880
  flexibleLoanBorrow(requestParameters) {
847
881
  return this.flexibleRateApi.flexibleLoanBorrow(requestParameters);
@@ -849,17 +883,19 @@ var RestAPI = class {
849
883
  /**
850
884
  * Flexible Loan Repay
851
885
  *
886
+ * Weight(IP): 6000
852
887
  *
853
- * repayAmount is mandatory even fullRepayment = FALSE
888
+ * Security Type: TRADE
854
889
  *
855
- * Weight: 6000
890
+ * Notes:
891
+ * - `repayAmount` is mandatory even when `fullRepayment = FALSE`.
856
892
  *
857
- * @summary Flexible Loan Repay(TRADE)
893
+ * @summary Flexible Loan Repay (TRADE)
858
894
  * @param {FlexibleLoanRepayRequest} requestParameters Request parameters.
859
895
  *
860
896
  * @returns {Promise<RestApiResponse<FlexibleLoanRepayResponse>>}
861
897
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
862
- * @see {@link https://developers.binance.com/docs/crypto_loan/flexible-rate/trade/Flexible-Loan-Repay Binance API Documentation}
898
+ * @see {@link https://developers.binance.com/en/docs/catalog/investment-and-services-crypto-loan/api/rest-api/flexible-rate#flexible-loan-repay Binance API Documentation}
863
899
  */
864
900
  flexibleLoanRepay(requestParameters) {
865
901
  return this.flexibleRateApi.flexibleLoanRepay(requestParameters);
@@ -867,47 +903,55 @@ var RestAPI = class {
867
903
  /**
868
904
  * Get interest rate and borrow limit of flexible loanable assets. The borrow limit is shown in USD value.
869
905
  *
870
- * Weight: 400
906
+ * Weight(IP): 400
907
+ *
908
+ * Security Type: USER_DATA
871
909
  *
872
- * @summary Get Flexible Loan Assets Data(USER_DATA)
910
+ * @summary Get Flexible Loan Assets Data (USER_DATA)
873
911
  * @param {GetFlexibleLoanAssetsDataRequest} requestParameters Request parameters.
874
912
  *
875
913
  * @returns {Promise<RestApiResponse<GetFlexibleLoanAssetsDataResponse>>}
876
914
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
877
- * @see {@link https://developers.binance.com/docs/crypto_loan/flexible-rate/market-data/Get-Flexible-Loan-Assets-Data Binance API Documentation}
915
+ * @see {@link https://developers.binance.com/en/docs/catalog/investment-and-services-crypto-loan/api/rest-api/flexible-rate#get-flexible-loan-assets-data Binance API Documentation}
878
916
  */
879
917
  getFlexibleLoanAssetsData(requestParameters = {}) {
880
918
  return this.flexibleRateApi.getFlexibleLoanAssetsData(requestParameters);
881
919
  }
882
920
  /**
883
- * Get Flexible Loan Borrow History
921
+ * Get Flexible Loan Borrow History. It can be used to check history before 2024-02-27 08:00.
884
922
  *
885
- * If startTime and endTime are not sent, the recent 90-day data will be returned.
886
- * The max interval between startTime and endTime is 180 days.
923
+ * Weight(IP): 400
887
924
  *
888
- * Weight: 400
925
+ * Security Type: USER_DATA
889
926
  *
890
- * @summary Get Flexible Loan Borrow History(USER_DATA)
927
+ * Notes:
928
+ * - If `startTime` and `endTime` are not sent, the recent 90-day data is returned.
929
+ * - The max interval between `startTime` and `endTime` is 180 days.
930
+ *
931
+ * @summary Get Flexible Loan Borrow History (USER_DATA)
891
932
  * @param {GetFlexibleLoanBorrowHistoryRequest} requestParameters Request parameters.
892
933
  *
893
934
  * @returns {Promise<RestApiResponse<GetFlexibleLoanBorrowHistoryResponse>>}
894
935
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
895
- * @see {@link https://developers.binance.com/docs/crypto_loan/flexible-rate/user-information/Get-Flexible-Loan-Borrow-History Binance API Documentation}
936
+ * @see {@link https://developers.binance.com/en/docs/catalog/investment-and-services-crypto-loan/api/rest-api/flexible-rate#get-flexible-loan-borrow-history Binance API Documentation}
896
937
  */
897
938
  getFlexibleLoanBorrowHistory(requestParameters = {}) {
898
939
  return this.flexibleRateApi.getFlexibleLoanBorrowHistory(requestParameters);
899
940
  }
900
941
  /**
901
- * Get LTV information and collateral limit of flexible loan's collateral assets. The collateral limit is shown in USD value.
942
+ * Get LTV information and collateral limit of flexible loan's collateral assets. The collateral limit is shown in
943
+ * USD value.
944
+ *
945
+ * Weight(IP): 400
902
946
  *
903
- * Weight: 400
947
+ * Security Type: USER_DATA
904
948
  *
905
- * @summary Get Flexible Loan Collateral Assets Data(USER_DATA)
949
+ * @summary Get Flexible Loan Collateral Assets Data (USER_DATA)
906
950
  * @param {GetFlexibleLoanCollateralAssetsDataRequest} requestParameters Request parameters.
907
951
  *
908
952
  * @returns {Promise<RestApiResponse<GetFlexibleLoanCollateralAssetsDataResponse>>}
909
953
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
910
- * @see {@link https://developers.binance.com/docs/crypto_loan/flexible-rate/market-data/Get-Flexible-Loan-Collateral-Assets-Data Binance API Documentation}
954
+ * @see {@link https://developers.binance.com/en/docs/catalog/investment-and-services-crypto-loan/api/rest-api/flexible-rate#get-flexible-loan-collateral-assets-data Binance API Documentation}
911
955
  */
912
956
  getFlexibleLoanCollateralAssetsData(requestParameters = {}) {
913
957
  return this.flexibleRateApi.getFlexibleLoanCollateralAssetsData(requestParameters);
@@ -915,50 +959,59 @@ var RestAPI = class {
915
959
  /**
916
960
  * Check Flexible Loan interest rate history
917
961
  *
918
- * If startTime and endTime are not sent, the recent 90-day data will be returned
919
- * The max interval between startTime and endTime is 90 days.
920
- * Time based on UTC+0.
962
+ * Weight(IP): 400
963
+ *
964
+ * Security Type: USER_DATA
921
965
  *
922
- * Weight: 400
966
+ * Notes:
967
+ * - If `startTime` and `endTime` are not sent, the recent 90-day data is returned.
968
+ * - The max interval between `startTime` and `endTime` is 90 days.
969
+ * - Time is based on UTC+0.
923
970
  *
924
971
  * @summary Get Flexible Loan Interest Rate History (USER_DATA)
925
972
  * @param {GetFlexibleLoanInterestRateHistoryRequest} requestParameters Request parameters.
926
973
  *
927
974
  * @returns {Promise<RestApiResponse<GetFlexibleLoanInterestRateHistoryResponse>>}
928
975
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
929
- * @see {@link https://developers.binance.com/docs/crypto_loan/flexible-rate/market-data/Get-Flexible-Loan-Interest-Rate-History Binance API Documentation}
976
+ * @see {@link https://developers.binance.com/en/docs/catalog/investment-and-services-crypto-loan/api/rest-api/flexible-rate#get-flexible-loan-interest-rate-history Binance API Documentation}
930
977
  */
931
978
  getFlexibleLoanInterestRateHistory(requestParameters) {
932
979
  return this.flexibleRateApi.getFlexibleLoanInterestRateHistory(requestParameters);
933
980
  }
934
981
  /**
982
+ * Get Flexible Loan Liquidation History
935
983
  *
936
- * Weight: 400
984
+ * Weight(IP): 400
985
+ *
986
+ * Security Type: USER_DATA
937
987
  *
938
988
  * @summary Get Flexible Loan Liquidation History (USER_DATA)
939
989
  * @param {GetFlexibleLoanLiquidationHistoryRequest} requestParameters Request parameters.
940
990
  *
941
991
  * @returns {Promise<RestApiResponse<GetFlexibleLoanLiquidationHistoryResponse>>}
942
992
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
943
- * @see {@link https://developers.binance.com/docs/crypto_loan/flexible-rate/user-information/Get-Flexible-Loan-Liquidation-History Binance API Documentation}
993
+ * @see {@link https://developers.binance.com/en/docs/catalog/investment-and-services-crypto-loan/api/rest-api/flexible-rate#get-flexible-loan-liquidation-history Binance API Documentation}
944
994
  */
945
995
  getFlexibleLoanLiquidationHistory(requestParameters = {}) {
946
996
  return this.flexibleRateApi.getFlexibleLoanLiquidationHistory(requestParameters);
947
997
  }
948
998
  /**
949
- * Get Flexible Loan LTV Adjustment History
999
+ * Get Flexible Loan LTV Adjustment History. It can be used to check history before 2024-02-27 08:00.
1000
+ *
1001
+ * Weight(UID): 400
950
1002
  *
951
- * If startTime and endTime are not sent, the recent 90-day data will be returned.
952
- * The max interval between startTime and endTime is 180 days.
1003
+ * Security Type: USER_DATA
953
1004
  *
954
- * Weight: 400
1005
+ * Notes:
1006
+ * - If `startTime` and `endTime` are not sent, the recent 90-day data is returned.
1007
+ * - The max interval between `startTime` and `endTime` is 180 days.
955
1008
  *
956
- * @summary Get Flexible Loan LTV Adjustment History(USER_DATA)
1009
+ * @summary Get Flexible Loan LTV Adjustment History (USER_DATA)
957
1010
  * @param {GetFlexibleLoanLtvAdjustmentHistoryRequest} requestParameters Request parameters.
958
1011
  *
959
1012
  * @returns {Promise<RestApiResponse<GetFlexibleLoanLtvAdjustmentHistoryResponse>>}
960
1013
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
961
- * @see {@link https://developers.binance.com/docs/crypto_loan/flexible-rate/user-information/Get-Flexible-Loan-LTV-Adjustment-History Binance API Documentation}
1014
+ * @see {@link https://developers.binance.com/en/docs/catalog/investment-and-services-crypto-loan/api/rest-api/flexible-rate#get-flexible-loan-ltv-adjustment-history Binance API Documentation}
962
1015
  */
963
1016
  getFlexibleLoanLtvAdjustmentHistory(requestParameters = {}) {
964
1017
  return this.flexibleRateApi.getFlexibleLoanLtvAdjustmentHistory(requestParameters);
@@ -966,65 +1019,58 @@ var RestAPI = class {
966
1019
  /**
967
1020
  * Get Flexible Loan Ongoing Orders
968
1021
  *
969
- * Weight: 300
1022
+ * Weight(IP): 300
970
1023
  *
971
- * @summary Get Flexible Loan Ongoing Orders(USER_DATA)
1024
+ * Security Type: USER_DATA
1025
+ *
1026
+ * @summary Get Flexible Loan Ongoing Orders (USER_DATA)
972
1027
  * @param {GetFlexibleLoanOngoingOrdersRequest} requestParameters Request parameters.
973
1028
  *
974
1029
  * @returns {Promise<RestApiResponse<GetFlexibleLoanOngoingOrdersResponse>>}
975
1030
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
976
- * @see {@link https://developers.binance.com/docs/crypto_loan/flexible-rate/user-information/Get-Flexible-Loan-Ongoing-Orders Binance API Documentation}
1031
+ * @see {@link https://developers.binance.com/en/docs/catalog/investment-and-services-crypto-loan/api/rest-api/flexible-rate#get-flexible-loan-ongoing-orders Binance API Documentation}
977
1032
  */
978
1033
  getFlexibleLoanOngoingOrders(requestParameters = {}) {
979
1034
  return this.flexibleRateApi.getFlexibleLoanOngoingOrders(requestParameters);
980
1035
  }
981
1036
  /**
982
- * Get Flexible Loan Repayment History
1037
+ * Get Flexible Loan Repayment History. It can be used to check history before 2024-02-27 08:00.
1038
+ *
1039
+ * Weight(IP): 400
983
1040
  *
984
- * If startTime and endTime are not sent, the recent 90-day data will be returned.
985
- * The max interval between startTime and endTime is 180 days.
1041
+ * Security Type: USER_DATA
986
1042
  *
987
- * Weight: 400
1043
+ * Notes:
1044
+ * - If `startTime` and `endTime` are not sent, the recent 90-day data is returned.
1045
+ * - The max interval between `startTime` and `endTime` is 180 days.
988
1046
  *
989
- * @summary Get Flexible Loan Repayment History(USER_DATA)
1047
+ * @summary Get Flexible Loan Repayment History (USER_DATA)
990
1048
  * @param {GetFlexibleLoanRepaymentHistoryRequest} requestParameters Request parameters.
991
1049
  *
992
1050
  * @returns {Promise<RestApiResponse<GetFlexibleLoanRepaymentHistoryResponse>>}
993
1051
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
994
- * @see {@link https://developers.binance.com/docs/crypto_loan/flexible-rate/user-information/Get-Flexible-Loan-Repayment-History Binance API Documentation}
1052
+ * @see {@link https://developers.binance.com/en/docs/catalog/investment-and-services-crypto-loan/api/rest-api/flexible-rate#get-flexible-loan-repayment-history Binance API Documentation}
995
1053
  */
996
1054
  getFlexibleLoanRepaymentHistory(requestParameters = {}) {
997
1055
  return this.flexibleRateApi.getFlexibleLoanRepaymentHistory(requestParameters);
998
1056
  }
999
1057
  /**
1000
- * Get the the rate of collateral coin / loan coin when using collateral repay, the rate will be valid within 8 second.
1001
- *
1002
- * Weight: 6000
1003
- *
1004
- * @summary Check Collateral Repay Rate(USER_DATA)
1005
- * @param {CheckCollateralRepayRateStableRateRequest} requestParameters Request parameters.
1006
- *
1007
- * @returns {Promise<RestApiResponse<CheckCollateralRepayRateStableRateResponse>>}
1008
- * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1009
- * @see {@link https://developers.binance.com/docs/crypto_loan/stable-rate/market-data/Check-Collateral-Repay-Rate Binance API Documentation}
1010
- */
1011
- checkCollateralRepayRateStableRate(requestParameters) {
1012
- return this.stableRateApi.checkCollateralRepayRateStableRate(requestParameters);
1013
- }
1014
- /**
1015
1058
  * Get Crypto Loans Income History
1016
1059
  *
1017
- * If startTime and endTime are not sent, the recent 7-day data will be returned.
1018
- * The max interval between startTime and endTime is 30 days.
1060
+ * Weight(UID): 6000
1061
+ *
1062
+ * Security Type: USER_DATA
1019
1063
  *
1020
- * Weight: 6000
1064
+ * Notes:
1065
+ * - If `startTime` and `endTime` are both omitted, the most recent 7 days of data are returned.
1066
+ * - The maximum interval between `startTime` and `endTime` is 30 days.
1021
1067
  *
1022
- * @summary Get Crypto Loans Income History(USER_DATA)
1068
+ * @summary Get Crypto Loans Income History (USER_DATA)
1023
1069
  * @param {GetCryptoLoansIncomeHistoryRequest} requestParameters Request parameters.
1024
1070
  *
1025
1071
  * @returns {Promise<RestApiResponse<GetCryptoLoansIncomeHistoryResponse>>}
1026
1072
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1027
- * @see {@link https://developers.binance.com/docs/crypto_loan/stable-rate/market-data/Get-Crypto-Loans-Income-History Binance API Documentation}
1073
+ * @see {@link https://developers.binance.com/en/docs/catalog/investment-and-services-crypto-loan/api/rest-api/stable-rate#get-crypto-loans-income-history Binance API Documentation}
1028
1074
  */
1029
1075
  getCryptoLoansIncomeHistory(requestParameters = {}) {
1030
1076
  return this.stableRateApi.getCryptoLoansIncomeHistory(requestParameters);
@@ -1032,17 +1078,20 @@ var RestAPI = class {
1032
1078
  /**
1033
1079
  * Get Loan Borrow History
1034
1080
  *
1035
- * If startTime and endTime are not sent, the recent 90-day data will be returned.
1036
- * The max interval between startTime and endTime is 180 days.
1081
+ * Weight(IP): 400
1037
1082
  *
1038
- * Weight: 400
1083
+ * Security Type: USER_DATA
1039
1084
  *
1040
- * @summary Get Loan Borrow History(USER_DATA)
1085
+ * Notes:
1086
+ * - If `startTime` and `endTime` are not sent, the recent 90-day data is returned.
1087
+ * - The max interval between `startTime` and `endTime` is 180 days.
1088
+ *
1089
+ * @summary Get Loan Borrow History (USER_DATA)
1041
1090
  * @param {GetLoanBorrowHistoryRequest} requestParameters Request parameters.
1042
1091
  *
1043
1092
  * @returns {Promise<RestApiResponse<GetLoanBorrowHistoryResponse>>}
1044
1093
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1045
- * @see {@link https://developers.binance.com/docs/crypto_loan/stable-rate/user-information/Get-Loan-Borrow-History Binance API Documentation}
1094
+ * @see {@link https://developers.binance.com/en/docs/catalog/investment-and-services-crypto-loan/api/rest-api/stable-rate#get-loan-borrow-history Binance API Documentation}
1046
1095
  */
1047
1096
  getLoanBorrowHistory(requestParameters = {}) {
1048
1097
  return this.stableRateApi.getLoanBorrowHistory(requestParameters);
@@ -1050,17 +1099,20 @@ var RestAPI = class {
1050
1099
  /**
1051
1100
  * Get Loan LTV Adjustment History
1052
1101
  *
1053
- * If startTime and endTime are not sent, the recent 90-day data will be returned.
1054
- * The max interval between startTime and endTime is 180 days.
1102
+ * Weight(IP): 400
1103
+ *
1104
+ * Security Type: USER_DATA
1055
1105
  *
1056
- * Weight: 400
1106
+ * Notes:
1107
+ * - If `startTime` and `endTime` are not sent, the recent 90-day data is returned.
1108
+ * - The max interval between `startTime` and `endTime` is 180 days.
1057
1109
  *
1058
- * @summary Get Loan LTV Adjustment History(USER_DATA)
1110
+ * @summary Get Loan LTV Adjustment History (USER_DATA)
1059
1111
  * @param {GetLoanLtvAdjustmentHistoryRequest} requestParameters Request parameters.
1060
1112
  *
1061
1113
  * @returns {Promise<RestApiResponse<GetLoanLtvAdjustmentHistoryResponse>>}
1062
1114
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1063
- * @see {@link https://developers.binance.com/docs/crypto_loan/stable-rate/user-information/Get-Loan-LTV-Adjustment-History Binance API Documentation}
1115
+ * @see {@link https://developers.binance.com/en/docs/catalog/investment-and-services-crypto-loan/api/rest-api/stable-rate#get-loan-ltv-adjustment-history Binance API Documentation}
1064
1116
  */
1065
1117
  getLoanLtvAdjustmentHistory(requestParameters = {}) {
1066
1118
  return this.stableRateApi.getLoanLtvAdjustmentHistory(requestParameters);
@@ -1068,17 +1120,20 @@ var RestAPI = class {
1068
1120
  /**
1069
1121
  * Get Loan Repayment History
1070
1122
  *
1071
- * If startTime and endTime are not sent, the recent 90-day data will be returned.
1072
- * The max interval between startTime and endTime is 180 days.
1123
+ * Weight(IP): 400
1124
+ *
1125
+ * Security Type: USER_DATA
1073
1126
  *
1074
- * Weight: 400
1127
+ * Notes:
1128
+ * - If `startTime` and `endTime` are not sent, the recent 90-day data is returned.
1129
+ * - The max interval between `startTime` and `endTime` is 180 days.
1075
1130
  *
1076
- * @summary Get Loan Repayment History(USER_DATA)
1131
+ * @summary Get Loan Repayment History (USER_DATA)
1077
1132
  * @param {GetLoanRepaymentHistoryRequest} requestParameters Request parameters.
1078
1133
  *
1079
1134
  * @returns {Promise<RestApiResponse<GetLoanRepaymentHistoryResponse>>}
1080
1135
  * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1081
- * @see {@link https://developers.binance.com/docs/crypto_loan/stable-rate/user-information/Get-Loan-Repayment-History Binance API Documentation}
1136
+ * @see {@link https://developers.binance.com/en/docs/catalog/investment-and-services-crypto-loan/api/rest-api/stable-rate#get-loan-repayment-history Binance API Documentation}
1082
1137
  */
1083
1138
  getLoanRepaymentHistory(requestParameters = {}) {
1084
1139
  return this.stableRateApi.getLoanRepaymentHistory(requestParameters);
@@ -1088,7 +1143,10 @@ var RestAPI = class {
1088
1143
  //#endregion
1089
1144
  //#region src/rest-api/index.ts
1090
1145
  var rest_api_exports = /* @__PURE__ */ __export({
1146
+ FlexibleLoanAdjustLtvDirectionEnum: () => FlexibleLoanAdjustLtvDirectionEnum,
1147
+ FlexibleLoanRepayRepaymentTypeEnum: () => FlexibleLoanRepayRepaymentTypeEnum,
1091
1148
  FlexibleRateApi: () => FlexibleRateApi,
1149
+ GetCryptoLoansIncomeHistoryTypeEnum: () => GetCryptoLoansIncomeHistoryTypeEnum,
1092
1150
  RestAPI: () => RestAPI,
1093
1151
  StableRateApi: () => StableRateApi
1094
1152
  });