create_share_price_dataframe
Documentation for eth_defi.hyperliquid.trade_history.create_share_price_dataframe function.
- create_share_price_dataframe(events)
Convert share price events to a pandas DataFrame.
- Parameters
events (list[eth_defi.hyperliquid.trade_history.SharePriceEvent]) – List of SharePriceEvent from
compute_event_share_prices().- Returns
DataFrame with timestamp index and columns for total_assets, total_supply, share_price, event_type, delta, epoch_reset.
- Return type