Borrow History
HTTP Request
GET /unified/v3/private/account/borrow-history
Request Parameters
| Parameter | Required | Type | Comments |
|---|---|---|---|
| currency | false | string | USDC、USDT、BTC、ETH |
| startTime | integer | integer | The start timestamp (ms) |
| endTime | integer | integer | The end time. timestamp (ms) |
| direction | false | string | Direction: prev: previous page, next: next page, Default is next |
| limit | integer | integer | Limit for data size per page. [1, 50]. Default: 20 |
| cursor | false | string | Cursor. Use the nextPageCursor token from the response to retrieve the next page of the result set |
Response Parameters
| Parameter | Type | Comments |
|---|---|---|
| nextPageCursor | string | Cursor. Used to pagination |
| currency | string | null |
| list | array | Object |
| > currency | string | USDC、USDT、BTC、ETH |
| > createTime | integer | Created timestamp (ms) |
| > borrowCost | string | Interest |
| > hourlyBorrowRate | string | Hourly Borrow Rate |
| > InterestBearingBorrowSize | string | Interest Bearing Borrow Size |
| > costExemption | string | Cost 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
}