v26

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

Repay - Get Flexible Loan Repayment History (USER_DATA)

  • If startTime and endTime are not sent, the recent 90-day data will be returned.
  • The max interval between startTime and endTime is 180 days.

Weight(IP): 400

get/sapi/v2/loan/flexible/repay/history

Query parameters

loanCoinstring
Example:BUSD

Coin loaned

collateralCoinstring
Example:BNB

Coin used as collateral

startTimeinteger

UTC timestamp in ms

endTimeinteger

UTC timestamp in ms

currentinteger
Example:1

Current querying page. Start from 1. Default:1

limitinteger
Example:5

Default 500; max 1000.

recvWindowinteger
Example:5000

The value cannot be greater than 60000

timestampinteger required

UTC timestamp in ms

signaturestring required

Signature

Response

Loan repay history

totalinteger required

Example response

{
  "rows": [
    {
      "loanCoin": "BUSD",
      "repayAmount": "10000",
      "collateralCoin": "BNB",
      "collateralReturn": "100",
      "repayStatus": "Repaid",
      "repayTime": 1575018510000
    }
  ],
  "total": 1
}