build_raw_prices_dataframe

Documentation for eth_defi.grvt.vault_data_export.build_raw_prices_dataframe function.

build_raw_prices_dataframe(db)

Build a raw prices DataFrame from the GRVT DuckDB.

Produces rows matching the schema of the EVM vault scanner (export()), so GRVT data can go through the same cleaning pipeline (process_raw_vault_scan_data()) as ERC-4626 vaults.

The output has timestamp as a column (not index), matching the raw uncleaned Parquet format.

Parameters

db (eth_defi.grvt.daily_metrics.GRVTDailyMetricsDatabase) – The GRVT daily metrics database.

Returns

DataFrame with columns matching the uncleaned Parquet schema.

Return type

pandas.DataFrame