跳至主要内容

查詢歷史 APR

信息

不需要鑒權

備註

最多可查詢 6 個月的歷史 APR 數據。

HTTP 請求

GET/v5/earn/apr-history

請求參數

參數是否必需類型說明
categorytruestringFlexibleSaving,OnChain
productIdtruestring產品 ID,從 GET /v5/earn/product 獲取
startTimefalseinteger查詢開始時間戳 (ms)。若 startTimeendTime 均不傳,默認返回最近 7 天的數據
endTimefalseinteger查詢結束時間戳 (ms),與 startTime 的間隔不超過 182 天

響應參數

參數類型說明
listarrayObject
> timestampstring該記錄對應日期零點的 Unix 毫秒時間戳
> aprstringAPR,decimal 字符串,如 "0.055" 表示 5.5%

請求示例

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

響應示例

{
"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
}