@binance/crypto-loan 8.1.1 → 9.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.d.mts CHANGED
@@ -531,6 +531,66 @@ interface GetFlexibleLoanCollateralAssetsDataResponse {
531
531
  total?: number | bigint;
532
532
  }
533
533
  //#endregion
534
+ //#region src/rest-api/types/get-flexible-loan-interest-rate-history-response-rows-inner.d.ts
535
+ /**
536
+ * Binance Crypto Loan REST API
537
+ *
538
+ * OpenAPI Specification for the Binance Crypto Loan REST API
539
+ *
540
+ * The version of the OpenAPI document: 1.0.0
541
+ *
542
+ *
543
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
544
+ * https://openapi-generator.tech
545
+ * Do not edit the class manually.
546
+ */
547
+ /**
548
+ *
549
+ * @export
550
+ * @interface GetFlexibleLoanInterestRateHistoryResponseRowsInner
551
+ */
552
+ interface GetFlexibleLoanInterestRateHistoryResponseRowsInner {
553
+ /**
554
+ *
555
+ * @type {string}
556
+ * @memberof GetFlexibleLoanInterestRateHistoryResponseRowsInner
557
+ */
558
+ coin?: string;
559
+ /**
560
+ *
561
+ * @type {string}
562
+ * @memberof GetFlexibleLoanInterestRateHistoryResponseRowsInner
563
+ */
564
+ annualizedInterestRate?: string;
565
+ /**
566
+ *
567
+ * @type {number | bigint}
568
+ * @memberof GetFlexibleLoanInterestRateHistoryResponseRowsInner
569
+ */
570
+ time?: number | bigint;
571
+ }
572
+ //#endregion
573
+ //#region src/rest-api/types/get-flexible-loan-interest-rate-history-response.d.ts
574
+ /**
575
+ *
576
+ * @export
577
+ * @interface GetFlexibleLoanInterestRateHistoryResponse
578
+ */
579
+ interface GetFlexibleLoanInterestRateHistoryResponse {
580
+ /**
581
+ *
582
+ * @type {Array<GetFlexibleLoanInterestRateHistoryResponseRowsInner>}
583
+ * @memberof GetFlexibleLoanInterestRateHistoryResponse
584
+ */
585
+ rows?: Array<GetFlexibleLoanInterestRateHistoryResponseRowsInner>;
586
+ /**
587
+ *
588
+ * @type {number | bigint}
589
+ * @memberof GetFlexibleLoanInterestRateHistoryResponse
590
+ */
591
+ total?: number | bigint;
592
+ }
593
+ //#endregion
534
594
  //#region src/rest-api/types/get-flexible-loan-liquidation-history-response-rows-inner.d.ts
535
595
  /**
536
596
  * Binance Crypto Loan REST API
@@ -1244,6 +1304,22 @@ interface FlexibleRateApiInterface {
1244
1304
  * @memberof FlexibleRateApiInterface
1245
1305
  */
1246
1306
  getFlexibleLoanCollateralAssetsData(requestParameters?: GetFlexibleLoanCollateralAssetsDataRequest): Promise<RestApiResponse<GetFlexibleLoanCollateralAssetsDataResponse>>;
1307
+ /**
1308
+ * Check Flexible Loan interest rate history
1309
+ *
1310
+ * If startTime and endTime are not sent, the recent 90-day data will be returned
1311
+ * The max interval between startTime and endTime is 90 days.
1312
+ * Time based on UTC+0.
1313
+ *
1314
+ * Weight: 400
1315
+ *
1316
+ * @summary Get Flexible Loan Interest Rate History (USER_DATA)
1317
+ * @param {GetFlexibleLoanInterestRateHistoryRequest} requestParameters Request parameters.
1318
+ *
1319
+ * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1320
+ * @memberof FlexibleRateApiInterface
1321
+ */
1322
+ getFlexibleLoanInterestRateHistory(requestParameters: GetFlexibleLoanInterestRateHistoryRequest): Promise<RestApiResponse<GetFlexibleLoanInterestRateHistoryResponse>>;
1247
1323
  /**
1248
1324
  *
1249
1325
  * Weight: 400
@@ -1526,6 +1602,48 @@ interface GetFlexibleLoanCollateralAssetsDataRequest {
1526
1602
  */
1527
1603
  readonly recvWindow?: number | bigint;
1528
1604
  }
1605
+ /**
1606
+ * Request parameters for getFlexibleLoanInterestRateHistory operation in FlexibleRateApi.
1607
+ * @interface GetFlexibleLoanInterestRateHistoryRequest
1608
+ */
1609
+ interface GetFlexibleLoanInterestRateHistoryRequest {
1610
+ /**
1611
+ *
1612
+ * @type {string}
1613
+ * @memberof FlexibleRateApiGetFlexibleLoanInterestRateHistory
1614
+ */
1615
+ readonly coin: string;
1616
+ /**
1617
+ *
1618
+ * @type {number | bigint}
1619
+ * @memberof FlexibleRateApiGetFlexibleLoanInterestRateHistory
1620
+ */
1621
+ readonly recvWindow: number | bigint;
1622
+ /**
1623
+ *
1624
+ * @type {number | bigint}
1625
+ * @memberof FlexibleRateApiGetFlexibleLoanInterestRateHistory
1626
+ */
1627
+ readonly startTime?: number | bigint;
1628
+ /**
1629
+ *
1630
+ * @type {number | bigint}
1631
+ * @memberof FlexibleRateApiGetFlexibleLoanInterestRateHistory
1632
+ */
1633
+ readonly endTime?: number | bigint;
1634
+ /**
1635
+ * Current querying page. Start from 1; default: 1; max: 1000
1636
+ * @type {number | bigint}
1637
+ * @memberof FlexibleRateApiGetFlexibleLoanInterestRateHistory
1638
+ */
1639
+ readonly current?: number | bigint;
1640
+ /**
1641
+ * Default: 10; max: 100
1642
+ * @type {number | bigint}
1643
+ * @memberof FlexibleRateApiGetFlexibleLoanInterestRateHistory
1644
+ */
1645
+ readonly limit?: number | bigint;
1646
+ }
1529
1647
  /**
1530
1648
  * Request parameters for getFlexibleLoanLiquidationHistory operation in FlexibleRateApi.
1531
1649
  * @interface GetFlexibleLoanLiquidationHistoryRequest
@@ -1816,6 +1934,23 @@ declare class FlexibleRateApi implements FlexibleRateApiInterface {
1816
1934
  * @see {@link https://developers.binance.com/docs/crypto_loan/flexible-rate/market-data/Get-Flexible-Loan-Collateral-Assets-Data Binance API Documentation}
1817
1935
  */
1818
1936
  getFlexibleLoanCollateralAssetsData(requestParameters?: GetFlexibleLoanCollateralAssetsDataRequest): Promise<RestApiResponse<GetFlexibleLoanCollateralAssetsDataResponse>>;
1937
+ /**
1938
+ * Check Flexible Loan interest rate history
1939
+ *
1940
+ * If startTime and endTime are not sent, the recent 90-day data will be returned
1941
+ * The max interval between startTime and endTime is 90 days.
1942
+ * Time based on UTC+0.
1943
+ *
1944
+ * Weight: 400
1945
+ *
1946
+ * @summary Get Flexible Loan Interest Rate History (USER_DATA)
1947
+ * @param {GetFlexibleLoanInterestRateHistoryRequest} requestParameters Request parameters.
1948
+ * @returns {Promise<RestApiResponse<GetFlexibleLoanInterestRateHistoryResponse>>}
1949
+ * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1950
+ * @memberof FlexibleRateApi
1951
+ * @see {@link https://developers.binance.com/docs/crypto_loan/flexible-rate/market-data/Get-Flexible-Loan-Interest-Rate-History Binance API Documentation}
1952
+ */
1953
+ getFlexibleLoanInterestRateHistory(requestParameters: GetFlexibleLoanInterestRateHistoryRequest): Promise<RestApiResponse<GetFlexibleLoanInterestRateHistoryResponse>>;
1819
1954
  /**
1820
1955
  *
1821
1956
  * Weight: 400
@@ -2403,6 +2538,23 @@ declare class RestAPI {
2403
2538
  * @see {@link https://developers.binance.com/docs/crypto_loan/flexible-rate/market-data/Get-Flexible-Loan-Collateral-Assets-Data Binance API Documentation}
2404
2539
  */
2405
2540
  getFlexibleLoanCollateralAssetsData(requestParameters?: GetFlexibleLoanCollateralAssetsDataRequest): Promise<RestApiResponse<GetFlexibleLoanCollateralAssetsDataResponse>>;
2541
+ /**
2542
+ * Check Flexible Loan interest rate history
2543
+ *
2544
+ * If startTime and endTime are not sent, the recent 90-day data will be returned
2545
+ * The max interval between startTime and endTime is 90 days.
2546
+ * Time based on UTC+0.
2547
+ *
2548
+ * Weight: 400
2549
+ *
2550
+ * @summary Get Flexible Loan Interest Rate History (USER_DATA)
2551
+ * @param {GetFlexibleLoanInterestRateHistoryRequest} requestParameters Request parameters.
2552
+ *
2553
+ * @returns {Promise<RestApiResponse<GetFlexibleLoanInterestRateHistoryResponse>>}
2554
+ * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
2555
+ * @see {@link https://developers.binance.com/docs/crypto_loan/flexible-rate/market-data/Get-Flexible-Loan-Interest-Rate-History Binance API Documentation}
2556
+ */
2557
+ getFlexibleLoanInterestRateHistory(requestParameters: GetFlexibleLoanInterestRateHistoryRequest): Promise<RestApiResponse<GetFlexibleLoanInterestRateHistoryResponse>>;
2406
2558
  /**
2407
2559
  *
2408
2560
  * Weight: 400
@@ -2539,7 +2691,7 @@ declare class RestAPI {
2539
2691
  getLoanRepaymentHistory(requestParameters?: GetLoanRepaymentHistoryRequest): Promise<RestApiResponse<GetLoanRepaymentHistoryResponse>>;
2540
2692
  }
2541
2693
  declare namespace index_d_exports {
2542
- export { CheckCollateralRepayRateRequest, CheckCollateralRepayRateResponse, CheckCollateralRepayRateStableRateRequest, CheckCollateralRepayRateStableRateResponse, FlexibleLoanAdjustLtvRequest, FlexibleLoanAdjustLtvResponse, FlexibleLoanBorrowRequest, FlexibleLoanBorrowResponse, FlexibleLoanRepayRequest, FlexibleLoanRepayResponse, FlexibleRateApi, FlexibleRateApiInterface, GetCryptoLoansIncomeHistoryRequest, GetCryptoLoansIncomeHistoryResponse, GetCryptoLoansIncomeHistoryResponseInner, GetFlexibleLoanAssetsDataRequest, GetFlexibleLoanAssetsDataResponse, GetFlexibleLoanAssetsDataResponseRowsInner, GetFlexibleLoanBorrowHistoryRequest, GetFlexibleLoanBorrowHistoryResponse, GetFlexibleLoanBorrowHistoryResponseRowsInner, GetFlexibleLoanCollateralAssetsDataRequest, GetFlexibleLoanCollateralAssetsDataResponse, GetFlexibleLoanCollateralAssetsDataResponseRowsInner, GetFlexibleLoanLiquidationHistoryRequest, GetFlexibleLoanLiquidationHistoryResponse, GetFlexibleLoanLiquidationHistoryResponseRowsInner, GetFlexibleLoanLtvAdjustmentHistoryRequest, GetFlexibleLoanLtvAdjustmentHistoryResponse, GetFlexibleLoanLtvAdjustmentHistoryResponseRowsInner, GetFlexibleLoanOngoingOrdersRequest, GetFlexibleLoanOngoingOrdersResponse, GetFlexibleLoanOngoingOrdersResponseRowsInner, GetFlexibleLoanRepaymentHistoryRequest, GetFlexibleLoanRepaymentHistoryResponse, GetFlexibleLoanRepaymentHistoryResponseRowsInner, GetLoanBorrowHistoryRequest, GetLoanBorrowHistoryResponse, GetLoanBorrowHistoryResponseRowsInner, GetLoanLtvAdjustmentHistoryRequest, GetLoanLtvAdjustmentHistoryResponse, GetLoanLtvAdjustmentHistoryResponseRowsInner, GetLoanRepaymentHistoryRequest, GetLoanRepaymentHistoryResponse, GetLoanRepaymentHistoryResponseRowsInner, RestAPI, StableRateApi, StableRateApiInterface };
2694
+ export { CheckCollateralRepayRateRequest, CheckCollateralRepayRateResponse, CheckCollateralRepayRateStableRateRequest, CheckCollateralRepayRateStableRateResponse, FlexibleLoanAdjustLtvRequest, FlexibleLoanAdjustLtvResponse, FlexibleLoanBorrowRequest, FlexibleLoanBorrowResponse, FlexibleLoanRepayRequest, FlexibleLoanRepayResponse, FlexibleRateApi, FlexibleRateApiInterface, GetCryptoLoansIncomeHistoryRequest, GetCryptoLoansIncomeHistoryResponse, GetCryptoLoansIncomeHistoryResponseInner, GetFlexibleLoanAssetsDataRequest, GetFlexibleLoanAssetsDataResponse, GetFlexibleLoanAssetsDataResponseRowsInner, GetFlexibleLoanBorrowHistoryRequest, GetFlexibleLoanBorrowHistoryResponse, GetFlexibleLoanBorrowHistoryResponseRowsInner, GetFlexibleLoanCollateralAssetsDataRequest, GetFlexibleLoanCollateralAssetsDataResponse, GetFlexibleLoanCollateralAssetsDataResponseRowsInner, GetFlexibleLoanInterestRateHistoryRequest, GetFlexibleLoanInterestRateHistoryResponse, GetFlexibleLoanInterestRateHistoryResponseRowsInner, GetFlexibleLoanLiquidationHistoryRequest, GetFlexibleLoanLiquidationHistoryResponse, GetFlexibleLoanLiquidationHistoryResponseRowsInner, GetFlexibleLoanLtvAdjustmentHistoryRequest, GetFlexibleLoanLtvAdjustmentHistoryResponse, GetFlexibleLoanLtvAdjustmentHistoryResponseRowsInner, GetFlexibleLoanOngoingOrdersRequest, GetFlexibleLoanOngoingOrdersResponse, GetFlexibleLoanOngoingOrdersResponseRowsInner, GetFlexibleLoanRepaymentHistoryRequest, GetFlexibleLoanRepaymentHistoryResponse, GetFlexibleLoanRepaymentHistoryResponseRowsInner, GetLoanBorrowHistoryRequest, GetLoanBorrowHistoryResponse, GetLoanBorrowHistoryResponseRowsInner, GetLoanLtvAdjustmentHistoryRequest, GetLoanLtvAdjustmentHistoryResponse, GetLoanLtvAdjustmentHistoryResponseRowsInner, GetLoanRepaymentHistoryRequest, GetLoanRepaymentHistoryResponse, GetLoanRepaymentHistoryResponseRowsInner, RestAPI, StableRateApi, StableRateApiInterface };
2543
2695
  }
2544
2696
  //#endregion
2545
2697
  //#region src/crypto-loan.d.ts
package/dist/index.d.ts CHANGED
@@ -533,6 +533,66 @@ interface GetFlexibleLoanCollateralAssetsDataResponse {
533
533
  total?: number | bigint;
534
534
  }
535
535
  //#endregion
536
+ //#region src/rest-api/types/get-flexible-loan-interest-rate-history-response-rows-inner.d.ts
537
+ /**
538
+ * Binance Crypto Loan REST API
539
+ *
540
+ * OpenAPI Specification for the Binance Crypto Loan REST API
541
+ *
542
+ * The version of the OpenAPI document: 1.0.0
543
+ *
544
+ *
545
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
546
+ * https://openapi-generator.tech
547
+ * Do not edit the class manually.
548
+ */
549
+ /**
550
+ *
551
+ * @export
552
+ * @interface GetFlexibleLoanInterestRateHistoryResponseRowsInner
553
+ */
554
+ interface GetFlexibleLoanInterestRateHistoryResponseRowsInner {
555
+ /**
556
+ *
557
+ * @type {string}
558
+ * @memberof GetFlexibleLoanInterestRateHistoryResponseRowsInner
559
+ */
560
+ coin?: string;
561
+ /**
562
+ *
563
+ * @type {string}
564
+ * @memberof GetFlexibleLoanInterestRateHistoryResponseRowsInner
565
+ */
566
+ annualizedInterestRate?: string;
567
+ /**
568
+ *
569
+ * @type {number | bigint}
570
+ * @memberof GetFlexibleLoanInterestRateHistoryResponseRowsInner
571
+ */
572
+ time?: number | bigint;
573
+ }
574
+ //#endregion
575
+ //#region src/rest-api/types/get-flexible-loan-interest-rate-history-response.d.ts
576
+ /**
577
+ *
578
+ * @export
579
+ * @interface GetFlexibleLoanInterestRateHistoryResponse
580
+ */
581
+ interface GetFlexibleLoanInterestRateHistoryResponse {
582
+ /**
583
+ *
584
+ * @type {Array<GetFlexibleLoanInterestRateHistoryResponseRowsInner>}
585
+ * @memberof GetFlexibleLoanInterestRateHistoryResponse
586
+ */
587
+ rows?: Array<GetFlexibleLoanInterestRateHistoryResponseRowsInner>;
588
+ /**
589
+ *
590
+ * @type {number | bigint}
591
+ * @memberof GetFlexibleLoanInterestRateHistoryResponse
592
+ */
593
+ total?: number | bigint;
594
+ }
595
+ //#endregion
536
596
  //#region src/rest-api/types/get-flexible-loan-liquidation-history-response-rows-inner.d.ts
537
597
  /**
538
598
  * Binance Crypto Loan REST API
@@ -1246,6 +1306,22 @@ interface FlexibleRateApiInterface {
1246
1306
  * @memberof FlexibleRateApiInterface
1247
1307
  */
1248
1308
  getFlexibleLoanCollateralAssetsData(requestParameters?: GetFlexibleLoanCollateralAssetsDataRequest): Promise<RestApiResponse<GetFlexibleLoanCollateralAssetsDataResponse>>;
1309
+ /**
1310
+ * Check Flexible Loan interest rate history
1311
+ *
1312
+ * If startTime and endTime are not sent, the recent 90-day data will be returned
1313
+ * The max interval between startTime and endTime is 90 days.
1314
+ * Time based on UTC+0.
1315
+ *
1316
+ * Weight: 400
1317
+ *
1318
+ * @summary Get Flexible Loan Interest Rate History (USER_DATA)
1319
+ * @param {GetFlexibleLoanInterestRateHistoryRequest} requestParameters Request parameters.
1320
+ *
1321
+ * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1322
+ * @memberof FlexibleRateApiInterface
1323
+ */
1324
+ getFlexibleLoanInterestRateHistory(requestParameters: GetFlexibleLoanInterestRateHistoryRequest): Promise<RestApiResponse<GetFlexibleLoanInterestRateHistoryResponse>>;
1249
1325
  /**
1250
1326
  *
1251
1327
  * Weight: 400
@@ -1528,6 +1604,48 @@ interface GetFlexibleLoanCollateralAssetsDataRequest {
1528
1604
  */
1529
1605
  readonly recvWindow?: number | bigint;
1530
1606
  }
1607
+ /**
1608
+ * Request parameters for getFlexibleLoanInterestRateHistory operation in FlexibleRateApi.
1609
+ * @interface GetFlexibleLoanInterestRateHistoryRequest
1610
+ */
1611
+ interface GetFlexibleLoanInterestRateHistoryRequest {
1612
+ /**
1613
+ *
1614
+ * @type {string}
1615
+ * @memberof FlexibleRateApiGetFlexibleLoanInterestRateHistory
1616
+ */
1617
+ readonly coin: string;
1618
+ /**
1619
+ *
1620
+ * @type {number | bigint}
1621
+ * @memberof FlexibleRateApiGetFlexibleLoanInterestRateHistory
1622
+ */
1623
+ readonly recvWindow: number | bigint;
1624
+ /**
1625
+ *
1626
+ * @type {number | bigint}
1627
+ * @memberof FlexibleRateApiGetFlexibleLoanInterestRateHistory
1628
+ */
1629
+ readonly startTime?: number | bigint;
1630
+ /**
1631
+ *
1632
+ * @type {number | bigint}
1633
+ * @memberof FlexibleRateApiGetFlexibleLoanInterestRateHistory
1634
+ */
1635
+ readonly endTime?: number | bigint;
1636
+ /**
1637
+ * Current querying page. Start from 1; default: 1; max: 1000
1638
+ * @type {number | bigint}
1639
+ * @memberof FlexibleRateApiGetFlexibleLoanInterestRateHistory
1640
+ */
1641
+ readonly current?: number | bigint;
1642
+ /**
1643
+ * Default: 10; max: 100
1644
+ * @type {number | bigint}
1645
+ * @memberof FlexibleRateApiGetFlexibleLoanInterestRateHistory
1646
+ */
1647
+ readonly limit?: number | bigint;
1648
+ }
1531
1649
  /**
1532
1650
  * Request parameters for getFlexibleLoanLiquidationHistory operation in FlexibleRateApi.
1533
1651
  * @interface GetFlexibleLoanLiquidationHistoryRequest
@@ -1818,6 +1936,23 @@ declare class FlexibleRateApi implements FlexibleRateApiInterface {
1818
1936
  * @see {@link https://developers.binance.com/docs/crypto_loan/flexible-rate/market-data/Get-Flexible-Loan-Collateral-Assets-Data Binance API Documentation}
1819
1937
  */
1820
1938
  getFlexibleLoanCollateralAssetsData(requestParameters?: GetFlexibleLoanCollateralAssetsDataRequest): Promise<RestApiResponse<GetFlexibleLoanCollateralAssetsDataResponse>>;
1939
+ /**
1940
+ * Check Flexible Loan interest rate history
1941
+ *
1942
+ * If startTime and endTime are not sent, the recent 90-day data will be returned
1943
+ * The max interval between startTime and endTime is 90 days.
1944
+ * Time based on UTC+0.
1945
+ *
1946
+ * Weight: 400
1947
+ *
1948
+ * @summary Get Flexible Loan Interest Rate History (USER_DATA)
1949
+ * @param {GetFlexibleLoanInterestRateHistoryRequest} requestParameters Request parameters.
1950
+ * @returns {Promise<RestApiResponse<GetFlexibleLoanInterestRateHistoryResponse>>}
1951
+ * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1952
+ * @memberof FlexibleRateApi
1953
+ * @see {@link https://developers.binance.com/docs/crypto_loan/flexible-rate/market-data/Get-Flexible-Loan-Interest-Rate-History Binance API Documentation}
1954
+ */
1955
+ getFlexibleLoanInterestRateHistory(requestParameters: GetFlexibleLoanInterestRateHistoryRequest): Promise<RestApiResponse<GetFlexibleLoanInterestRateHistoryResponse>>;
1821
1956
  /**
1822
1957
  *
1823
1958
  * Weight: 400
@@ -2405,6 +2540,23 @@ declare class RestAPI {
2405
2540
  * @see {@link https://developers.binance.com/docs/crypto_loan/flexible-rate/market-data/Get-Flexible-Loan-Collateral-Assets-Data Binance API Documentation}
2406
2541
  */
2407
2542
  getFlexibleLoanCollateralAssetsData(requestParameters?: GetFlexibleLoanCollateralAssetsDataRequest): Promise<RestApiResponse<GetFlexibleLoanCollateralAssetsDataResponse>>;
2543
+ /**
2544
+ * Check Flexible Loan interest rate history
2545
+ *
2546
+ * If startTime and endTime are not sent, the recent 90-day data will be returned
2547
+ * The max interval between startTime and endTime is 90 days.
2548
+ * Time based on UTC+0.
2549
+ *
2550
+ * Weight: 400
2551
+ *
2552
+ * @summary Get Flexible Loan Interest Rate History (USER_DATA)
2553
+ * @param {GetFlexibleLoanInterestRateHistoryRequest} requestParameters Request parameters.
2554
+ *
2555
+ * @returns {Promise<RestApiResponse<GetFlexibleLoanInterestRateHistoryResponse>>}
2556
+ * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
2557
+ * @see {@link https://developers.binance.com/docs/crypto_loan/flexible-rate/market-data/Get-Flexible-Loan-Interest-Rate-History Binance API Documentation}
2558
+ */
2559
+ getFlexibleLoanInterestRateHistory(requestParameters: GetFlexibleLoanInterestRateHistoryRequest): Promise<RestApiResponse<GetFlexibleLoanInterestRateHistoryResponse>>;
2408
2560
  /**
2409
2561
  *
2410
2562
  * Weight: 400
@@ -2541,7 +2693,7 @@ declare class RestAPI {
2541
2693
  getLoanRepaymentHistory(requestParameters?: GetLoanRepaymentHistoryRequest): Promise<RestApiResponse<GetLoanRepaymentHistoryResponse>>;
2542
2694
  }
2543
2695
  declare namespace index_d_exports {
2544
- export { CheckCollateralRepayRateRequest, CheckCollateralRepayRateResponse, CheckCollateralRepayRateStableRateRequest, CheckCollateralRepayRateStableRateResponse, FlexibleLoanAdjustLtvRequest, FlexibleLoanAdjustLtvResponse, FlexibleLoanBorrowRequest, FlexibleLoanBorrowResponse, FlexibleLoanRepayRequest, FlexibleLoanRepayResponse, FlexibleRateApi, FlexibleRateApiInterface, GetCryptoLoansIncomeHistoryRequest, GetCryptoLoansIncomeHistoryResponse, GetCryptoLoansIncomeHistoryResponseInner, GetFlexibleLoanAssetsDataRequest, GetFlexibleLoanAssetsDataResponse, GetFlexibleLoanAssetsDataResponseRowsInner, GetFlexibleLoanBorrowHistoryRequest, GetFlexibleLoanBorrowHistoryResponse, GetFlexibleLoanBorrowHistoryResponseRowsInner, GetFlexibleLoanCollateralAssetsDataRequest, GetFlexibleLoanCollateralAssetsDataResponse, GetFlexibleLoanCollateralAssetsDataResponseRowsInner, GetFlexibleLoanLiquidationHistoryRequest, GetFlexibleLoanLiquidationHistoryResponse, GetFlexibleLoanLiquidationHistoryResponseRowsInner, GetFlexibleLoanLtvAdjustmentHistoryRequest, GetFlexibleLoanLtvAdjustmentHistoryResponse, GetFlexibleLoanLtvAdjustmentHistoryResponseRowsInner, GetFlexibleLoanOngoingOrdersRequest, GetFlexibleLoanOngoingOrdersResponse, GetFlexibleLoanOngoingOrdersResponseRowsInner, GetFlexibleLoanRepaymentHistoryRequest, GetFlexibleLoanRepaymentHistoryResponse, GetFlexibleLoanRepaymentHistoryResponseRowsInner, GetLoanBorrowHistoryRequest, GetLoanBorrowHistoryResponse, GetLoanBorrowHistoryResponseRowsInner, GetLoanLtvAdjustmentHistoryRequest, GetLoanLtvAdjustmentHistoryResponse, GetLoanLtvAdjustmentHistoryResponseRowsInner, GetLoanRepaymentHistoryRequest, GetLoanRepaymentHistoryResponse, GetLoanRepaymentHistoryResponseRowsInner, RestAPI, StableRateApi, StableRateApiInterface };
2696
+ export { CheckCollateralRepayRateRequest, CheckCollateralRepayRateResponse, CheckCollateralRepayRateStableRateRequest, CheckCollateralRepayRateStableRateResponse, FlexibleLoanAdjustLtvRequest, FlexibleLoanAdjustLtvResponse, FlexibleLoanBorrowRequest, FlexibleLoanBorrowResponse, FlexibleLoanRepayRequest, FlexibleLoanRepayResponse, FlexibleRateApi, FlexibleRateApiInterface, GetCryptoLoansIncomeHistoryRequest, GetCryptoLoansIncomeHistoryResponse, GetCryptoLoansIncomeHistoryResponseInner, GetFlexibleLoanAssetsDataRequest, GetFlexibleLoanAssetsDataResponse, GetFlexibleLoanAssetsDataResponseRowsInner, GetFlexibleLoanBorrowHistoryRequest, GetFlexibleLoanBorrowHistoryResponse, GetFlexibleLoanBorrowHistoryResponseRowsInner, GetFlexibleLoanCollateralAssetsDataRequest, GetFlexibleLoanCollateralAssetsDataResponse, GetFlexibleLoanCollateralAssetsDataResponseRowsInner, GetFlexibleLoanInterestRateHistoryRequest, GetFlexibleLoanInterestRateHistoryResponse, GetFlexibleLoanInterestRateHistoryResponseRowsInner, GetFlexibleLoanLiquidationHistoryRequest, GetFlexibleLoanLiquidationHistoryResponse, GetFlexibleLoanLiquidationHistoryResponseRowsInner, GetFlexibleLoanLtvAdjustmentHistoryRequest, GetFlexibleLoanLtvAdjustmentHistoryResponse, GetFlexibleLoanLtvAdjustmentHistoryResponseRowsInner, GetFlexibleLoanOngoingOrdersRequest, GetFlexibleLoanOngoingOrdersResponse, GetFlexibleLoanOngoingOrdersResponseRowsInner, GetFlexibleLoanRepaymentHistoryRequest, GetFlexibleLoanRepaymentHistoryResponse, GetFlexibleLoanRepaymentHistoryResponseRowsInner, GetLoanBorrowHistoryRequest, GetLoanBorrowHistoryResponse, GetLoanBorrowHistoryResponseRowsInner, GetLoanLtvAdjustmentHistoryRequest, GetLoanLtvAdjustmentHistoryResponse, GetLoanLtvAdjustmentHistoryResponseRowsInner, GetLoanRepaymentHistoryRequest, GetLoanRepaymentHistoryResponse, GetLoanRepaymentHistoryResponseRowsInner, RestAPI, StableRateApi, StableRateApiInterface };
2545
2697
  }
2546
2698
  //#endregion
2547
2699
  //#region src/crypto-loan.d.ts
package/dist/index.js CHANGED
@@ -14,7 +14,7 @@ let __binance_common = require("@binance/common");
14
14
 
15
15
  //#region package.json
16
16
  var name = "@binance/crypto-loan";
17
- var version = "8.1.1";
17
+ var version = "9.0.1";
18
18
 
19
19
  //#endregion
20
20
  //#region src/rest-api/modules/flexible-rate-api.ts
@@ -168,6 +168,27 @@ const FlexibleRateApiAxiosParamCreator = function(configuration) {
168
168
  timeUnit: _timeUnit
169
169
  };
170
170
  },
171
+ getFlexibleLoanInterestRateHistory: async (coin, recvWindow, startTime, endTime, current, limit) => {
172
+ (0, __binance_common.assertParamExists)("getFlexibleLoanInterestRateHistory", "coin", coin);
173
+ (0, __binance_common.assertParamExists)("getFlexibleLoanInterestRateHistory", "recvWindow", recvWindow);
174
+ const localVarQueryParameter = {};
175
+ const localVarBodyParameter = {};
176
+ if (coin !== void 0 && coin !== null) localVarQueryParameter["coin"] = coin;
177
+ if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
178
+ if (endTime !== void 0 && endTime !== null) localVarQueryParameter["endTime"] = endTime;
179
+ if (current !== void 0 && current !== null) localVarQueryParameter["current"] = current;
180
+ if (limit !== void 0 && limit !== null) localVarQueryParameter["limit"] = limit;
181
+ if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
182
+ let _timeUnit;
183
+ if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
184
+ return {
185
+ endpoint: "/sapi/v2/loan/interestRateHistory",
186
+ method: "GET",
187
+ queryParams: localVarQueryParameter,
188
+ bodyParams: localVarBodyParameter,
189
+ timeUnit: _timeUnit
190
+ };
191
+ },
171
192
  getFlexibleLoanLiquidationHistory: async (loanCoin, collateralCoin, startTime, endTime, current, limit, recvWindow) => {
172
193
  const localVarQueryParameter = {};
173
194
  const localVarBodyParameter = {};
@@ -381,6 +402,26 @@ var FlexibleRateApi = class {
381
402
  return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
382
403
  }
383
404
  /**
405
+ * Check Flexible Loan interest rate history
406
+ *
407
+ * If startTime and endTime are not sent, the recent 90-day data will be returned
408
+ * The max interval between startTime and endTime is 90 days.
409
+ * Time based on UTC+0.
410
+ *
411
+ * Weight: 400
412
+ *
413
+ * @summary Get Flexible Loan Interest Rate History (USER_DATA)
414
+ * @param {GetFlexibleLoanInterestRateHistoryRequest} requestParameters Request parameters.
415
+ * @returns {Promise<RestApiResponse<GetFlexibleLoanInterestRateHistoryResponse>>}
416
+ * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
417
+ * @memberof FlexibleRateApi
418
+ * @see {@link https://developers.binance.com/docs/crypto_loan/flexible-rate/market-data/Get-Flexible-Loan-Interest-Rate-History Binance API Documentation}
419
+ */
420
+ async getFlexibleLoanInterestRateHistory(requestParameters) {
421
+ const localVarAxiosArgs = await this.localVarAxiosParamCreator.getFlexibleLoanInterestRateHistory(requestParameters?.coin, requestParameters?.recvWindow, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.current, requestParameters?.limit);
422
+ return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
423
+ }
424
+ /**
384
425
  *
385
426
  * Weight: 400
386
427
  *
@@ -838,6 +879,25 @@ var RestAPI = class {
838
879
  return this.flexibleRateApi.getFlexibleLoanCollateralAssetsData(requestParameters);
839
880
  }
840
881
  /**
882
+ * Check Flexible Loan interest rate history
883
+ *
884
+ * If startTime and endTime are not sent, the recent 90-day data will be returned
885
+ * The max interval between startTime and endTime is 90 days.
886
+ * Time based on UTC+0.
887
+ *
888
+ * Weight: 400
889
+ *
890
+ * @summary Get Flexible Loan Interest Rate History (USER_DATA)
891
+ * @param {GetFlexibleLoanInterestRateHistoryRequest} requestParameters Request parameters.
892
+ *
893
+ * @returns {Promise<RestApiResponse<GetFlexibleLoanInterestRateHistoryResponse>>}
894
+ * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
895
+ * @see {@link https://developers.binance.com/docs/crypto_loan/flexible-rate/market-data/Get-Flexible-Loan-Interest-Rate-History Binance API Documentation}
896
+ */
897
+ getFlexibleLoanInterestRateHistory(requestParameters) {
898
+ return this.flexibleRateApi.getFlexibleLoanInterestRateHistory(requestParameters);
899
+ }
900
+ /**
841
901
  *
842
902
  * Weight: 400
843
903
  *