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.Permission comes from the last observed
is_closedandallow_depositsflags.deposit_closed_reasoncontains only explicit closure; an observed low leader share instead setsmax_depositto zero. See_compute_deposit_state_columns()for column types and the rule for carrying sparse observations forward.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