Schemas
Column reference for every archive dataset. Raw event tables carry the live stream's exact field set plus two archive columns (height, block_time). Backtest on history, deploy on the feed, zero remapping. The same names work in the query API, database access, and exports.
Conventions
- Financial values (prices, sizes, notionals, PnL, fees) are byte-exact decimal strings, never floats. They reconcile to the chain and to the live streams character-for-character.
- Sides are
B(buy/bid) andA(sell/ask); market symbols cover perps (BTC), spot (@N), and HIP-3 (dex:SYMBOL). - Every raw table is ordered and partitioned by time. Filter
block_time(andcoinwhere present) before anything else.
trades
One row per executed fill, currently growing by ~6.5M rows a day. Full wallet attribution: trader address, position context, realized PnL, fees, maker/taker, and liquidation linkage on every row.
Live equivalent: Trades & swaps. The liquidation object is preserved as a nested column; for flat liquidation analysis use the liquidations derived table below.
orders
One row per order-status event: placements, cancels, fills, triggers, rejections. 1.65B+ events archived, ~725M added per day.
Live equivalent: Order lifecycle.
book_updates
One row per order-book delta: every change to every book, 1B+ rows and counting. Apply deltas in height order to a snapshot for exact reconstruction at any block.
Live equivalent: Raw book diffs.
top_of_book
One row per best-bid/ask tick per market.
Live equivalent: L2 book subscribed with n_levels: 1.
twaps
One row per TWAP status or progress event. executed_ntl / executed_sz gives the average fill price so far; twap_id joins to the same column on trades.
Live equivalent: TWAP algos.
events
One row per ledger or market event: per-user funding payments with the applied rate, liquidations, deposits, withdrawals, and position updates, discriminated by type.
Live equivalent: Events.
Derived datasets
Precomputed from the raw tables above, refreshed continuously. Use them when the stock shape fits; recompute from raw when it doesn't.