@binance/crypto-loan 3.0.0 → 5.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -440,68 +440,6 @@ interface FlexibleLoanBorrowResponse {
440
440
  status?: string;
441
441
  }
442
442
 
443
- /**
444
- * Binance Crypto Loan REST API
445
- *
446
- * OpenAPI Specification for the Binance Crypto Loan REST API
447
- *
448
- * The version of the OpenAPI document: 1.0.0
449
- *
450
- *
451
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
452
- * https://openapi-generator.tech
453
- * Do not edit the class manually.
454
- */
455
- /**
456
- *
457
- * @export
458
- * @interface FlexibleLoanCollateralRepaymentResponse
459
- */
460
- interface FlexibleLoanCollateralRepaymentResponse {
461
- /**
462
- *
463
- * @type {string}
464
- * @memberof FlexibleLoanCollateralRepaymentResponse
465
- */
466
- loanCoin?: string;
467
- /**
468
- *
469
- * @type {string}
470
- * @memberof FlexibleLoanCollateralRepaymentResponse
471
- */
472
- collateralCoin?: string;
473
- /**
474
- *
475
- * @type {string}
476
- * @memberof FlexibleLoanCollateralRepaymentResponse
477
- */
478
- remainingDebt?: string;
479
- /**
480
- *
481
- * @type {string}
482
- * @memberof FlexibleLoanCollateralRepaymentResponse
483
- */
484
- remainingCollateral?: string;
485
- /**
486
- *
487
- * @type {boolean}
488
- * @memberof FlexibleLoanCollateralRepaymentResponse
489
- */
490
- fullRepayment?: boolean;
491
- /**
492
- *
493
- * @type {string}
494
- * @memberof FlexibleLoanCollateralRepaymentResponse
495
- */
496
- currentLTV?: string;
497
- /**
498
- *
499
- * @type {string}
500
- * @memberof FlexibleLoanCollateralRepaymentResponse
501
- */
502
- repayStatus?: string;
503
- }
504
-
505
443
  /**
506
444
  * Binance Crypto Loan REST API
507
445
  *
@@ -1959,17 +1897,6 @@ interface FlexibleRateApiInterface {
1959
1897
  * @memberof FlexibleRateApiInterface
1960
1898
  */
1961
1899
  flexibleLoanBorrow(requestParameters: FlexibleLoanBorrowRequest): Promise<RestApiResponse<FlexibleLoanBorrowResponse>>;
1962
- /**
1963
- *
1964
- * Weight: 6000
1965
- *
1966
- * @summary Flexible Loan Collateral Repayment (TRADE)
1967
- * @param {FlexibleLoanCollateralRepaymentRequest} requestParameters Request parameters.
1968
- *
1969
- * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1970
- * @memberof FlexibleRateApiInterface
1971
- */
1972
- flexibleLoanCollateralRepayment(requestParameters: FlexibleLoanCollateralRepaymentRequest): Promise<RestApiResponse<FlexibleLoanCollateralRepaymentResponse>>;
1973
1900
  /**
1974
1901
  * Flexible Loan Repay
1975
1902
  *
@@ -2162,42 +2089,6 @@ interface FlexibleLoanBorrowRequest {
2162
2089
  */
2163
2090
  readonly recvWindow?: number;
2164
2091
  }
2165
- /**
2166
- * Request parameters for flexibleLoanCollateralRepayment operation in FlexibleRateApi.
2167
- * @interface FlexibleLoanCollateralRepaymentRequest
2168
- */
2169
- interface FlexibleLoanCollateralRepaymentRequest {
2170
- /**
2171
- *
2172
- * @type {string}
2173
- * @memberof FlexibleRateApiFlexibleLoanCollateralRepayment
2174
- */
2175
- readonly loanCoin: string;
2176
- /**
2177
- *
2178
- * @type {string}
2179
- * @memberof FlexibleRateApiFlexibleLoanCollateralRepayment
2180
- */
2181
- readonly collateralCoin: string;
2182
- /**
2183
- * repay amount of loanCoin
2184
- * @type {number}
2185
- * @memberof FlexibleRateApiFlexibleLoanCollateralRepayment
2186
- */
2187
- readonly repayAmount: number;
2188
- /**
2189
- * Default: FALSE. TRUE: Full repayment; FALSE: Partial repayment, based on loanAmount
2190
- * @type {boolean}
2191
- * @memberof FlexibleRateApiFlexibleLoanCollateralRepayment
2192
- */
2193
- readonly fullRepayment?: boolean;
2194
- /**
2195
- *
2196
- * @type {number}
2197
- * @memberof FlexibleRateApiFlexibleLoanCollateralRepayment
2198
- */
2199
- readonly recvWindow?: number;
2200
- }
2201
2092
  /**
2202
2093
  * Request parameters for flexibleLoanRepay operation in FlexibleRateApi.
2203
2094
  * @interface FlexibleLoanRepayRequest
@@ -2233,6 +2124,12 @@ interface FlexibleLoanRepayRequest {
2233
2124
  * @memberof FlexibleRateApiFlexibleLoanRepay
2234
2125
  */
2235
2126
  readonly fullRepayment?: boolean;
2127
+ /**
2128
+ * Default: 1. 1: Repayment with loan asset; 2: Repayment with collateral
2129
+ * @type {number}
2130
+ * @memberof FlexibleRateApiFlexibleLoanRepay
2131
+ */
2132
+ readonly repaymentType?: number;
2236
2133
  /**
2237
2134
  *
2238
2135
  * @type {number}
@@ -2556,18 +2453,6 @@ declare class FlexibleRateApi implements FlexibleRateApiInterface {
2556
2453
  * @see {@link https://developers.binance.com/docs/crypto_loan/flexible-rate/trade/Flexible-Loan-Borrow Binance API Documentation}
2557
2454
  */
2558
2455
  flexibleLoanBorrow(requestParameters: FlexibleLoanBorrowRequest): Promise<RestApiResponse<FlexibleLoanBorrowResponse>>;
2559
- /**
2560
- *
2561
- * Weight: 6000
2562
- *
2563
- * @summary Flexible Loan Collateral Repayment (TRADE)
2564
- * @param {FlexibleLoanCollateralRepaymentRequest} requestParameters Request parameters.
2565
- * @returns {Promise<RestApiResponse<FlexibleLoanCollateralRepaymentResponse>>}
2566
- * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
2567
- * @memberof FlexibleRateApi
2568
- * @see {@link https://developers.binance.com/docs/crypto_loan/flexible-rate/trade/Flexible-Loan-Collateral-Repay Binance API Documentation}
2569
- */
2570
- flexibleLoanCollateralRepayment(requestParameters: FlexibleLoanCollateralRepaymentRequest): Promise<RestApiResponse<FlexibleLoanCollateralRepaymentResponse>>;
2571
2456
  /**
2572
2457
  * Flexible Loan Repay
2573
2458
  *
@@ -3553,17 +3438,6 @@ declare class RestAPI {
3553
3438
  * @see {@link https://developers.binance.com/docs/crypto_loan/flexible-rate/trade/Flexible-Loan-Borrow Binance API Documentation}
3554
3439
  */
3555
3440
  flexibleLoanBorrow(requestParameters: FlexibleLoanBorrowRequest): Promise<RestApiResponse<FlexibleLoanBorrowResponse>>;
3556
- /**
3557
- *
3558
- * Weight: 6000
3559
- *
3560
- * @summary Flexible Loan Collateral Repayment (TRADE)
3561
- * @param {FlexibleLoanCollateralRepaymentRequest} requestParameters Request parameters.
3562
- * @returns {Promise<RestApiResponse<FlexibleLoanCollateralRepaymentResponse>>}
3563
- * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
3564
- * @see {@link https://developers.binance.com/docs/crypto_loan/flexible-rate/trade/Flexible-Loan-Collateral-Repay Binance API Documentation}
3565
- */
3566
- flexibleLoanCollateralRepayment(requestParameters: FlexibleLoanCollateralRepaymentRequest): Promise<RestApiResponse<FlexibleLoanCollateralRepaymentResponse>>;
3567
3441
  /**
3568
3442
  * Flexible Loan Repay
3569
3443
  *
@@ -3859,8 +3733,6 @@ type index_FlexibleLoanAdjustLtvRequest = FlexibleLoanAdjustLtvRequest;
3859
3733
  type index_FlexibleLoanAdjustLtvResponse = FlexibleLoanAdjustLtvResponse;
3860
3734
  type index_FlexibleLoanBorrowRequest = FlexibleLoanBorrowRequest;
3861
3735
  type index_FlexibleLoanBorrowResponse = FlexibleLoanBorrowResponse;
3862
- type index_FlexibleLoanCollateralRepaymentRequest = FlexibleLoanCollateralRepaymentRequest;
3863
- type index_FlexibleLoanCollateralRepaymentResponse = FlexibleLoanCollateralRepaymentResponse;
3864
3736
  type index_FlexibleLoanRepayRequest = FlexibleLoanRepayRequest;
3865
3737
  type index_FlexibleLoanRepayResponse = FlexibleLoanRepayResponse;
3866
3738
  type index_FlexibleRateApi = FlexibleRateApi;
@@ -3914,7 +3786,7 @@ type index_StableRateApi = StableRateApi;
3914
3786
  declare const index_StableRateApi: typeof StableRateApi;
3915
3787
  type index_StableRateApiInterface = StableRateApiInterface;
3916
3788
  declare namespace index {
3917
- export { type index_CheckCollateralRepayRateRequest as CheckCollateralRepayRateRequest, type index_CheckCollateralRepayRateResponse as CheckCollateralRepayRateResponse, type index_CheckCollateralRepayRateStableRateRequest as CheckCollateralRepayRateStableRateRequest, type index_CheckCollateralRepayRateStableRateResponse as CheckCollateralRepayRateStableRateResponse, type index_CryptoLoanAdjustLtvRequest as CryptoLoanAdjustLtvRequest, type index_CryptoLoanAdjustLtvResponse as CryptoLoanAdjustLtvResponse, type index_CryptoLoanBorrowRequest as CryptoLoanBorrowRequest, type index_CryptoLoanBorrowResponse as CryptoLoanBorrowResponse, type index_CryptoLoanCustomizeMarginCallRequest as CryptoLoanCustomizeMarginCallRequest, type index_CryptoLoanCustomizeMarginCallResponse as CryptoLoanCustomizeMarginCallResponse, type index_CryptoLoanCustomizeMarginCallResponseRowsInner as CryptoLoanCustomizeMarginCallResponseRowsInner, type index_CryptoLoanRepayRequest as CryptoLoanRepayRequest, type index_CryptoLoanRepayResponse as CryptoLoanRepayResponse, type index_FlexibleLoanAdjustLtvRequest as FlexibleLoanAdjustLtvRequest, type index_FlexibleLoanAdjustLtvResponse as FlexibleLoanAdjustLtvResponse, type index_FlexibleLoanBorrowRequest as FlexibleLoanBorrowRequest, type index_FlexibleLoanBorrowResponse as FlexibleLoanBorrowResponse, type index_FlexibleLoanCollateralRepaymentRequest as FlexibleLoanCollateralRepaymentRequest, type index_FlexibleLoanCollateralRepaymentResponse as FlexibleLoanCollateralRepaymentResponse, type index_FlexibleLoanRepayRequest as FlexibleLoanRepayRequest, type index_FlexibleLoanRepayResponse as FlexibleLoanRepayResponse, index_FlexibleRateApi as FlexibleRateApi, type index_FlexibleRateApiInterface as FlexibleRateApiInterface, type index_GetCollateralAssetsDataRequest as GetCollateralAssetsDataRequest, type index_GetCollateralAssetsDataResponse as GetCollateralAssetsDataResponse, type index_GetCollateralAssetsDataResponseRowsInner as GetCollateralAssetsDataResponseRowsInner, type index_GetCryptoLoansIncomeHistoryRequest as GetCryptoLoansIncomeHistoryRequest, type index_GetCryptoLoansIncomeHistoryResponse as GetCryptoLoansIncomeHistoryResponse, type index_GetCryptoLoansIncomeHistoryResponseInner as GetCryptoLoansIncomeHistoryResponseInner, type index_GetFlexibleLoanAssetsDataRequest as GetFlexibleLoanAssetsDataRequest, type index_GetFlexibleLoanAssetsDataResponse as GetFlexibleLoanAssetsDataResponse, type index_GetFlexibleLoanAssetsDataResponseRowsInner as GetFlexibleLoanAssetsDataResponseRowsInner, type index_GetFlexibleLoanBorrowHistoryRequest as GetFlexibleLoanBorrowHistoryRequest, type index_GetFlexibleLoanBorrowHistoryResponse as GetFlexibleLoanBorrowHistoryResponse, type index_GetFlexibleLoanBorrowHistoryResponseRowsInner as GetFlexibleLoanBorrowHistoryResponseRowsInner, type index_GetFlexibleLoanCollateralAssetsDataRequest as GetFlexibleLoanCollateralAssetsDataRequest, type index_GetFlexibleLoanCollateralAssetsDataResponse as GetFlexibleLoanCollateralAssetsDataResponse, type index_GetFlexibleLoanCollateralAssetsDataResponseRowsInner as GetFlexibleLoanCollateralAssetsDataResponseRowsInner, type index_GetFlexibleLoanLiquidationHistoryRequest as GetFlexibleLoanLiquidationHistoryRequest, type index_GetFlexibleLoanLiquidationHistoryResponse as GetFlexibleLoanLiquidationHistoryResponse, type index_GetFlexibleLoanLiquidationHistoryResponseRowsInner as GetFlexibleLoanLiquidationHistoryResponseRowsInner, type index_GetFlexibleLoanLtvAdjustmentHistoryRequest as GetFlexibleLoanLtvAdjustmentHistoryRequest, type index_GetFlexibleLoanLtvAdjustmentHistoryResponse as GetFlexibleLoanLtvAdjustmentHistoryResponse, type index_GetFlexibleLoanLtvAdjustmentHistoryResponseRowsInner as GetFlexibleLoanLtvAdjustmentHistoryResponseRowsInner, type index_GetFlexibleLoanOngoingOrdersRequest as GetFlexibleLoanOngoingOrdersRequest, type index_GetFlexibleLoanOngoingOrdersResponse as GetFlexibleLoanOngoingOrdersResponse, type index_GetFlexibleLoanOngoingOrdersResponseRowsInner as GetFlexibleLoanOngoingOrdersResponseRowsInner, type index_GetFlexibleLoanRepaymentHistoryRequest as GetFlexibleLoanRepaymentHistoryRequest, type index_GetFlexibleLoanRepaymentHistoryResponse as GetFlexibleLoanRepaymentHistoryResponse, type index_GetFlexibleLoanRepaymentHistoryResponseRowsInner as GetFlexibleLoanRepaymentHistoryResponseRowsInner, type index_GetLoanBorrowHistoryRequest as GetLoanBorrowHistoryRequest, type index_GetLoanBorrowHistoryResponse as GetLoanBorrowHistoryResponse, type index_GetLoanBorrowHistoryResponseRowsInner as GetLoanBorrowHistoryResponseRowsInner, type index_GetLoanLtvAdjustmentHistoryRequest as GetLoanLtvAdjustmentHistoryRequest, type index_GetLoanLtvAdjustmentHistoryResponse as GetLoanLtvAdjustmentHistoryResponse, type index_GetLoanLtvAdjustmentHistoryResponseRowsInner as GetLoanLtvAdjustmentHistoryResponseRowsInner, type index_GetLoanOngoingOrdersRequest as GetLoanOngoingOrdersRequest, type index_GetLoanOngoingOrdersResponse as GetLoanOngoingOrdersResponse, type index_GetLoanOngoingOrdersResponseRowsInner as GetLoanOngoingOrdersResponseRowsInner, type index_GetLoanRepaymentHistoryRequest as GetLoanRepaymentHistoryRequest, type index_GetLoanRepaymentHistoryResponse as GetLoanRepaymentHistoryResponse, type index_GetLoanRepaymentHistoryResponseRowsInner as GetLoanRepaymentHistoryResponseRowsInner, type index_GetLoanableAssetsDataRequest as GetLoanableAssetsDataRequest, type index_GetLoanableAssetsDataResponse as GetLoanableAssetsDataResponse, type index_GetLoanableAssetsDataResponseRowsInner as GetLoanableAssetsDataResponseRowsInner, index_RestAPI as RestAPI, index_StableRateApi as StableRateApi, type index_StableRateApiInterface as StableRateApiInterface };
3789
+ export { type index_CheckCollateralRepayRateRequest as CheckCollateralRepayRateRequest, type index_CheckCollateralRepayRateResponse as CheckCollateralRepayRateResponse, type index_CheckCollateralRepayRateStableRateRequest as CheckCollateralRepayRateStableRateRequest, type index_CheckCollateralRepayRateStableRateResponse as CheckCollateralRepayRateStableRateResponse, type index_CryptoLoanAdjustLtvRequest as CryptoLoanAdjustLtvRequest, type index_CryptoLoanAdjustLtvResponse as CryptoLoanAdjustLtvResponse, type index_CryptoLoanBorrowRequest as CryptoLoanBorrowRequest, type index_CryptoLoanBorrowResponse as CryptoLoanBorrowResponse, type index_CryptoLoanCustomizeMarginCallRequest as CryptoLoanCustomizeMarginCallRequest, type index_CryptoLoanCustomizeMarginCallResponse as CryptoLoanCustomizeMarginCallResponse, type index_CryptoLoanCustomizeMarginCallResponseRowsInner as CryptoLoanCustomizeMarginCallResponseRowsInner, type index_CryptoLoanRepayRequest as CryptoLoanRepayRequest, type index_CryptoLoanRepayResponse as CryptoLoanRepayResponse, type index_FlexibleLoanAdjustLtvRequest as FlexibleLoanAdjustLtvRequest, type index_FlexibleLoanAdjustLtvResponse as FlexibleLoanAdjustLtvResponse, type index_FlexibleLoanBorrowRequest as FlexibleLoanBorrowRequest, type index_FlexibleLoanBorrowResponse as FlexibleLoanBorrowResponse, type index_FlexibleLoanRepayRequest as FlexibleLoanRepayRequest, type index_FlexibleLoanRepayResponse as FlexibleLoanRepayResponse, index_FlexibleRateApi as FlexibleRateApi, type index_FlexibleRateApiInterface as FlexibleRateApiInterface, type index_GetCollateralAssetsDataRequest as GetCollateralAssetsDataRequest, type index_GetCollateralAssetsDataResponse as GetCollateralAssetsDataResponse, type index_GetCollateralAssetsDataResponseRowsInner as GetCollateralAssetsDataResponseRowsInner, type index_GetCryptoLoansIncomeHistoryRequest as GetCryptoLoansIncomeHistoryRequest, type index_GetCryptoLoansIncomeHistoryResponse as GetCryptoLoansIncomeHistoryResponse, type index_GetCryptoLoansIncomeHistoryResponseInner as GetCryptoLoansIncomeHistoryResponseInner, type index_GetFlexibleLoanAssetsDataRequest as GetFlexibleLoanAssetsDataRequest, type index_GetFlexibleLoanAssetsDataResponse as GetFlexibleLoanAssetsDataResponse, type index_GetFlexibleLoanAssetsDataResponseRowsInner as GetFlexibleLoanAssetsDataResponseRowsInner, type index_GetFlexibleLoanBorrowHistoryRequest as GetFlexibleLoanBorrowHistoryRequest, type index_GetFlexibleLoanBorrowHistoryResponse as GetFlexibleLoanBorrowHistoryResponse, type index_GetFlexibleLoanBorrowHistoryResponseRowsInner as GetFlexibleLoanBorrowHistoryResponseRowsInner, type index_GetFlexibleLoanCollateralAssetsDataRequest as GetFlexibleLoanCollateralAssetsDataRequest, type index_GetFlexibleLoanCollateralAssetsDataResponse as GetFlexibleLoanCollateralAssetsDataResponse, type index_GetFlexibleLoanCollateralAssetsDataResponseRowsInner as GetFlexibleLoanCollateralAssetsDataResponseRowsInner, type index_GetFlexibleLoanLiquidationHistoryRequest as GetFlexibleLoanLiquidationHistoryRequest, type index_GetFlexibleLoanLiquidationHistoryResponse as GetFlexibleLoanLiquidationHistoryResponse, type index_GetFlexibleLoanLiquidationHistoryResponseRowsInner as GetFlexibleLoanLiquidationHistoryResponseRowsInner, type index_GetFlexibleLoanLtvAdjustmentHistoryRequest as GetFlexibleLoanLtvAdjustmentHistoryRequest, type index_GetFlexibleLoanLtvAdjustmentHistoryResponse as GetFlexibleLoanLtvAdjustmentHistoryResponse, type index_GetFlexibleLoanLtvAdjustmentHistoryResponseRowsInner as GetFlexibleLoanLtvAdjustmentHistoryResponseRowsInner, type index_GetFlexibleLoanOngoingOrdersRequest as GetFlexibleLoanOngoingOrdersRequest, type index_GetFlexibleLoanOngoingOrdersResponse as GetFlexibleLoanOngoingOrdersResponse, type index_GetFlexibleLoanOngoingOrdersResponseRowsInner as GetFlexibleLoanOngoingOrdersResponseRowsInner, type index_GetFlexibleLoanRepaymentHistoryRequest as GetFlexibleLoanRepaymentHistoryRequest, type index_GetFlexibleLoanRepaymentHistoryResponse as GetFlexibleLoanRepaymentHistoryResponse, type index_GetFlexibleLoanRepaymentHistoryResponseRowsInner as GetFlexibleLoanRepaymentHistoryResponseRowsInner, type index_GetLoanBorrowHistoryRequest as GetLoanBorrowHistoryRequest, type index_GetLoanBorrowHistoryResponse as GetLoanBorrowHistoryResponse, type index_GetLoanBorrowHistoryResponseRowsInner as GetLoanBorrowHistoryResponseRowsInner, type index_GetLoanLtvAdjustmentHistoryRequest as GetLoanLtvAdjustmentHistoryRequest, type index_GetLoanLtvAdjustmentHistoryResponse as GetLoanLtvAdjustmentHistoryResponse, type index_GetLoanLtvAdjustmentHistoryResponseRowsInner as GetLoanLtvAdjustmentHistoryResponseRowsInner, type index_GetLoanOngoingOrdersRequest as GetLoanOngoingOrdersRequest, type index_GetLoanOngoingOrdersResponse as GetLoanOngoingOrdersResponse, type index_GetLoanOngoingOrdersResponseRowsInner as GetLoanOngoingOrdersResponseRowsInner, type index_GetLoanRepaymentHistoryRequest as GetLoanRepaymentHistoryRequest, type index_GetLoanRepaymentHistoryResponse as GetLoanRepaymentHistoryResponse, type index_GetLoanRepaymentHistoryResponseRowsInner as GetLoanRepaymentHistoryResponseRowsInner, type index_GetLoanableAssetsDataRequest as GetLoanableAssetsDataRequest, type index_GetLoanableAssetsDataResponse as GetLoanableAssetsDataResponse, type index_GetLoanableAssetsDataResponseRowsInner as GetLoanableAssetsDataResponseRowsInner, index_RestAPI as RestAPI, index_StableRateApi as StableRateApi, type index_StableRateApiInterface as StableRateApiInterface };
3918
3790
  }
3919
3791
 
3920
3792
  interface ConfigurationCryptoLoan {
package/dist/index.d.ts CHANGED
@@ -440,68 +440,6 @@ interface FlexibleLoanBorrowResponse {
440
440
  status?: string;
441
441
  }
442
442
 
443
- /**
444
- * Binance Crypto Loan REST API
445
- *
446
- * OpenAPI Specification for the Binance Crypto Loan REST API
447
- *
448
- * The version of the OpenAPI document: 1.0.0
449
- *
450
- *
451
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
452
- * https://openapi-generator.tech
453
- * Do not edit the class manually.
454
- */
455
- /**
456
- *
457
- * @export
458
- * @interface FlexibleLoanCollateralRepaymentResponse
459
- */
460
- interface FlexibleLoanCollateralRepaymentResponse {
461
- /**
462
- *
463
- * @type {string}
464
- * @memberof FlexibleLoanCollateralRepaymentResponse
465
- */
466
- loanCoin?: string;
467
- /**
468
- *
469
- * @type {string}
470
- * @memberof FlexibleLoanCollateralRepaymentResponse
471
- */
472
- collateralCoin?: string;
473
- /**
474
- *
475
- * @type {string}
476
- * @memberof FlexibleLoanCollateralRepaymentResponse
477
- */
478
- remainingDebt?: string;
479
- /**
480
- *
481
- * @type {string}
482
- * @memberof FlexibleLoanCollateralRepaymentResponse
483
- */
484
- remainingCollateral?: string;
485
- /**
486
- *
487
- * @type {boolean}
488
- * @memberof FlexibleLoanCollateralRepaymentResponse
489
- */
490
- fullRepayment?: boolean;
491
- /**
492
- *
493
- * @type {string}
494
- * @memberof FlexibleLoanCollateralRepaymentResponse
495
- */
496
- currentLTV?: string;
497
- /**
498
- *
499
- * @type {string}
500
- * @memberof FlexibleLoanCollateralRepaymentResponse
501
- */
502
- repayStatus?: string;
503
- }
504
-
505
443
  /**
506
444
  * Binance Crypto Loan REST API
507
445
  *
@@ -1959,17 +1897,6 @@ interface FlexibleRateApiInterface {
1959
1897
  * @memberof FlexibleRateApiInterface
1960
1898
  */
1961
1899
  flexibleLoanBorrow(requestParameters: FlexibleLoanBorrowRequest): Promise<RestApiResponse<FlexibleLoanBorrowResponse>>;
1962
- /**
1963
- *
1964
- * Weight: 6000
1965
- *
1966
- * @summary Flexible Loan Collateral Repayment (TRADE)
1967
- * @param {FlexibleLoanCollateralRepaymentRequest} requestParameters Request parameters.
1968
- *
1969
- * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1970
- * @memberof FlexibleRateApiInterface
1971
- */
1972
- flexibleLoanCollateralRepayment(requestParameters: FlexibleLoanCollateralRepaymentRequest): Promise<RestApiResponse<FlexibleLoanCollateralRepaymentResponse>>;
1973
1900
  /**
1974
1901
  * Flexible Loan Repay
1975
1902
  *
@@ -2162,42 +2089,6 @@ interface FlexibleLoanBorrowRequest {
2162
2089
  */
2163
2090
  readonly recvWindow?: number;
2164
2091
  }
2165
- /**
2166
- * Request parameters for flexibleLoanCollateralRepayment operation in FlexibleRateApi.
2167
- * @interface FlexibleLoanCollateralRepaymentRequest
2168
- */
2169
- interface FlexibleLoanCollateralRepaymentRequest {
2170
- /**
2171
- *
2172
- * @type {string}
2173
- * @memberof FlexibleRateApiFlexibleLoanCollateralRepayment
2174
- */
2175
- readonly loanCoin: string;
2176
- /**
2177
- *
2178
- * @type {string}
2179
- * @memberof FlexibleRateApiFlexibleLoanCollateralRepayment
2180
- */
2181
- readonly collateralCoin: string;
2182
- /**
2183
- * repay amount of loanCoin
2184
- * @type {number}
2185
- * @memberof FlexibleRateApiFlexibleLoanCollateralRepayment
2186
- */
2187
- readonly repayAmount: number;
2188
- /**
2189
- * Default: FALSE. TRUE: Full repayment; FALSE: Partial repayment, based on loanAmount
2190
- * @type {boolean}
2191
- * @memberof FlexibleRateApiFlexibleLoanCollateralRepayment
2192
- */
2193
- readonly fullRepayment?: boolean;
2194
- /**
2195
- *
2196
- * @type {number}
2197
- * @memberof FlexibleRateApiFlexibleLoanCollateralRepayment
2198
- */
2199
- readonly recvWindow?: number;
2200
- }
2201
2092
  /**
2202
2093
  * Request parameters for flexibleLoanRepay operation in FlexibleRateApi.
2203
2094
  * @interface FlexibleLoanRepayRequest
@@ -2233,6 +2124,12 @@ interface FlexibleLoanRepayRequest {
2233
2124
  * @memberof FlexibleRateApiFlexibleLoanRepay
2234
2125
  */
2235
2126
  readonly fullRepayment?: boolean;
2127
+ /**
2128
+ * Default: 1. 1: Repayment with loan asset; 2: Repayment with collateral
2129
+ * @type {number}
2130
+ * @memberof FlexibleRateApiFlexibleLoanRepay
2131
+ */
2132
+ readonly repaymentType?: number;
2236
2133
  /**
2237
2134
  *
2238
2135
  * @type {number}
@@ -2556,18 +2453,6 @@ declare class FlexibleRateApi implements FlexibleRateApiInterface {
2556
2453
  * @see {@link https://developers.binance.com/docs/crypto_loan/flexible-rate/trade/Flexible-Loan-Borrow Binance API Documentation}
2557
2454
  */
2558
2455
  flexibleLoanBorrow(requestParameters: FlexibleLoanBorrowRequest): Promise<RestApiResponse<FlexibleLoanBorrowResponse>>;
2559
- /**
2560
- *
2561
- * Weight: 6000
2562
- *
2563
- * @summary Flexible Loan Collateral Repayment (TRADE)
2564
- * @param {FlexibleLoanCollateralRepaymentRequest} requestParameters Request parameters.
2565
- * @returns {Promise<RestApiResponse<FlexibleLoanCollateralRepaymentResponse>>}
2566
- * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
2567
- * @memberof FlexibleRateApi
2568
- * @see {@link https://developers.binance.com/docs/crypto_loan/flexible-rate/trade/Flexible-Loan-Collateral-Repay Binance API Documentation}
2569
- */
2570
- flexibleLoanCollateralRepayment(requestParameters: FlexibleLoanCollateralRepaymentRequest): Promise<RestApiResponse<FlexibleLoanCollateralRepaymentResponse>>;
2571
2456
  /**
2572
2457
  * Flexible Loan Repay
2573
2458
  *
@@ -3553,17 +3438,6 @@ declare class RestAPI {
3553
3438
  * @see {@link https://developers.binance.com/docs/crypto_loan/flexible-rate/trade/Flexible-Loan-Borrow Binance API Documentation}
3554
3439
  */
3555
3440
  flexibleLoanBorrow(requestParameters: FlexibleLoanBorrowRequest): Promise<RestApiResponse<FlexibleLoanBorrowResponse>>;
3556
- /**
3557
- *
3558
- * Weight: 6000
3559
- *
3560
- * @summary Flexible Loan Collateral Repayment (TRADE)
3561
- * @param {FlexibleLoanCollateralRepaymentRequest} requestParameters Request parameters.
3562
- * @returns {Promise<RestApiResponse<FlexibleLoanCollateralRepaymentResponse>>}
3563
- * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
3564
- * @see {@link https://developers.binance.com/docs/crypto_loan/flexible-rate/trade/Flexible-Loan-Collateral-Repay Binance API Documentation}
3565
- */
3566
- flexibleLoanCollateralRepayment(requestParameters: FlexibleLoanCollateralRepaymentRequest): Promise<RestApiResponse<FlexibleLoanCollateralRepaymentResponse>>;
3567
3441
  /**
3568
3442
  * Flexible Loan Repay
3569
3443
  *
@@ -3859,8 +3733,6 @@ type index_FlexibleLoanAdjustLtvRequest = FlexibleLoanAdjustLtvRequest;
3859
3733
  type index_FlexibleLoanAdjustLtvResponse = FlexibleLoanAdjustLtvResponse;
3860
3734
  type index_FlexibleLoanBorrowRequest = FlexibleLoanBorrowRequest;
3861
3735
  type index_FlexibleLoanBorrowResponse = FlexibleLoanBorrowResponse;
3862
- type index_FlexibleLoanCollateralRepaymentRequest = FlexibleLoanCollateralRepaymentRequest;
3863
- type index_FlexibleLoanCollateralRepaymentResponse = FlexibleLoanCollateralRepaymentResponse;
3864
3736
  type index_FlexibleLoanRepayRequest = FlexibleLoanRepayRequest;
3865
3737
  type index_FlexibleLoanRepayResponse = FlexibleLoanRepayResponse;
3866
3738
  type index_FlexibleRateApi = FlexibleRateApi;
@@ -3914,7 +3786,7 @@ type index_StableRateApi = StableRateApi;
3914
3786
  declare const index_StableRateApi: typeof StableRateApi;
3915
3787
  type index_StableRateApiInterface = StableRateApiInterface;
3916
3788
  declare namespace index {
3917
- export { type index_CheckCollateralRepayRateRequest as CheckCollateralRepayRateRequest, type index_CheckCollateralRepayRateResponse as CheckCollateralRepayRateResponse, type index_CheckCollateralRepayRateStableRateRequest as CheckCollateralRepayRateStableRateRequest, type index_CheckCollateralRepayRateStableRateResponse as CheckCollateralRepayRateStableRateResponse, type index_CryptoLoanAdjustLtvRequest as CryptoLoanAdjustLtvRequest, type index_CryptoLoanAdjustLtvResponse as CryptoLoanAdjustLtvResponse, type index_CryptoLoanBorrowRequest as CryptoLoanBorrowRequest, type index_CryptoLoanBorrowResponse as CryptoLoanBorrowResponse, type index_CryptoLoanCustomizeMarginCallRequest as CryptoLoanCustomizeMarginCallRequest, type index_CryptoLoanCustomizeMarginCallResponse as CryptoLoanCustomizeMarginCallResponse, type index_CryptoLoanCustomizeMarginCallResponseRowsInner as CryptoLoanCustomizeMarginCallResponseRowsInner, type index_CryptoLoanRepayRequest as CryptoLoanRepayRequest, type index_CryptoLoanRepayResponse as CryptoLoanRepayResponse, type index_FlexibleLoanAdjustLtvRequest as FlexibleLoanAdjustLtvRequest, type index_FlexibleLoanAdjustLtvResponse as FlexibleLoanAdjustLtvResponse, type index_FlexibleLoanBorrowRequest as FlexibleLoanBorrowRequest, type index_FlexibleLoanBorrowResponse as FlexibleLoanBorrowResponse, type index_FlexibleLoanCollateralRepaymentRequest as FlexibleLoanCollateralRepaymentRequest, type index_FlexibleLoanCollateralRepaymentResponse as FlexibleLoanCollateralRepaymentResponse, type index_FlexibleLoanRepayRequest as FlexibleLoanRepayRequest, type index_FlexibleLoanRepayResponse as FlexibleLoanRepayResponse, index_FlexibleRateApi as FlexibleRateApi, type index_FlexibleRateApiInterface as FlexibleRateApiInterface, type index_GetCollateralAssetsDataRequest as GetCollateralAssetsDataRequest, type index_GetCollateralAssetsDataResponse as GetCollateralAssetsDataResponse, type index_GetCollateralAssetsDataResponseRowsInner as GetCollateralAssetsDataResponseRowsInner, type index_GetCryptoLoansIncomeHistoryRequest as GetCryptoLoansIncomeHistoryRequest, type index_GetCryptoLoansIncomeHistoryResponse as GetCryptoLoansIncomeHistoryResponse, type index_GetCryptoLoansIncomeHistoryResponseInner as GetCryptoLoansIncomeHistoryResponseInner, type index_GetFlexibleLoanAssetsDataRequest as GetFlexibleLoanAssetsDataRequest, type index_GetFlexibleLoanAssetsDataResponse as GetFlexibleLoanAssetsDataResponse, type index_GetFlexibleLoanAssetsDataResponseRowsInner as GetFlexibleLoanAssetsDataResponseRowsInner, type index_GetFlexibleLoanBorrowHistoryRequest as GetFlexibleLoanBorrowHistoryRequest, type index_GetFlexibleLoanBorrowHistoryResponse as GetFlexibleLoanBorrowHistoryResponse, type index_GetFlexibleLoanBorrowHistoryResponseRowsInner as GetFlexibleLoanBorrowHistoryResponseRowsInner, type index_GetFlexibleLoanCollateralAssetsDataRequest as GetFlexibleLoanCollateralAssetsDataRequest, type index_GetFlexibleLoanCollateralAssetsDataResponse as GetFlexibleLoanCollateralAssetsDataResponse, type index_GetFlexibleLoanCollateralAssetsDataResponseRowsInner as GetFlexibleLoanCollateralAssetsDataResponseRowsInner, type index_GetFlexibleLoanLiquidationHistoryRequest as GetFlexibleLoanLiquidationHistoryRequest, type index_GetFlexibleLoanLiquidationHistoryResponse as GetFlexibleLoanLiquidationHistoryResponse, type index_GetFlexibleLoanLiquidationHistoryResponseRowsInner as GetFlexibleLoanLiquidationHistoryResponseRowsInner, type index_GetFlexibleLoanLtvAdjustmentHistoryRequest as GetFlexibleLoanLtvAdjustmentHistoryRequest, type index_GetFlexibleLoanLtvAdjustmentHistoryResponse as GetFlexibleLoanLtvAdjustmentHistoryResponse, type index_GetFlexibleLoanLtvAdjustmentHistoryResponseRowsInner as GetFlexibleLoanLtvAdjustmentHistoryResponseRowsInner, type index_GetFlexibleLoanOngoingOrdersRequest as GetFlexibleLoanOngoingOrdersRequest, type index_GetFlexibleLoanOngoingOrdersResponse as GetFlexibleLoanOngoingOrdersResponse, type index_GetFlexibleLoanOngoingOrdersResponseRowsInner as GetFlexibleLoanOngoingOrdersResponseRowsInner, type index_GetFlexibleLoanRepaymentHistoryRequest as GetFlexibleLoanRepaymentHistoryRequest, type index_GetFlexibleLoanRepaymentHistoryResponse as GetFlexibleLoanRepaymentHistoryResponse, type index_GetFlexibleLoanRepaymentHistoryResponseRowsInner as GetFlexibleLoanRepaymentHistoryResponseRowsInner, type index_GetLoanBorrowHistoryRequest as GetLoanBorrowHistoryRequest, type index_GetLoanBorrowHistoryResponse as GetLoanBorrowHistoryResponse, type index_GetLoanBorrowHistoryResponseRowsInner as GetLoanBorrowHistoryResponseRowsInner, type index_GetLoanLtvAdjustmentHistoryRequest as GetLoanLtvAdjustmentHistoryRequest, type index_GetLoanLtvAdjustmentHistoryResponse as GetLoanLtvAdjustmentHistoryResponse, type index_GetLoanLtvAdjustmentHistoryResponseRowsInner as GetLoanLtvAdjustmentHistoryResponseRowsInner, type index_GetLoanOngoingOrdersRequest as GetLoanOngoingOrdersRequest, type index_GetLoanOngoingOrdersResponse as GetLoanOngoingOrdersResponse, type index_GetLoanOngoingOrdersResponseRowsInner as GetLoanOngoingOrdersResponseRowsInner, type index_GetLoanRepaymentHistoryRequest as GetLoanRepaymentHistoryRequest, type index_GetLoanRepaymentHistoryResponse as GetLoanRepaymentHistoryResponse, type index_GetLoanRepaymentHistoryResponseRowsInner as GetLoanRepaymentHistoryResponseRowsInner, type index_GetLoanableAssetsDataRequest as GetLoanableAssetsDataRequest, type index_GetLoanableAssetsDataResponse as GetLoanableAssetsDataResponse, type index_GetLoanableAssetsDataResponseRowsInner as GetLoanableAssetsDataResponseRowsInner, index_RestAPI as RestAPI, index_StableRateApi as StableRateApi, type index_StableRateApiInterface as StableRateApiInterface };
3789
+ export { type index_CheckCollateralRepayRateRequest as CheckCollateralRepayRateRequest, type index_CheckCollateralRepayRateResponse as CheckCollateralRepayRateResponse, type index_CheckCollateralRepayRateStableRateRequest as CheckCollateralRepayRateStableRateRequest, type index_CheckCollateralRepayRateStableRateResponse as CheckCollateralRepayRateStableRateResponse, type index_CryptoLoanAdjustLtvRequest as CryptoLoanAdjustLtvRequest, type index_CryptoLoanAdjustLtvResponse as CryptoLoanAdjustLtvResponse, type index_CryptoLoanBorrowRequest as CryptoLoanBorrowRequest, type index_CryptoLoanBorrowResponse as CryptoLoanBorrowResponse, type index_CryptoLoanCustomizeMarginCallRequest as CryptoLoanCustomizeMarginCallRequest, type index_CryptoLoanCustomizeMarginCallResponse as CryptoLoanCustomizeMarginCallResponse, type index_CryptoLoanCustomizeMarginCallResponseRowsInner as CryptoLoanCustomizeMarginCallResponseRowsInner, type index_CryptoLoanRepayRequest as CryptoLoanRepayRequest, type index_CryptoLoanRepayResponse as CryptoLoanRepayResponse, type index_FlexibleLoanAdjustLtvRequest as FlexibleLoanAdjustLtvRequest, type index_FlexibleLoanAdjustLtvResponse as FlexibleLoanAdjustLtvResponse, type index_FlexibleLoanBorrowRequest as FlexibleLoanBorrowRequest, type index_FlexibleLoanBorrowResponse as FlexibleLoanBorrowResponse, type index_FlexibleLoanRepayRequest as FlexibleLoanRepayRequest, type index_FlexibleLoanRepayResponse as FlexibleLoanRepayResponse, index_FlexibleRateApi as FlexibleRateApi, type index_FlexibleRateApiInterface as FlexibleRateApiInterface, type index_GetCollateralAssetsDataRequest as GetCollateralAssetsDataRequest, type index_GetCollateralAssetsDataResponse as GetCollateralAssetsDataResponse, type index_GetCollateralAssetsDataResponseRowsInner as GetCollateralAssetsDataResponseRowsInner, type index_GetCryptoLoansIncomeHistoryRequest as GetCryptoLoansIncomeHistoryRequest, type index_GetCryptoLoansIncomeHistoryResponse as GetCryptoLoansIncomeHistoryResponse, type index_GetCryptoLoansIncomeHistoryResponseInner as GetCryptoLoansIncomeHistoryResponseInner, type index_GetFlexibleLoanAssetsDataRequest as GetFlexibleLoanAssetsDataRequest, type index_GetFlexibleLoanAssetsDataResponse as GetFlexibleLoanAssetsDataResponse, type index_GetFlexibleLoanAssetsDataResponseRowsInner as GetFlexibleLoanAssetsDataResponseRowsInner, type index_GetFlexibleLoanBorrowHistoryRequest as GetFlexibleLoanBorrowHistoryRequest, type index_GetFlexibleLoanBorrowHistoryResponse as GetFlexibleLoanBorrowHistoryResponse, type index_GetFlexibleLoanBorrowHistoryResponseRowsInner as GetFlexibleLoanBorrowHistoryResponseRowsInner, type index_GetFlexibleLoanCollateralAssetsDataRequest as GetFlexibleLoanCollateralAssetsDataRequest, type index_GetFlexibleLoanCollateralAssetsDataResponse as GetFlexibleLoanCollateralAssetsDataResponse, type index_GetFlexibleLoanCollateralAssetsDataResponseRowsInner as GetFlexibleLoanCollateralAssetsDataResponseRowsInner, type index_GetFlexibleLoanLiquidationHistoryRequest as GetFlexibleLoanLiquidationHistoryRequest, type index_GetFlexibleLoanLiquidationHistoryResponse as GetFlexibleLoanLiquidationHistoryResponse, type index_GetFlexibleLoanLiquidationHistoryResponseRowsInner as GetFlexibleLoanLiquidationHistoryResponseRowsInner, type index_GetFlexibleLoanLtvAdjustmentHistoryRequest as GetFlexibleLoanLtvAdjustmentHistoryRequest, type index_GetFlexibleLoanLtvAdjustmentHistoryResponse as GetFlexibleLoanLtvAdjustmentHistoryResponse, type index_GetFlexibleLoanLtvAdjustmentHistoryResponseRowsInner as GetFlexibleLoanLtvAdjustmentHistoryResponseRowsInner, type index_GetFlexibleLoanOngoingOrdersRequest as GetFlexibleLoanOngoingOrdersRequest, type index_GetFlexibleLoanOngoingOrdersResponse as GetFlexibleLoanOngoingOrdersResponse, type index_GetFlexibleLoanOngoingOrdersResponseRowsInner as GetFlexibleLoanOngoingOrdersResponseRowsInner, type index_GetFlexibleLoanRepaymentHistoryRequest as GetFlexibleLoanRepaymentHistoryRequest, type index_GetFlexibleLoanRepaymentHistoryResponse as GetFlexibleLoanRepaymentHistoryResponse, type index_GetFlexibleLoanRepaymentHistoryResponseRowsInner as GetFlexibleLoanRepaymentHistoryResponseRowsInner, type index_GetLoanBorrowHistoryRequest as GetLoanBorrowHistoryRequest, type index_GetLoanBorrowHistoryResponse as GetLoanBorrowHistoryResponse, type index_GetLoanBorrowHistoryResponseRowsInner as GetLoanBorrowHistoryResponseRowsInner, type index_GetLoanLtvAdjustmentHistoryRequest as GetLoanLtvAdjustmentHistoryRequest, type index_GetLoanLtvAdjustmentHistoryResponse as GetLoanLtvAdjustmentHistoryResponse, type index_GetLoanLtvAdjustmentHistoryResponseRowsInner as GetLoanLtvAdjustmentHistoryResponseRowsInner, type index_GetLoanOngoingOrdersRequest as GetLoanOngoingOrdersRequest, type index_GetLoanOngoingOrdersResponse as GetLoanOngoingOrdersResponse, type index_GetLoanOngoingOrdersResponseRowsInner as GetLoanOngoingOrdersResponseRowsInner, type index_GetLoanRepaymentHistoryRequest as GetLoanRepaymentHistoryRequest, type index_GetLoanRepaymentHistoryResponse as GetLoanRepaymentHistoryResponse, type index_GetLoanRepaymentHistoryResponseRowsInner as GetLoanRepaymentHistoryResponseRowsInner, type index_GetLoanableAssetsDataRequest as GetLoanableAssetsDataRequest, type index_GetLoanableAssetsDataResponse as GetLoanableAssetsDataResponse, type index_GetLoanableAssetsDataResponseRowsInner as GetLoanableAssetsDataResponseRowsInner, index_RestAPI as RestAPI, index_StableRateApi as StableRateApi, type index_StableRateApiInterface as StableRateApiInterface };
3918
3790
  }
3919
3791
 
3920
3792
  interface ConfigurationCryptoLoan {
package/dist/index.js CHANGED
@@ -42,7 +42,7 @@ var import_common4 = require("@binance/common");
42
42
 
43
43
  // package.json
44
44
  var name = "@binance/crypto-loan";
45
- var version = "3.0.0";
45
+ var version = "5.0.0";
46
46
 
47
47
  // src/rest-api/index.ts
48
48
  var rest_api_exports = {};
@@ -173,48 +173,6 @@ var FlexibleRateApiAxiosParamCreator = function(configuration) {
173
173
  timeUnit: _timeUnit
174
174
  };
175
175
  },
176
- /**
177
- *
178
- * Weight: 6000
179
- *
180
- * @summary Flexible Loan Collateral Repayment (TRADE)
181
- * @param {string} loanCoin
182
- * @param {string} collateralCoin
183
- * @param {number} repayAmount repay amount of loanCoin
184
- * @param {boolean} [fullRepayment] Default: FALSE. TRUE: Full repayment; FALSE: Partial repayment, based on loanAmount
185
- * @param {number} [recvWindow]
186
- *
187
- * @throws {RequiredError}
188
- */
189
- flexibleLoanCollateralRepayment: async (loanCoin, collateralCoin, repayAmount, fullRepayment, recvWindow) => {
190
- (0, import_common.assertParamExists)("flexibleLoanCollateralRepayment", "loanCoin", loanCoin);
191
- (0, import_common.assertParamExists)("flexibleLoanCollateralRepayment", "collateralCoin", collateralCoin);
192
- (0, import_common.assertParamExists)("flexibleLoanCollateralRepayment", "repayAmount", repayAmount);
193
- const localVarQueryParameter = {};
194
- if (loanCoin !== void 0 && loanCoin !== null) {
195
- localVarQueryParameter["loanCoin"] = loanCoin;
196
- }
197
- if (collateralCoin !== void 0 && collateralCoin !== null) {
198
- localVarQueryParameter["collateralCoin"] = collateralCoin;
199
- }
200
- if (repayAmount !== void 0 && repayAmount !== null) {
201
- localVarQueryParameter["repayAmount"] = repayAmount;
202
- }
203
- if (fullRepayment !== void 0 && fullRepayment !== null) {
204
- localVarQueryParameter["fullRepayment"] = fullRepayment;
205
- }
206
- if (recvWindow !== void 0 && recvWindow !== null) {
207
- localVarQueryParameter["recvWindow"] = recvWindow;
208
- }
209
- let _timeUnit;
210
- if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
211
- return {
212
- endpoint: "/sapi/v2/loan/flexible/repay/collateral",
213
- method: "POST",
214
- params: localVarQueryParameter,
215
- timeUnit: _timeUnit
216
- };
217
- },
218
176
  /**
219
177
  * Flexible Loan Repay
220
178
  *
@@ -229,11 +187,12 @@ var FlexibleRateApiAxiosParamCreator = function(configuration) {
229
187
  * @param {number} repayAmount repay amount of loanCoin
230
188
  * @param {boolean} [collateralReturn] Default: TRUE. TRUE: Return extra collateral to spot account; FALSE: Keep extra collateral in the order, and lower LTV.
231
189
  * @param {boolean} [fullRepayment] Default: FALSE. TRUE: Full repayment; FALSE: Partial repayment, based on loanAmount
190
+ * @param {number} [repaymentType] Default: 1. 1: Repayment with loan asset; 2: Repayment with collateral
232
191
  * @param {number} [recvWindow]
233
192
  *
234
193
  * @throws {RequiredError}
235
194
  */
236
- flexibleLoanRepay: async (loanCoin, collateralCoin, repayAmount, collateralReturn, fullRepayment, recvWindow) => {
195
+ flexibleLoanRepay: async (loanCoin, collateralCoin, repayAmount, collateralReturn, fullRepayment, repaymentType, recvWindow) => {
237
196
  (0, import_common.assertParamExists)("flexibleLoanRepay", "loanCoin", loanCoin);
238
197
  (0, import_common.assertParamExists)("flexibleLoanRepay", "collateralCoin", collateralCoin);
239
198
  (0, import_common.assertParamExists)("flexibleLoanRepay", "repayAmount", repayAmount);
@@ -253,6 +212,9 @@ var FlexibleRateApiAxiosParamCreator = function(configuration) {
253
212
  if (fullRepayment !== void 0 && fullRepayment !== null) {
254
213
  localVarQueryParameter["fullRepayment"] = fullRepayment;
255
214
  }
215
+ if (repaymentType !== void 0 && repaymentType !== null) {
216
+ localVarQueryParameter["repaymentType"] = repaymentType;
217
+ }
256
218
  if (recvWindow !== void 0 && recvWindow !== null) {
257
219
  localVarQueryParameter["recvWindow"] = recvWindow;
258
220
  }
@@ -656,34 +618,6 @@ var FlexibleRateApi = class {
656
618
  { isSigned: true }
657
619
  );
658
620
  }
659
- /**
660
- *
661
- * Weight: 6000
662
- *
663
- * @summary Flexible Loan Collateral Repayment (TRADE)
664
- * @param {FlexibleLoanCollateralRepaymentRequest} requestParameters Request parameters.
665
- * @returns {Promise<RestApiResponse<FlexibleLoanCollateralRepaymentResponse>>}
666
- * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
667
- * @memberof FlexibleRateApi
668
- * @see {@link https://developers.binance.com/docs/crypto_loan/flexible-rate/trade/Flexible-Loan-Collateral-Repay Binance API Documentation}
669
- */
670
- async flexibleLoanCollateralRepayment(requestParameters) {
671
- const localVarAxiosArgs = await this.localVarAxiosParamCreator.flexibleLoanCollateralRepayment(
672
- requestParameters?.loanCoin,
673
- requestParameters?.collateralCoin,
674
- requestParameters?.repayAmount,
675
- requestParameters?.fullRepayment,
676
- requestParameters?.recvWindow
677
- );
678
- return (0, import_common.sendRequest)(
679
- this.configuration,
680
- localVarAxiosArgs.endpoint,
681
- localVarAxiosArgs.method,
682
- localVarAxiosArgs.params,
683
- localVarAxiosArgs?.timeUnit,
684
- { isSigned: true }
685
- );
686
- }
687
621
  /**
688
622
  * Flexible Loan Repay
689
623
  *
@@ -706,6 +640,7 @@ var FlexibleRateApi = class {
706
640
  requestParameters?.repayAmount,
707
641
  requestParameters?.collateralReturn,
708
642
  requestParameters?.fullRepayment,
643
+ requestParameters?.repaymentType,
709
644
  requestParameters?.recvWindow
710
645
  );
711
646
  return (0, import_common.sendRequest)(
@@ -1897,19 +1832,6 @@ var RestAPI = class {
1897
1832
  flexibleLoanBorrow(requestParameters) {
1898
1833
  return this.flexibleRateApi.flexibleLoanBorrow(requestParameters);
1899
1834
  }
1900
- /**
1901
- *
1902
- * Weight: 6000
1903
- *
1904
- * @summary Flexible Loan Collateral Repayment (TRADE)
1905
- * @param {FlexibleLoanCollateralRepaymentRequest} requestParameters Request parameters.
1906
- * @returns {Promise<RestApiResponse<FlexibleLoanCollateralRepaymentResponse>>}
1907
- * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1908
- * @see {@link https://developers.binance.com/docs/crypto_loan/flexible-rate/trade/Flexible-Loan-Collateral-Repay Binance API Documentation}
1909
- */
1910
- flexibleLoanCollateralRepayment(requestParameters) {
1911
- return this.flexibleRateApi.flexibleLoanCollateralRepayment(requestParameters);
1912
- }
1913
1835
  /**
1914
1836
  * Flexible Loan Repay
1915
1837
  *