Skip to main content

Borrow History

HTTP Request

GET /unified/v3/private/account/borrow-history

Request Parameters

ParameterRequiredTypeComments
currencyfalsestringUSDC、USDT、BTC、ETH
startTimeintegerintegerThe start timestamp (ms)
endTimeintegerintegerThe end time. timestamp (ms)
directionfalsestringDirection: prev: previous page, next: next page, Default is next
limitintegerintegerLimit for data size per page. [1, 50]. Default: 20
cursorfalsestringCursor. Use the nextPageCursor token from the response to retrieve the next page of the result set

Response Parameters

ParameterTypeComments
nextPageCursorstringCursor. Used to pagination
currencystringnull
listarrayObject
> currencystringUSDC、USDT、BTC、ETH
> createTimeintegerCreated timestamp (ms)
> borrowCoststringInterest
> hourlyBorrowRatestringHourly Borrow Rate
> InterestBearingBorrowSizestringInterest Bearing Borrow Size
> costExemptionstringCost exemption

Request Example

GET /unified/v3/private/account/borrow-history?limit=1 HTTP/1.1
Host: api-testnet.bybit.com
X-BAPI-SIGN: XXXXX
X-BAPI-API-KEY: XXXXX
X-BAPI-TIMESTAMP: 1673078071099
X-BAPI-RECV-WINDOW: 5000

Response Example

{
"retCode": 0,
"retMsg": "OK",
"result": {
"nextPageCursor": "1625%3A0%2C1625%3A0",
"currency": null,
"list": [
{
"createTime": 1667282700269,
"costExemption": "0.00063175360150218",
"InterestBearingBorrowSize": "0",
"currency": "USDT",
"hourlyBorrowRate": "0.000001142",
"borrowCost": "0"
}
]
},
"retExtInfo": {},
"time": 1673078071991
}