Historical

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) and A (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 (and coin where 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.

FieldTypeDescription
heightuint64L1 block height the event was produced in. Rows are ordered by height; joins across datasets use it.
block_timedatetime64(3)Block timestamp, millisecond precision, UTC. The partitioning column; filter on it first.
coinstringMarket symbol (perp, spot @N, or HIP-3 dex:SYMBOL).
pxstringFill price.Byte-exact decimal string, never a float.
szstringFill size in base units.Byte-exact decimal string.
notionalstringFill notional in USDC.Byte-exact decimal string.
sidestringAggressor side: B (buy) or A (sell).
userstringTrader's wallet address. Full attribution on every fill.
dirstringPosition context: Open Long, Close Short, etc.
start_positionstringTrader's position before the fill.Byte-exact decimal string.
closed_pnlstringRealized PnL closed by this fill.Byte-exact decimal string.
feestringFee paid (negative when rebated).Pair with is_rebate.
is_rebateboolTrue when the fee is a maker rebate.
crossedboolTrue if this side crossed the book (taker).
oid / cloid / tiduint64 / string / uint64Order id, client order id, and trade id.
twap_iduint64?Set when the fill belongs to a native TWAP execution.
liquidationobject?Liquidation details (liquidated user, mark price) when applicable.

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.

FieldTypeDescription
heightuint64L1 block height the event was produced in. Rows are ordered by height; joins across datasets use it.
block_timedatetime64(3)Block timestamp, millisecond precision, UTC. The partitioning column; filter on it first.
userstringWallet that owns the order.
coinstringMarket symbol.
sidestringB (buy) or A (sell).
limit_pxstringLimit price.Byte-exact decimal string.
szstringOrder size.Byte-exact decimal string.
order_typestringLimit, trigger (stop/TP), etc.
tifstringTime-in-force: Gtc, Ioc, Alo.
trigger_px / trigger_conditionstring?Trigger parameters for stop and take-profit orders.
reduce_onlyboolTrue for reduce-only orders.
statusstringopen / filled / canceled / triggered / rejected.
oid / cloiduint64 / stringOrder id and optional client order id.

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.

FieldTypeDescription
heightuint64L1 block height the event was produced in. Rows are ordered by height; joins across datasets use it.
block_timedatetime64(3)Block timestamp, millisecond precision, UTC. The partitioning column; filter on it first.
update_typeenumNEW / UPDATE / MODIFIED / REMOVE.
coinstringMarket symbol.
oiduint64Order id the delta applies to.
userstringOwner's wallet address.
sidestringB (bid) or A (ask).
pxstringPrice of the affected order.Byte-exact decimal string.
szstringSize after the change (0 on remove).Byte-exact decimal string.
block_heightuint64Block the delta belongs to; apply in order.

Live equivalent: Raw book diffs.

top_of_book

One row per best-bid/ask tick per market.

FieldTypeDescription
heightuint64L1 block height the event was produced in. Rows are ordered by height; joins across datasets use it.
block_timedatetime64(3)Block timestamp, millisecond precision, UTC. The partitioning column; filter on it first.
coinstringMarket symbol.
bid_pxstringBest bid price.Byte-exact decimal string.
bid_szstringSize resting at the best bid.Byte-exact decimal string.
ask_pxstringBest ask price.Byte-exact decimal string.
ask_szstringSize resting at the best ask.Byte-exact decimal string.

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.

FieldTypeDescription
heightuint64L1 block height the event was produced in. Rows are ordered by height; joins across datasets use it.
block_timedatetime64(3)Block timestamp, millisecond precision, UTC. The partitioning column; filter on it first.
twap_iduint64TWAP identifier; joins to twap_id on fills.
coinstringMarket symbol.
userstringWallet running the TWAP.
sidestringB (buy) or A (sell).
szstringTotal TWAP size.Byte-exact decimal string.
executed_szstringSize executed so far.Byte-exact decimal string.
executed_ntlstringNotional executed so far; divide by executed_sz for average fill price.Byte-exact decimal string.
minutesuint32Configured duration.
statusstringactivated / finished / canceled / terminated.

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.

FieldTypeDescription
heightuint64L1 block height the event was produced in. Rows are ordered by height; joins across datasets use it.
block_timedatetime64(3)Block timestamp, millisecond precision, UTC. The partitioning column; filter on it first.
typestringfunding / liquidation / deposit / withdraw / position update.
userstringAffected wallet.
coinstringMarket symbol (funding, liquidation).
usdcstringUSDC amount of the event (signed for funding).Byte-exact decimal string.
funding_ratestringFunding rate applied (funding events).Byte-exact decimal string.
szistringSigned position size the payment applied to.Byte-exact decimal string.
liquidationobject?Liquidated size, price, and mark price (liquidation events).

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.

ohlcv_1s / ohlcv_1m / ohlcv_1h / ohlcv_1d

FieldTypeDescription
tsdatetime64(3)Candle open time, UTC, aligned to the interval (1s / 1m / 1h / 1d per table).
coinstringMarket symbol.
openstringFirst trade price in the interval.Byte-exact decimal string.
highstringHighest trade price in the interval.Byte-exact decimal string.
lowstringLowest trade price in the interval.Byte-exact decimal string.
closestringLast trade price in the interval.Byte-exact decimal string.
volumestringBase-asset size traded in the interval.Byte-exact decimal string.

wallet_pnl

FieldTypeDescription
userstringWallet address.
realized_pnlstringRealized PnL closed by the wallet's fills over the window.Byte-exact decimal string.
volumestringTotal notional traded.Byte-exact decimal string.
win_ratefloat64Share of PnL-closing fills with positive realized PnL. Statistical, not financial: the one column that is a float.

liquidations

FieldTypeDescription
heightuint64L1 block height the event was produced in. Rows are ordered by height; joins across datasets use it.
block_timedatetime64(3)Block timestamp, millisecond precision, UTC. The partitioning column; filter on it first.
coinstringMarket the liquidation executed in.
victimstringLiquidated wallet address.
szstringLiquidated size.Byte-exact decimal string.
pxstringExecution price of the liquidation.Byte-exact decimal string.
mark_pxstringMark price at the time of liquidation.Byte-exact decimal string.

funding

FieldTypeDescription
heightuint64L1 block height the event was produced in. Rows are ordered by height; joins across datasets use it.
block_timedatetime64(3)Block timestamp, millisecond precision, UTC. The partitioning column; filter on it first.
coinstringMarket symbol.
funding_ratestringFunding rate applied at this interval.Byte-exact decimal string.