Skip to main content

Get Yield History

info

API key needs "Earn" permission

HTTP Request

GET /v5/earn/yield

Request Parameters

ParameterRequiredTypeComments
categorytruestringFlexibleSaving
productIdfalsestringProduct ID
startTimefalseintegerThe start timestamp (ms).
  • 1. If both are not provided, the default is to return data from the last 7 days.
  • 2. If both are provided, the difference between the endTime and startTime must be less than or equal to 7 days.
endTimefalseintegerThe endTime timestamp (ms)
limitfalseintegerLimit for data size per page. Range: [1, 100]. Default: 50
cursorfalsestringCursor, use the returned nextPageCursor to query data for the next page.

Response Parameters

ParameterTypeComments
nextPageCursorstringRefer to the cursor request parameter
listarrayObject
> productIdstringProduct ID
> coinstringCoin name:"BTC", "ETH"
> idstringUnique key (guaranteed to be unique only under the same user)
> amountstringYield Amount.Example: 10
> yieldTypestringYield type: Normal, Bonus (Flexible saving only supports Normal)
> distributionModestringDistribution type: Auto, Manual, Reinvest
  • Auto: Automatically distributed daily
  • Manual: Distributed when the user redeems
  • Reinvest: Reinvestment (not yet available)
> effectiveStakingAmountstringEffective staking amount, e.g., 1000.00
> orderIdstringRedemption order UUID ,For FlexibleSaving,Only returns order ID if distribution_mode is Manual
> statusstringOrder status: Pending, Success, Fail
> createdAtstringOrder creation time in milliseconds, e.g., 1684738540561

Request Example

GET /v5/earn/yield?category=FlexibleSaving HTTP/1.1
Host: api-testnet.bybit.com
X-BAPI-SIGN: XXXXX
X-BAPI-API-KEY: xxxxxxxxxxxxxxxxxx
X-BAPI-TIMESTAMP: 1739937044221
X-BAPI-RECV-WINDOW: 5000
Content-Type: application/json

Response Example

{
"retCode": 0,
"retMsg": "",
"result": {
"yield": [
{
"productId": "428",
"coin": "USDT",
"id": "1002096",
"amount": "0.0608",
"yieldType": "Normal",
"distributionMode": "Manual",
"effectiveStakingAmount": "1000",
"orderId": "05a7012d-c4d6-493a-8c6b-023a1038944a",
"status": "Success",
"createdAt": "1759993805000"
}
],
"nextPageCursor": ""
},
"retExtInfo": {},
"time": 1759993815641
}