Flexible Loan Collateral Repayment (TRADE)
HTTP Request
POST /sapi/v2/loan/flexible/repay/collateral
** Request Weight(UID) ** 6000
Parameters:
Name | Type | Mandatory | Description |
---|---|---|---|
loanCoin | STRING | YES | |
collateralCoin | STRING | YES | |
repayAmount | DECIMAL | YES | |
fullRepayment | BOOLEAN | NO | Default: FALSE. TRUE: Full repayment; FALSE: Partial repayment, based on loanAmount |
recvWindow | LONG | NO | |
timestamp | LONG | YES |
- repayAmount refers to the loan amount the user would like to repay
Response Example
{
"loanCoin":"BUSD",
"collateralCoin":"BNB",
"remainingDebt":"100.5",
"remainingCollateral":"5.253",
"fullRepayment":false,
"currentLTV":"0.25",
"repayStatus":"Repaid"// Repaid, Repaying, Failed
}