Skip to main content

Get APR History

info

Does not need authentication.

note

You can query up to 6 months of historical APR data.

HTTP Request

GET/v5/earn/apr-history

Request Parameters

ParameterRequiredTypeComments
categorytruestringFlexibleSaving,OnChain
productIdtruestringProduct ID, from GET /v5/earn/product
startTimefalseintegerStart timestamp (ms). If neither startTime nor endTime is provided, the last 7 days of data is returned by default
endTimefalseintegerEnd timestamp (ms). The difference between endTime and startTime must be less than or equal to 182 days

Response Parameters

ParameterTypeComments
listarrayObject
> timestampstringUnix timestamp (ms) at midnight of the corresponding date
> aprstringAPR, decimal string, e.g., "0.055" represents 5.5%

Request Example

GET /v5/earn/apr-history?productId=8&category=OnChain HTTP/1.1
Host: api-testnet.bybit.com

Response Example

{
"retCode": 0,
"retMsg": "",
"result": {
"list": [
{
"timestamp": "1773705600000",
"apr": "15%"
},
{
"timestamp": "1773619200000",
"apr": "15%"
},
{
"timestamp": "1773532800000",
"apr": "15%"
},
{
"timestamp": "1773446400000",
"apr": "15%"
},
{
"timestamp": "1773360000000",
"apr": "15%"
},
{
"timestamp": "1773273600000",
"apr": "15%"
},
{
"timestamp": "1773187200000",
"apr": "15%"
}
]
},
"retExtInfo": {},
"time": 1773741812091
}