get_period_metrics
Documentation for eth_defi.research.vault_metrics.get_period_metrics function.
- get_period_metrics(period_results, period)
Get PeriodMetrics for a specific period from the results list.
- Parameters
period_results (list[eth_defi.research.vault_metrics.PeriodMetrics]) – List of PeriodMetrics objects from a vault record
period (Literal['1W', '1M', '3M', '6M', '1Y', 'lifetime']) – The period to find (e.g., “1W”, “1M”, “3M”, “6M”, “1Y”, “lifetime”)
- Returns
The matching PeriodMetrics or None if not found
- Return type