Skip to main content
GET
Get fixed-window reward earnings
Every window is measured back from the request and ends at the last aggregated hour. last24H is the 24 hourly rows ending at the hour that contains the request, clipped to the last aggregated hour. last7D, last30D and lastYear start at midnight UTC 7, 30 and 365 days before the request, so last7D covers seven full UTC days plus today so far, and lastYear is 365 days rather than a calendar year. total is all earnings through the last aggregated hour. Amounts are signed decimal strings, with amountRaw in base units. The same coverage rules apply as for reward earnings: earnings are recorded only for wallets that have already used Yield.xyz on that network, from that point on, a yield without reward support returns 404, and feeConfigurationId selects one of your allocator vaults.

Authorizations

x-api-key
string
header
required

Path Parameters

yieldId
string
required

The unique identifier of the yield

Example:

"ethereum-usdc-morpho-vault"

Query Parameters

address
string
required

Wallet address to fetch earnings for

Example:

"0x742d35cc6634c0532925a3b844bc454e4438f44e"

feeConfigurationId
string

Fee configuration ID used to resolve the partner allocator vault. An id that is not one of the project fee configurations is rejected.

Example:

"66f299cd-aaaa-bbbb-cccc-d1f26e3a02db"

Response

Fixed-window earnings

yieldId
string
required
Example:

"ethereum-usdc-morpho-vault"

address
string
required
Example:

"0x742d35cc6634c0532925a3b844bc454e4438f44e"

token
object
required
last24H
object
required

24 hourly earnings rows ending at the hour that contains the request, clipped to the last aggregated hour. The hour that started exactly 24 hours earlier is excluded. Zero when the last aggregated hour is older than that window.

last7D
object
required

Earnings from midnight UTC 7 days before the request through the last aggregated hour. That is seven full UTC days plus the partial day up to the last aggregated hour, not a rolling 168 hours. Zero when the last aggregated hour is older than the window start.

last30D
object
required

Earnings from midnight UTC 30 days before the request through the last aggregated hour. Same calendar rule as last7D, not a rolling 720 hours.

lastYear
object
required

Earnings from midnight UTC 365 days before the request through the last aggregated hour. This is a fixed 365 days, not a calendar year, so a leap day is not added.

total
object
required

All earnings through the last aggregated hour.