v26

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

Get Crypto Loans Borrow 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/v1/loan/borrow/history

Query parameters

orderIdinteger
Example:10

orderId in POST /sapi/v1/loan/borrow

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:10

default 10, max 100

recvWindowinteger
Example:5000

The value cannot be greater than 60000

timestampinteger required

UTC timestamp in ms

signaturestring required

Signature

Response

Borrow History

totalinteger required

Example response

{
  "rows": [
    {
      "orderId": 100000001,
      "loanCoin": "BUSD",
      "initialLoanAmount": "10000",
      "hourlyInterestRate": "0.000057",
      "loanTerm": "7",
      "collateralCoin": "BNB",
      "initialCollateralAmount": "49.27565492",
      "borrowTime": 1575018510000,
      "status": "Accruing_Interest, Overdue, Liquidating, Repaying, Repaid, Liquidated, Pending, Failed"
    }
  ],
  "total": 1
}