Has this rate held?
yield_historyRetrieve daily APY and TVL history for a market with min, median, max, and volatility, so you can tell whether a high rate is typical or a recent spike before acting.
Instructions
Daily APY and TVL history for one market, with min, median, max and volatility over the window. Answers the question a live rate cannot: whether today's APY is typical for this market or a spike that appeared yesterday. Call it before acting on any unusually high rate. observations says how many daily snapshots exist — a market added recently will have few, and a short series should not be read as stability.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | Look-back window in days, 1-365, default 30 | |
| pool | Yes | Market id: the `pool` field from list_base_yields, or 'vault:<address>' using an address from list_lending_vaults, e.g. 'vault:0x7bfa7c4f149e7415b73bdedfe609237e29cbf34a' |