v26

latestOpenAPI 3.0.2raw.githubusercontent.com2024-10-0834042975.6 KB
Crypto Loans

Check Collateral Repay Rate (USER_DATA)

Get the the rate of collateral coin / loan coin when using collateral repay, the rate will be valid within 8 second.

Weight(IP): 6000

get/sapi/v1/loan/repay/collateral/rate

Query parameters

loanCoinstring required
Example:BUSD

Coin loaned

collateralCoinstring required
Example:BNB

Coin used as collateral

repayAmountnumber float required

repay amount of loanCoin

recvWindowinteger
Example:5000

The value cannot be greater than 60000

timestampinteger required

UTC timestamp in ms

signaturestring required

Signature

Response

Collateral Assets Data

loanCoinstring required
collateralCoinstring required
repayAmountstring required
ratestring required

rate of collateral coin/loan coin

Example response

{
  "loanCoin": "BUSD",
  "collateralCoin": "BUSD",
  "repayAmount": "1000",
  "rate": "300.36781234"
}