Skip to main content

Flexible Loan Repay(TRADE)

API Description#

Flexible Loan Repay

HTTP Request#

POST /sapi/v1/loan/flexible/repay

Request Weight#

6000

Request Parameters#

NameTypeMandatoryDescription
loanCoinSTRINGYES
collateralCoinDECIMALYES
repayAmountDECIMALYES
collateralReturnBOOLEANNODefault: TRUE. TRUE: Return extra collateral to spot account; FALSE: Keep extra collateral in the order, and lower LTV.
fullRepaymentBOOLEANNODefault: FALSE. TRUE: Full repayment; FALSE: Partial repayment, based on loanAmount
recvWindowLONGNO
timestampLONGYES
  • repayAmount is mandatory even fullRepayment = FALSE

Response Example#

{  "loanCoin": "BUSD",  "collateralCoin": "BNB",  "remainingDebt": "100.5",  "remainingCollateral": "5.253",  "fullRepayment": false,  "currentLTV": "0.25",  "repayStatus": "Repaid" // Repaid, Repaying, Failed}