build_raw_prices_dataframe
Documentation for eth_defi.hyperliquid.vault_data_export.build_raw_prices_dataframe function.
- build_raw_prices_dataframe(db)
Build a raw prices DataFrame from the Hyperliquid DuckDB.
Produces rows matching the schema of the EVM vault scanner (
export()), so Hypercore data can go through the same cleaning pipeline (process_raw_vault_scan_data()) as ERC-4626 vaults.The output has
timestampas a column (not index), matching the raw uncleaned Parquet format.Includes per-row
deposit_closed_reason(str or None) anddeposits_open(str “true”/”false” or None) columns derived from forward-filledis_closed,allow_deposits, andleader_fractionstate columns in the DuckDB.Also exposes Hyperliquid’s raw cumulative account PnL as
account_pnlso downstream consumers can compare the website-style account PnL against the cleaned share-price based return series.follower_countandcumulative_volumeare exported as scalar historical fields when available.- Parameters
db (eth_defi.hyperliquid.daily_metrics.HyperliquidDailyMetricsDatabase) – The Hyperliquid daily metrics database.
- Returns
DataFrame with columns matching the uncleaned Parquet schema.
- Return type