Borrowing / Repayment History

Query borrow and repayment orders. Returns data from the last 90 days at most.

Permission

  • Applies to both primary user and trading portfolio's API Key.
  • Permission: READ.

Rate Limit

  • 20 requests per second

Request

Field nameTypeNecessaryRemarks
orderIdStringNExact match by system order ID (returned from borrow/repay). If omitted, returns all.
clientOrderIdStringNExact match by client idempotency ID (same as provided when placing the order). If omitted, returns all.
coinStringNFilter by currency. If omitted, returns all.
typeStringNOrder type: borrow or repay. If omitted, returns all.
startTimeint64NStart timestamp in milliseconds. Defaults to 7 days ago.
endTimeint64NEnd timestamp in milliseconds. Defaults to current time.
pageintegerNPage number, starting from 1. Defaults to 1.
pageSizeintegerNPage size. Defaults to 1000. Maximum 1000.

Response

Field nameTypeRemarks
orderIdStringSystem order ID.
clientOrderIdStringClient idempotency ID (provided when placing the order).
exchangeStringExchange name, e.g., BINANCE, OKX.
typeStringOrder type: borrow or repay.
coinStringCurrency.
amountStringBorrow or repayment amount.
statusStringfilled
createTimeint64Order creation timestamp in milliseconds.
Headers
string
enum
Defaults to application/json

Generated from available response content types

Allowed:
Responses

Language
LoadingLoading…
Response
Choose an example:
text/plain
application/json