Skip to main content

Crypto Loan Repay(TRADE)

API Description#

Crypto Loan Repay

HTTP Request#

POST /sapi/v1/loan/repay

Request Weight(UID)#

6000

Request Parameters#

NameTypeMandatoryDescription
orderIdLONGYES
amountDECIMALYES
typeINTNODefault: 1. 1 for "repay with borrowed coin"; 2 for "repay with collateral".
collateralReturnBOOLEANNODefault: TRUE. TRUE: Return extra collateral to spot account; FALSE: Keep extra collateral in the order.
recvWindowLONGNO
timestampLONGYES

Response Example#

{  "loanCoin": "BUSD"  "remainingPrincipal": "100.5"  "remainingInterest": "0"  "collateralCoin": "BNB"  "remainingCollateral": "5.253"  "currentLTV": "0.25"  "repayStatus": "Repaid" // Repaid, Repaying}
or
{  "loanCoin": "BUSD"  "collateralCoin": "BNB"  "repayStatus": "Repaying" // Repaid, Repaying}