Skip to main content
GET
Get APY History
Endpoint: GET https://api.rebelfi.io/v1/venues/strategies/:strategyId/apy-history
Get the daily APY of a strategy for up to 90 days, both before (apyGross) and after (apyNet) the yield share. Use it to draw a daily rate chart that matches what your users receive.

Path Parameters

Query Parameters

All parameters are optional. Pass at most one wallet selector (walletAddress, walletId or userId).

Example Request

Example Response

A Jupiter USDC strategy, called with a profile-scoped key whose end-user wallets have a 2% yield share. The response is shortened to the last three days.

Response Fields

ApyHistoryPoint Object

How the daily value is computed

RebelFi reads each strategy’s APY on a regular schedule. The daily value is the time-weighted average of those readings over the UTC day (00:00 to 00:00 UTC, which is 01:00 to 01:00 in GMT+1). Each reading counts for as long as it was the current one, that is, until the next reading. The last reading before midnight covers the start of the day until that day’s first reading.
Days are complete UTC calendar days. The most recent entry is yesterday; today is not included. A day with no reading is omitted from history, not returned as zero. A strategy with fewer days of readings than days returns fewer entries, and a strategy with no readings in the period returns an empty history.

Which yield share applies

yieldShare is the share of the holder the request is priced for: With no selector, a profile-scoped key always gets the end-user share of its profile. To price a specific wallet, pass a selector.
apyNet uses the current yield share for every date. If the yield share changed during the period, earlier dates are not priced at the share that applied then.
This is a read. It counts toward the API key’s read budget (100 requests/minute) and the organization ceiling. See Rate Limits.

Errors