get_latest_vault_poll_frequency
Documentation for eth_defi.research.vault_metrics.get_latest_vault_poll_frequency function.
- get_latest_vault_poll_frequency(prices_df)
Get the latest known vault scan cycle from price rows.
vault_poll_frequencyis produced during the vault scan and persisted in cleaned price data. Some historical rows may be empty, so this helper walks the values backwards and returns the newest non-empty scan cycle.- Parameters
prices_df (pandas.DataFrame) – Price DataFrame for one vault, conforming to
CleanedVaultPriceRow.- Returns
Latest scan cycle string, or
Noneif the column is not available.- Return type