Are you an LLM? Read llms.txt for a summary of the docs, or llms-full.txt for the full context.
Skip to content

HyperLiquid indexer

The HyperLiquid database exposes raw block fills together with derived order and wallet views.

TablePurpose
raw_node_fills_by_blockFill time, wallet, coin, price, size, side, PnL, fee, TWAP, builder and liquidation context
agg_fulfilled_orderFill-level activity aggregated by fulfilled order
view_perpetual_walletCurrent perpetual wallet state
view_wallet_positionCurrent wallet positions
perp_dex_metaPerpetual DEX namespaces, deployers, collateral token and asset counts
outcome_metaOutcome markets, side templates, attributes, quote assets and question links
outcome_coin_metaQuery-time mapping from outcome fill coin identifiers to resolved side names and metadata
outcome_question_metaQuestions with named, settled and fallback outcome identifiers
outcome_deployer_metaOutcome deployer and venue metadata

Outcome and DEX metadata

Join raw_node_fills_by_block.coin to outcome_coin_meta.coin to label outcome fills. The view expands each outcome into its sides, starting at side index zero, and formats the coin as '#' + toString(outcome * 10 + side). It resolves side-name templates using the outcome's attributes and reads the latest outcome_meta records with FINAL.

The outcome, question, deployer and perpetual DEX metadata tables use ReplacingMergeTree. Query them with FINAL, or select the latest updated_at for each documented sorting key, when you need their current state.

Historical order books

The raw recovery format begins with an order-level book_snapshot and continues with book_diff records. Replaying by order ID is important: a remove or partial update cannot be reconstructed reliably from aggregate price levels alone.

OnchainDivers provides access to high-precision HyperLiquid order books through raw MessagePack checkpoints and compressed order-level diff streams. This makes it possible to reconstruct the historical BTC perpetual book—including best bid, best ask, spread, live order count, and depth near the midpoint—at precise times rather than relying on coarse candles or aggregated trades.

The chart below replays that BTC futures book once per second over the exact window of a Polymarket Bitcoin five-minute market. It is generated and checked inside Docker from the configured archives, so the visualization also serves as an executable test of checkpoint selection, diff continuity, and book integrity.

High-precision HyperLiquid and Polymarket Bitcoin order books

See the complete reproducible cross-venue workflow.

Credentials and optional archive locations are supplied through .env; no deployment address is included in this site.