latest_total_assets_by_id
Documentation for eth_defi.research.sparkline_export.latest_total_assets_by_id function.
- latest_total_assets_by_id(prices_df, prepared)
Resolve the latest finite TVL through each chart’s final UTC day.
- Parameters
prices_df (pandas.DataFrame) – Price rows indexed by naive UTC timestamps with
idandtotal_assetscolumns.prepared (list[tuple[str, eth_defi.research.sparkline.SparklineData]]) – Prepared charts whose end dates bound the TVL lookup.
- Returns
Mapping from vault ID to the latest finite native-unit TVL, or
Nonewhen no usable value exists in the chart’s final day.- Return type