Get APY history
get_apy_historyHistorical supply or borrow APY for a reserve over time, on v3 or v4. Returns a time-series of {date, apyPct}, where apyPct is a percent ('3.32' means 3.32%). Each point is an average over its sampling interval, and the interval widens with the window (hourly for 'day', coarser above that), so a series is not directly comparable to the instantaneous rate from get_reserve_details. Use get_markets first for the reserveId (v4) or market+token (v3). When comparing v3 against v4 for the same asset (a migration decision), read the history on both sides: a spot-rate gap can be one side's momentary spike.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| side | No | Which rate (default supply). | |
| token | No | v3 only: underlying token address. | |
| market | No | v3 only: market pool address (from get_markets). | |
| window | No | Time window (default week). | |
| chainId | No | v3 only: chain id (positive integer). | |
| reserve | No | v4 only: reserveId (from get_markets). | |
| version | Yes | Protocol version (v3 or v4; required). |