Skip to main content

Get Borrow Orders History

Permission: "Spot trade"
UID rate limit: 5 req / second

HTTP Request

GET /v5/crypto-loan-flexible/borrow-history

Request Parameters

ParameterRequiredTypeComments
orderIdfalsestringLoan order ID
loanCurrencyfalsestringLoan coin name
limitfalsestringLimit for data size per page. [1, 100]. Default: 10
cursorfalsestringCursor. Use the nextPageCursor token from the response to retrieve the next page of the result set

Response Parameters

ParameterTypeComments
listarrayObject
> borrowTimelongThe timestamp to borrow
> initialLoanAmountstringLoan amount
> loanCurrencystringLoan coin
> orderIdstringLoan order ID
> statusintegerLoan order status 1: success; 2: processing; 3: fail
nextPageCursorstringRefer to the cursor request parameter

Request Example

GET /v5/crypto-loan-flexible/borrow-history?limit=2 HTTP/1.1
Host: api-testnet.bybit.com
X-BAPI-SIGN: XXXXXX
X-BAPI-API-KEY: XXXXXX
X-BAPI-TIMESTAMP: 1752570519918
X-BAPI-RECV-WINDOW: 5000

Response Example

{
"retCode": 0,
"retMsg": "ok",
"result": {
"list": [
{
"borrowTime": 1752569950643,
"initialLoanAmount": "0.006",
"loanCurrency": "BTC",
"orderId": "1364",
"status": 1
},
{
"borrowTime": 1752569209643,
"initialLoanAmount": "0.1",
"loanCurrency": "BTC",
"orderId": "1363",
"status": 1
}
],
"nextPageCursor": "1363"
},
"retExtInfo": {},
"time": 1752570519414
}