@binance/crypto-loan 2.0.0 → 4.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
@@ -287,110 +287,53 @@ interface CryptoLoanCustomizeMarginCallResponse {
287
287
  /**
288
288
  *
289
289
  * @export
290
- * @interface CryptoLoanRepayResponse1
290
+ * @interface CryptoLoanRepayResponse
291
291
  */
292
- interface CryptoLoanRepayResponse1 {
292
+ interface CryptoLoanRepayResponse {
293
293
  /**
294
294
  *
295
295
  * @type {string}
296
- * @memberof CryptoLoanRepayResponse1
296
+ * @memberof CryptoLoanRepayResponse
297
297
  */
298
298
  loanCoin?: string;
299
299
  /**
300
300
  *
301
301
  * @type {string}
302
- * @memberof CryptoLoanRepayResponse1
302
+ * @memberof CryptoLoanRepayResponse
303
303
  */
304
304
  remainingPrincipal?: string;
305
305
  /**
306
306
  *
307
307
  * @type {string}
308
- * @memberof CryptoLoanRepayResponse1
308
+ * @memberof CryptoLoanRepayResponse
309
309
  */
310
310
  remainingInterest?: string;
311
311
  /**
312
312
  *
313
313
  * @type {string}
314
- * @memberof CryptoLoanRepayResponse1
314
+ * @memberof CryptoLoanRepayResponse
315
315
  */
316
316
  collateralCoin?: string;
317
317
  /**
318
318
  *
319
319
  * @type {string}
320
- * @memberof CryptoLoanRepayResponse1
320
+ * @memberof CryptoLoanRepayResponse
321
321
  */
322
322
  remainingCollateral?: string;
323
323
  /**
324
324
  *
325
325
  * @type {string}
326
- * @memberof CryptoLoanRepayResponse1
326
+ * @memberof CryptoLoanRepayResponse
327
327
  */
328
328
  currentLTV?: string;
329
329
  /**
330
330
  *
331
331
  * @type {string}
332
- * @memberof CryptoLoanRepayResponse1
332
+ * @memberof CryptoLoanRepayResponse
333
333
  */
334
334
  repayStatus?: string;
335
335
  }
336
336
 
337
- /**
338
- * Binance Crypto Loan REST API
339
- *
340
- * OpenAPI Specification for the Binance Crypto Loan REST API
341
- *
342
- * The version of the OpenAPI document: 1.0.0
343
- *
344
- *
345
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
346
- * https://openapi-generator.tech
347
- * Do not edit the class manually.
348
- */
349
- /**
350
- *
351
- * @export
352
- * @interface CryptoLoanRepayResponse2
353
- */
354
- interface CryptoLoanRepayResponse2 {
355
- /**
356
- *
357
- * @type {string}
358
- * @memberof CryptoLoanRepayResponse2
359
- */
360
- loanCoin?: string;
361
- /**
362
- *
363
- * @type {string}
364
- * @memberof CryptoLoanRepayResponse2
365
- */
366
- collateralCoin?: string;
367
- /**
368
- *
369
- * @type {string}
370
- * @memberof CryptoLoanRepayResponse2
371
- */
372
- repayStatus?: string;
373
- }
374
-
375
- /**
376
- * Binance Crypto Loan REST API
377
- *
378
- * OpenAPI Specification for the Binance Crypto Loan REST API
379
- *
380
- * The version of the OpenAPI document: 1.0.0
381
- *
382
- *
383
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
384
- * https://openapi-generator.tech
385
- * Do not edit the class manually.
386
- */
387
-
388
- /**
389
- * @type CryptoLoanRepayResponse
390
- * @export
391
- */
392
- type CryptoLoanRepayResponse = CryptoLoanRepayResponse1 | CryptoLoanRepayResponse2;
393
-
394
337
  /**
395
338
  * Binance Crypto Loan REST API
396
339
  *
@@ -2290,6 +2233,12 @@ interface FlexibleLoanRepayRequest {
2290
2233
  * @memberof FlexibleRateApiFlexibleLoanRepay
2291
2234
  */
2292
2235
  readonly fullRepayment?: boolean;
2236
+ /**
2237
+ * Default: 1. 1: Repayment with loan asset; 2: Repayment with collateral
2238
+ * @type {number}
2239
+ * @memberof FlexibleRateApiFlexibleLoanRepay
2240
+ */
2241
+ readonly repaymentType?: number;
2293
2242
  /**
2294
2243
  *
2295
2244
  * @type {number}
@@ -3912,8 +3861,6 @@ type index_CryptoLoanCustomizeMarginCallResponse = CryptoLoanCustomizeMarginCall
3912
3861
  type index_CryptoLoanCustomizeMarginCallResponseRowsInner = CryptoLoanCustomizeMarginCallResponseRowsInner;
3913
3862
  type index_CryptoLoanRepayRequest = CryptoLoanRepayRequest;
3914
3863
  type index_CryptoLoanRepayResponse = CryptoLoanRepayResponse;
3915
- type index_CryptoLoanRepayResponse1 = CryptoLoanRepayResponse1;
3916
- type index_CryptoLoanRepayResponse2 = CryptoLoanRepayResponse2;
3917
3864
  type index_FlexibleLoanAdjustLtvRequest = FlexibleLoanAdjustLtvRequest;
3918
3865
  type index_FlexibleLoanAdjustLtvResponse = FlexibleLoanAdjustLtvResponse;
3919
3866
  type index_FlexibleLoanBorrowRequest = FlexibleLoanBorrowRequest;
@@ -3973,7 +3920,7 @@ type index_StableRateApi = StableRateApi;
3973
3920
  declare const index_StableRateApi: typeof StableRateApi;
3974
3921
  type index_StableRateApiInterface = StableRateApiInterface;
3975
3922
  declare namespace index {
3976
- 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_CryptoLoanRepayResponse1 as CryptoLoanRepayResponse1, type index_CryptoLoanRepayResponse2 as CryptoLoanRepayResponse2, 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 };
3923
+ 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 };
3977
3924
  }
3978
3925
 
3979
3926
  interface ConfigurationCryptoLoan {
package/dist/index.d.ts CHANGED
@@ -287,110 +287,53 @@ interface CryptoLoanCustomizeMarginCallResponse {
287
287
  /**
288
288
  *
289
289
  * @export
290
- * @interface CryptoLoanRepayResponse1
290
+ * @interface CryptoLoanRepayResponse
291
291
  */
292
- interface CryptoLoanRepayResponse1 {
292
+ interface CryptoLoanRepayResponse {
293
293
  /**
294
294
  *
295
295
  * @type {string}
296
- * @memberof CryptoLoanRepayResponse1
296
+ * @memberof CryptoLoanRepayResponse
297
297
  */
298
298
  loanCoin?: string;
299
299
  /**
300
300
  *
301
301
  * @type {string}
302
- * @memberof CryptoLoanRepayResponse1
302
+ * @memberof CryptoLoanRepayResponse
303
303
  */
304
304
  remainingPrincipal?: string;
305
305
  /**
306
306
  *
307
307
  * @type {string}
308
- * @memberof CryptoLoanRepayResponse1
308
+ * @memberof CryptoLoanRepayResponse
309
309
  */
310
310
  remainingInterest?: string;
311
311
  /**
312
312
  *
313
313
  * @type {string}
314
- * @memberof CryptoLoanRepayResponse1
314
+ * @memberof CryptoLoanRepayResponse
315
315
  */
316
316
  collateralCoin?: string;
317
317
  /**
318
318
  *
319
319
  * @type {string}
320
- * @memberof CryptoLoanRepayResponse1
320
+ * @memberof CryptoLoanRepayResponse
321
321
  */
322
322
  remainingCollateral?: string;
323
323
  /**
324
324
  *
325
325
  * @type {string}
326
- * @memberof CryptoLoanRepayResponse1
326
+ * @memberof CryptoLoanRepayResponse
327
327
  */
328
328
  currentLTV?: string;
329
329
  /**
330
330
  *
331
331
  * @type {string}
332
- * @memberof CryptoLoanRepayResponse1
332
+ * @memberof CryptoLoanRepayResponse
333
333
  */
334
334
  repayStatus?: string;
335
335
  }
336
336
 
337
- /**
338
- * Binance Crypto Loan REST API
339
- *
340
- * OpenAPI Specification for the Binance Crypto Loan REST API
341
- *
342
- * The version of the OpenAPI document: 1.0.0
343
- *
344
- *
345
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
346
- * https://openapi-generator.tech
347
- * Do not edit the class manually.
348
- */
349
- /**
350
- *
351
- * @export
352
- * @interface CryptoLoanRepayResponse2
353
- */
354
- interface CryptoLoanRepayResponse2 {
355
- /**
356
- *
357
- * @type {string}
358
- * @memberof CryptoLoanRepayResponse2
359
- */
360
- loanCoin?: string;
361
- /**
362
- *
363
- * @type {string}
364
- * @memberof CryptoLoanRepayResponse2
365
- */
366
- collateralCoin?: string;
367
- /**
368
- *
369
- * @type {string}
370
- * @memberof CryptoLoanRepayResponse2
371
- */
372
- repayStatus?: string;
373
- }
374
-
375
- /**
376
- * Binance Crypto Loan REST API
377
- *
378
- * OpenAPI Specification for the Binance Crypto Loan REST API
379
- *
380
- * The version of the OpenAPI document: 1.0.0
381
- *
382
- *
383
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
384
- * https://openapi-generator.tech
385
- * Do not edit the class manually.
386
- */
387
-
388
- /**
389
- * @type CryptoLoanRepayResponse
390
- * @export
391
- */
392
- type CryptoLoanRepayResponse = CryptoLoanRepayResponse1 | CryptoLoanRepayResponse2;
393
-
394
337
  /**
395
338
  * Binance Crypto Loan REST API
396
339
  *
@@ -2290,6 +2233,12 @@ interface FlexibleLoanRepayRequest {
2290
2233
  * @memberof FlexibleRateApiFlexibleLoanRepay
2291
2234
  */
2292
2235
  readonly fullRepayment?: boolean;
2236
+ /**
2237
+ * Default: 1. 1: Repayment with loan asset; 2: Repayment with collateral
2238
+ * @type {number}
2239
+ * @memberof FlexibleRateApiFlexibleLoanRepay
2240
+ */
2241
+ readonly repaymentType?: number;
2293
2242
  /**
2294
2243
  *
2295
2244
  * @type {number}
@@ -3912,8 +3861,6 @@ type index_CryptoLoanCustomizeMarginCallResponse = CryptoLoanCustomizeMarginCall
3912
3861
  type index_CryptoLoanCustomizeMarginCallResponseRowsInner = CryptoLoanCustomizeMarginCallResponseRowsInner;
3913
3862
  type index_CryptoLoanRepayRequest = CryptoLoanRepayRequest;
3914
3863
  type index_CryptoLoanRepayResponse = CryptoLoanRepayResponse;
3915
- type index_CryptoLoanRepayResponse1 = CryptoLoanRepayResponse1;
3916
- type index_CryptoLoanRepayResponse2 = CryptoLoanRepayResponse2;
3917
3864
  type index_FlexibleLoanAdjustLtvRequest = FlexibleLoanAdjustLtvRequest;
3918
3865
  type index_FlexibleLoanAdjustLtvResponse = FlexibleLoanAdjustLtvResponse;
3919
3866
  type index_FlexibleLoanBorrowRequest = FlexibleLoanBorrowRequest;
@@ -3973,7 +3920,7 @@ type index_StableRateApi = StableRateApi;
3973
3920
  declare const index_StableRateApi: typeof StableRateApi;
3974
3921
  type index_StableRateApiInterface = StableRateApiInterface;
3975
3922
  declare namespace index {
3976
- 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_CryptoLoanRepayResponse1 as CryptoLoanRepayResponse1, type index_CryptoLoanRepayResponse2 as CryptoLoanRepayResponse2, 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 };
3923
+ 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 };
3977
3924
  }
3978
3925
 
3979
3926
  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 = "2.0.0";
45
+ var version = "4.0.0";
46
46
 
47
47
  // src/rest-api/index.ts
48
48
  var rest_api_exports = {};
@@ -229,11 +229,12 @@ var FlexibleRateApiAxiosParamCreator = function(configuration) {
229
229
  * @param {number} repayAmount repay amount of loanCoin
230
230
  * @param {boolean} [collateralReturn] Default: TRUE. TRUE: Return extra collateral to spot account; FALSE: Keep extra collateral in the order, and lower LTV.
231
231
  * @param {boolean} [fullRepayment] Default: FALSE. TRUE: Full repayment; FALSE: Partial repayment, based on loanAmount
232
+ * @param {number} [repaymentType] Default: 1. 1: Repayment with loan asset; 2: Repayment with collateral
232
233
  * @param {number} [recvWindow]
233
234
  *
234
235
  * @throws {RequiredError}
235
236
  */
236
- flexibleLoanRepay: async (loanCoin, collateralCoin, repayAmount, collateralReturn, fullRepayment, recvWindow) => {
237
+ flexibleLoanRepay: async (loanCoin, collateralCoin, repayAmount, collateralReturn, fullRepayment, repaymentType, recvWindow) => {
237
238
  (0, import_common.assertParamExists)("flexibleLoanRepay", "loanCoin", loanCoin);
238
239
  (0, import_common.assertParamExists)("flexibleLoanRepay", "collateralCoin", collateralCoin);
239
240
  (0, import_common.assertParamExists)("flexibleLoanRepay", "repayAmount", repayAmount);
@@ -253,6 +254,9 @@ var FlexibleRateApiAxiosParamCreator = function(configuration) {
253
254
  if (fullRepayment !== void 0 && fullRepayment !== null) {
254
255
  localVarQueryParameter["fullRepayment"] = fullRepayment;
255
256
  }
257
+ if (repaymentType !== void 0 && repaymentType !== null) {
258
+ localVarQueryParameter["repaymentType"] = repaymentType;
259
+ }
256
260
  if (recvWindow !== void 0 && recvWindow !== null) {
257
261
  localVarQueryParameter["recvWindow"] = recvWindow;
258
262
  }
@@ -706,6 +710,7 @@ var FlexibleRateApi = class {
706
710
  requestParameters?.repayAmount,
707
711
  requestParameters?.collateralReturn,
708
712
  requestParameters?.fullRepayment,
713
+ requestParameters?.repaymentType,
709
714
  requestParameters?.recvWindow
710
715
  );
711
716
  return (0, import_common.sendRequest)(