Crypto Loan Repay(TRADE)
API Description
Crypto Loan Repay
HTTP Request
POST /sapi/v1/loan/repay
Request Weight(UID)
6000
Request Parameters
Name | Type | Mandatory | Description |
---|---|---|---|
orderId | LONG | YES | |
amount | DECIMAL | YES | |
type | INT | NO | Default: 1. 1 for "repay with borrowed coin"; 2 for "repay with collateral". |
collateralReturn | BOOLEAN | NO | Default: TRUE. TRUE: Return extra collateral to spot account; FALSE: Keep extra collateral in the order. |
recvWindow | LONG | NO | |
timestamp | LONG | YES |
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
}