Crypto Loans
Crypto Loan Repay (TRADE)
Weight(UID): 6000
post/sapi/v1/loan/repay
Query parameters
orderIdinteger required
Example:123456789
Order ID
amountnumber double required
Example:100.5
Repayment Amount
typeinteger
Example:1
Default: 1. 1 for 'repay with borrowed coin'; 2 for 'repay with collateral'.
collateralReturnboolean
Example:true
Default: TRUE. TRUE: Return extra collateral to spot account; FALSE: Keep extra collateral in the order.
recvWindowinteger
Example:5000
The value cannot be greater than 60000
timestampinteger required
UTC timestamp in ms
signaturestring required
Signature
Response
Repayment Information
Example response
{
"loanCoin": "BUSD",
"remainingPrincipal": "100.5",
"remainingInterest": "0",
"collateralCoin": "BNB",
"remainingCollateral": "5.253",
"currentLTV": "0.25",
"repayStatus": "Repaying"
}