export_lifetime_row

Documentation for eth_defi.research.vault_metrics.export_lifetime_row function.

export_lifetime_row(row)

Export lifetime metrics row to a fully JSON-serializable dict.

  • Recursively handles nested dicts, lists, tuples, sets, and dataclasses.

  • Normalizes pandas, numpy, datetime, and custom types.

  • Preserves legacy fee field names.

Parameters

row (pandas.core.series.Series) –

Return type

dict