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