build_raw_prices_dataframe

Documentation for eth_defi.hibachi.vault_data_export.build_raw_prices_dataframe function.

build_raw_prices_dataframe(db)

Build a raw prices DataFrame from the Hibachi DuckDB.

Produces rows matching the schema of the EVM vault scanner (export()), so Hibachi 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.hibachi.daily_metrics.HibachiDailyMetricsDatabase) – The Hibachi daily metrics database.

Returns

DataFrame with columns matching the uncleaned Parquet schema.

Return type

pandas.DataFrame