跳至主要内容

查詢每小時收益記錄

HTTP 請求

GET/v5/earn/token/hourly-yield

請求參數

參數必填類型說明
cointruestring代幣幣種。目前僅支援 BYUSDT
startTimefalseinteger開始時間,秒級時間戳
endTimefalseinteger結束時間,秒級時間戳
cursorfalsestring分頁游標。使用上次響應中的 nextPageCursor
limitfalseinteger每頁返回數量。預設:20

響應參數

參數類型說明
listarray每小時收益記錄列表
> effectiveAmountstring本小時用於計算收益的本金金額
> yieldstring本小時的收益金額
> rewardTypeinteger收益類型:0 = 基礎收益,1 = 加成收益
> aprE8string本小時實際適用的年化利率(e8 精度)。除以 10^8 可得實際利率
> hourlyDatestring收益小時的起始時間,秒級 Unix 時間戳
> createdTimestring記錄建立時間,秒級 Unix 時間戳
nextPageCursorstring下一頁游標,為空表示無更多資料

請求示例

GET /v5/earn/token/hourly-yield?coin=BYUSDT&limit=20 HTTP/1.1
Host: api.bybit.com
X-BAPI-SIGN: XXXXX
X-BAPI-API-KEY: xxxxxxxxxxxxxxxxxx
X-BAPI-TIMESTAMP: 1741651200000
X-BAPI-RECV-WINDOW: 5000

響應示例

{
"retCode": 0,
"retMsg": "success",
"result": {
"list": [
{
"effectiveAmount": "500.00",
"yield": "0.02",
"rewardType": 0,
"aprE8": "500000000",
"hourlyDate": "1710691200",
"createdTime": "1710694800"
}
],
"nextPageCursor": "eyJpZCI6MTIzNDU2fQ=="
},
"retExtInfo": {},
"time": 1741651200000
}