# 0xArchive - REST endpoint reference Every REST route by venue family. This file is part of the 0xArchive guide at https://0xarchive.io/llms.txt, which covers authentication, plans, coverage and the other surfaces. The complete request and schema contract is https://0xarchive.io/openapi.json. Base URL: `https://api.0xarchive.io`. Direct REST market-data requests use the `X-API-Key` header. ## Hyperliquid Endpoints (/v1/hyperliquid) - GET /v1/hyperliquid/instruments - List all instruments - GET /v1/hyperliquid/instruments/{symbol} - Single instrument details - GET /v1/hyperliquid/orderbook/{symbol}/l2 - Primary all-level L2 snapshot derived from L4 (March 11, 2026+) - GET /v1/hyperliquid/orderbook/{symbol}/l2/history - Primary all-level L2 checkpoint history derived from L4 (March 11, 2026+) - GET /v1/hyperliquid/orderbook/{symbol}/l2/diffs - All-level L2 aggregate diffs derived from L4 - GET /v1/hyperliquid/orderbook/{symbol} - Secondary venue-native order book (20 levels max) - GET /v1/hyperliquid/orderbook/{symbol}/history - Secondary historical venue-native order book (20 levels max; use for older top-book windows) - GET /v1/hyperliquid/trades/{symbol} - Trade history - GET /v1/hyperliquid/candles/{symbol} - OHLCV candles (1m-1w intervals) - GET /v1/hyperliquid/funding/{symbol} - Funding rate history - GET /v1/hyperliquid/funding/{symbol}/current - Current funding rate - GET /v1/hyperliquid/openinterest/{symbol} - Open interest history - GET /v1/hyperliquid/openinterest/{symbol}/current - Current open interest - GET /v1/hyperliquid/liquidations/{symbol} - Liquidation history - GET /v1/hyperliquid/liquidations/{symbol}/volume - Aggregated liquidation volume - GET /v1/hyperliquid/liquidations/{symbol}/levels - Projected forced-liquidation price levels - GET /v1/hyperliquid/liquidations/{symbol}/levels/history - Historical projected forced-liquidation price levels - GET /v1/hyperliquid/liquidations/user/{user} - Liquidations for a specific user address - GET /v1/hyperliquid/freshness/{symbol} - Data freshness per type - GET /v1/hyperliquid/summary/{symbol} - Combined market summary - GET /v1/hyperliquid/prices/{symbol} - Mark/oracle price history - GET /v1/hyperliquid/cvd/{symbol} - Cumulative volume delta buckets (1m-1w intervals; page with `cursor` and `limit`, default 500 and max 10000 buckets, until `meta.next_cursor` is absent; `cumulative_delta` restarts on each page, so rebuild it from `delta` when joining pages) - GET /v1/hyperliquid/orders/{symbol}/history - Order history with user attribution - GET /v1/hyperliquid/orders/{symbol}/flow - Order flow aggregation (`interval`: 1m default, 5m, 15m, or 1h; `granularity` is accepted as an alias) - GET /v1/hyperliquid/orders/{symbol}/tpsl - TP/SL order history - GET /v1/hyperliquid/twap/{symbol} - TWAP order status events for one market (`start`, `end`, `cursor`, `limit` up to 1000) - GET /v1/hyperliquid/twap/user/{user} - TWAP order status events for one wallet address - GET /v1/hyperliquid/wallets/{address}/profile - Behavioral metrics for one wallet over the last `hours` (default 24, maximum 168), optionally for one `coin` - GET /v1/hyperliquid/orderbook/{symbol}/l4 - L4 orderbook reconstruction with user attribution; optional `timestamp` and `depth` query parameters - GET /v1/hyperliquid/orderbook/{symbol}/l4/diffs - L4 orderbook diffs - GET /v1/hyperliquid/orderbook/{symbol}/l4/history - L4 orderbook checkpoints ## Hyperliquid Spot Endpoints (/v1/hyperliquid/spot) - GET /v1/hyperliquid/spot/candles/{symbol} - Get spot OHLCV candles - GET /v1/hyperliquid/spot/freshness/{symbol} - Get Hyperliquid Spot freshness - GET /v1/hyperliquid/spot/orderbook/{symbol} - Get Hyperliquid Spot order book - GET /v1/hyperliquid/spot/orderbook/{symbol}/l4 - Get Hyperliquid Spot L4 order book; optional `timestamp` and `depth` query parameters - GET /v1/hyperliquid/spot/orderbook/{symbol}/l4/diffs - Get Hyperliquid Spot L4 order book diffs - GET /v1/hyperliquid/spot/orderbook/{symbol}/l4/history - Get Hyperliquid Spot L4 order book history - GET /v1/hyperliquid/spot/orders/{symbol}/history - Get Hyperliquid Spot order history - GET /v1/hyperliquid/spot/pairs - List Hyperliquid Spot pairs - GET /v1/hyperliquid/spot/pairs/{symbol} - Get Hyperliquid Spot pair metadata - GET /v1/hyperliquid/spot/trades/{symbol} - Get Hyperliquid Spot trades - GET /v1/hyperliquid/spot/twap/{symbol} - Get Hyperliquid Spot TWAP - GET /v1/hyperliquid/spot/twap/user/{user} - Get Hyperliquid Spot user TWAP ## Lighter Endpoints (/v1/lighter) - GET /v1/lighter/instruments - List all instruments - GET /v1/lighter/instruments/{symbol} - Single instrument details - GET /v1/lighter/orderbook/{symbol} - Current order book - GET /v1/lighter/orderbook/{symbol}/history - Historical order book - GET /v1/lighter/trades/{symbol} - Trade history - GET /v1/lighter/trades/{symbol}/recent - Recent trades - GET /v1/lighter/candles/{symbol} - OHLCV candles - GET /v1/lighter/funding/{symbol} - Funding rate history - GET /v1/lighter/funding/{symbol}/current - Current funding rate - GET /v1/lighter/openinterest/{symbol} - Open interest history - GET /v1/lighter/openinterest/{symbol}/current - Current open interest - GET /v1/lighter/liquidations/{symbol} - Liquidation history - GET /v1/lighter/liquidations/{symbol}/volume - Aggregated liquidation volume - GET /v1/lighter/freshness/{symbol} - Data freshness - GET /v1/lighter/summary/{symbol} - Combined market summary - GET /v1/lighter/prices/{symbol} - Price history - GET /v1/lighter/l3orderbook/{symbol} - Current L3 order-level orderbook; optional `timestamp`, `account`, and `depth` query parameters (`limit` is not supported) - GET /v1/lighter/l3orderbook/{symbol}/history - Historical L3 snapshots with `start`, `end`, `cursor`, `limit`, and `account` query parameters; snapshots are checkpoints; limit defaults to 100 and is capped at 1000 - Lighter L3 order rows expose `order_index`, `owner_account_index`, `side`, `price`, `remaining_size`, and `original_size`. `order_index` is the venue's numeric order index; `owner_account_index` is a numeric account index, not an address. ## Lighter on Robinhood Chain Endpoints (/v1/rh-lighter) The second Lighter deployment: 84 USDG-quoted markets (57 perpetuals, 27 spot). Same routes and response shapes as `/v1/lighter`, without L3. - GET /v1/rh-lighter/instruments - List all instruments (`market_type` perp or spot) - GET /v1/rh-lighter/instruments/{symbol} - Single instrument details - GET /v1/rh-lighter/orderbook/{symbol} - Current order book - GET /v1/rh-lighter/orderbook/{symbol}/history - Historical order book - GET /v1/rh-lighter/trades/{symbol} - Trade history (canonical up to `meta.finalized_through`) - GET /v1/rh-lighter/trades/{symbol}/recent - Recent trades (preliminary tier, `meta.preliminary_row_count`) - GET /v1/rh-lighter/candles/{symbol} - OHLCV candles (answers with an error until candles are enabled for this deployment) - GET /v1/rh-lighter/funding/{symbol} - Funding rate history (perpetuals) - GET /v1/rh-lighter/funding/{symbol}/current - Current funding rate (perpetuals) - GET /v1/rh-lighter/openinterest/{symbol} - Open interest history (perpetuals) - GET /v1/rh-lighter/openinterest/{symbol}/current - Current open interest (perpetuals) - GET /v1/rh-lighter/liquidations/{symbol} - Liquidation history (perpetuals) - GET /v1/rh-lighter/liquidations/{symbol}/volume - Aggregated liquidation volume (perpetuals) - GET /v1/rh-lighter/freshness/{symbol} - Data freshness - GET /v1/rh-lighter/summary/{symbol} - Combined market summary - GET /v1/rh-lighter/prices/{symbol} - Price history ## Account Positions Endpoints Hyperliquid core (`/v1/hyperliquid`) and HIP-3 (`/v1/hyperliquid/hip3`, optional `dex` filter) key positions by wallet address: - GET /wallets/{address}/positions - Current positions, or the state at `timestamp` (epoch ms) - GET /wallets/{address}/positions/history - Hourly position rows in `[start, end)` - GET /wallets/{address}/positions/changes - Position change log in `[start, end)` - GET /wallets/{address}/account - Current account summary - GET /wallets/{address}/account/history - Hourly account summaries - GET /wallets/{address}/funding - Funding each position paid or received, one row per hourly settlement in `[start, end)`, at most 31 days per request (core from 2025-09-27 10:00 UTC, HIP-3 from 2025-10-13 13:00 UTC) Lighter mainnet (`/v1/lighter`) and Lighter on Robinhood Chain (`/v1/rh-lighter`) key positions by integer account index: - GET /accounts/{account_index}/positions, /positions/history, /positions/changes - Same semantics as the wallet routes - GET /accounts/{account_index}/account and /account/history - Position aggregates only - GET /v1/lighter/accounts?l1_address=0x... - Account indices owned by an L1 address (Lighter mainnet only) Every venue: - GET /positions/{symbol} - Every open position in one market (latest live snapshot or `hour`), largest first, totals in `meta.totals` - GET /positions/{symbol}/summary - Long/short counts, sizes, values, average entries, and top-10 share, now or hourly - GET /positions - Every open position at one committed hour (bulk; `format=arrow` where enabled) - Responses carry `meta.as_of`, `meta.snapshot_ts`, `meta.source` (`snapshot`, `reconstructed`, or `changes`), `meta.quality`, `meta.stale`, `meta.built_through`, and `meta.finalized_through`. Numbers are decimal strings. Cursors are signed and bound to the request; a replaced market snapshot returns 409 `snapshot_advanced`. ## HIP-3 Builder Perps Endpoints (/v1/hyperliquid/hip3) - GET /v1/hyperliquid/hip3/instruments - List all HIP-3 instruments - GET /v1/hyperliquid/hip3/instruments/{symbol} - Single instrument details - GET /v1/hyperliquid/hip3/orderbook/{symbol}/l2 - Primary all-level L2 snapshot derived from L4 (March 11, 2026+) - GET /v1/hyperliquid/hip3/orderbook/{symbol}/l2/history - Primary all-level L2 checkpoint history derived from L4 (March 11, 2026+) - GET /v1/hyperliquid/hip3/orderbook/{symbol}/l2/diffs - All-level L2 aggregate diffs derived from L4 - GET /v1/hyperliquid/hip3/orderbook/{symbol} - Secondary venue-native order book (20 levels max) - GET /v1/hyperliquid/hip3/orderbook/{symbol}/history - Secondary historical venue-native order book (20 levels max; use for older top-book windows) - GET /v1/hyperliquid/hip3/trades/{symbol} - Trade history - GET /v1/hyperliquid/hip3/trades/{symbol}/recent - Recent trades - GET /v1/hyperliquid/hip3/candles/{symbol} - OHLCV candles - GET /v1/hyperliquid/hip3/funding/{symbol} - Funding rate history - GET /v1/hyperliquid/hip3/funding/{symbol}/current - Current funding rate - GET /v1/hyperliquid/hip3/openinterest/{symbol} - Open interest history - GET /v1/hyperliquid/hip3/openinterest/{symbol}/current - Current open interest - GET /v1/hyperliquid/hip3/liquidations/{symbol} - Liquidation history - GET /v1/hyperliquid/hip3/liquidations/{symbol}/volume - Aggregated liquidation volume - GET /v1/hyperliquid/hip3/liquidations/{symbol}/levels - Projected forced-liquidation price levels - GET /v1/hyperliquid/hip3/liquidations/{symbol}/levels/history - Historical projected forced-liquidation price levels - GET /v1/hyperliquid/hip3/freshness/{symbol} - Data freshness - GET /v1/hyperliquid/hip3/summary/{symbol} - Combined market summary - GET /v1/hyperliquid/hip3/prices/{symbol} - Price history - GET /v1/hyperliquid/hip3/cvd/{symbol} - Cumulative volume delta buckets (same intervals and paging as the core CVD route) - GET /v1/hyperliquid/hip3/orders/{symbol}/history - Order history - GET /v1/hyperliquid/hip3/orders/{symbol}/flow - Order flow aggregation (`interval`: 1m default, 5m, 15m, or 1h; `granularity` is accepted as an alias) - GET /v1/hyperliquid/hip3/orders/{symbol}/tpsl - TP/SL order history - GET /v1/hyperliquid/hip3/twap/{symbol} - TWAP order status events for one market - GET /v1/hyperliquid/hip3/twap/user/{user} - TWAP order status events for one wallet address - GET /v1/hyperliquid/hip3/wallets/{address}/profile - Behavioral metrics for one wallet on HIP-3 markets - GET /v1/hyperliquid/hip3/orderbook/{symbol}/l4 - L4 orderbook reconstruction; optional `timestamp` and `depth` query parameters - GET /v1/hyperliquid/hip3/orderbook/{symbol}/l4/diffs - L4 orderbook diffs - GET /v1/hyperliquid/hip3/orderbook/{symbol}/l4/history - L4 orderbook checkpoints ## HIP-4 Outcome Markets Endpoints (/v1/hyperliquid/hip4) HIP-4 caveats for LLMs: - HIP-4 coins are referenced by their numeric id (e.g. `0`, `1`, `10`, `11`) in REST paths (e.g. `/v1/hyperliquid/hip4/orderbook/0`). The `#`-prefixed form (`#0`, `#10`) is also accepted for callers integrating from on-chain SDKs. - HIP-4 has no funding, no liquidations. Those routes return 404 by design. HIP-4 candles ARE available from 2026-05-02 onwards via /hip4/candles/{symbol}; prices represent implied probabilities (0..1), not USD. - HIP-4 `mark_price` is an implied probability (0..1), not a USD price. Same field name as perps because Hyperliquid upstream uses `markPx` for both. - HIP-4 markets settle (often within 1 day). After settlement `is_settled` flips true; historical data stays queryable. - All notional values are denominated in USDH (Hyperliquid stablecoin). - GET /v1/hyperliquid/hip4/outcomes - List outcome markets (filter `?is_settled=true|false`, cursor pagination) - GET /v1/hyperliquid/hip4/outcomes/{outcome_id} - Single outcome detail (includes `aggregated_oi`) - GET /v1/hyperliquid/hip4/outcomes/by-slug/{slug} - Look up outcome by per-outcome or per-side slug (e.g. `btc-above-78213-may-03-0600`) - GET /v1/hyperliquid/hip4/questions - List HIP-4 questions (multi-choice resolvers grouping N binary outcomes; cursor pagination) - GET /v1/hyperliquid/hip4/questions/{question_id} - Single question detail (includes `named_outcome_ids`, `fallback_outcome_id`, `settled_named_outcomes`) - GET /v1/hyperliquid/hip4/instruments - List all HIP-4 instruments (one row per side; coin id format `10*outcome_id + side`) - GET /v1/hyperliquid/hip4/instruments/{symbol} - Single instrument details - GET /v1/hyperliquid/hip4/orderbook/{symbol} - Current order book - GET /v1/hyperliquid/hip4/orderbook/{symbol}/history - Historical order book - GET /v1/hyperliquid/hip4/trades/{symbol} - Trade history - GET /v1/hyperliquid/hip4/trades/{symbol}/recent - Recent trades - GET /v1/hyperliquid/hip4/openinterest/{symbol} - Side open interest history - GET /v1/hyperliquid/hip4/openinterest/{symbol}/current - Current side open interest - GET /v1/hyperliquid/hip4/candles/{symbol} - OHLCV candles (1m-1w; prices are probabilities 0..1, quote_volume in USDH) - GET /v1/hyperliquid/hip4/freshness/{symbol} - Data freshness - GET /v1/hyperliquid/hip4/summary/{symbol} - Combined market summary - GET /v1/hyperliquid/hip4/prices/{symbol} - Mid-price history (probability, 0..1) - GET /v1/hyperliquid/hip4/orders/{symbol}/history - Order history - GET /v1/hyperliquid/hip4/orders/{symbol}/flow - Order flow aggregation (`interval`: 1m default, 5m, 15m, or 1h; `granularity` is accepted as an alias) - GET /v1/hyperliquid/hip4/orders/{symbol}/tpsl - TP/SL order history - GET /v1/hyperliquid/hip4/twap/{symbol} - TWAP order status events for one outcome side - GET /v1/hyperliquid/hip4/twap/user/{user} - TWAP order status events for one wallet address - GET /v1/hyperliquid/hip4/orderbook/{symbol}/l4 - L4 orderbook reconstruction; optional `timestamp` and `depth` query parameters - GET /v1/hyperliquid/hip4/orderbook/{symbol}/l4/diffs - L4 orderbook diffs - GET /v1/hyperliquid/hip4/orderbook/{symbol}/l4/history - L4 orderbook checkpoints ## Data Quality Endpoints - GET /health - Lightweight API liveness check - GET /v1/capabilities - What each venue serves: REST routes, WebSocket channels with live and replay support, first served instant, cadence, page limit, and intervals (no API key required) - GET /v1/data-quality/status - System health across supported venue families - GET /v1/data-quality/coverage - Data coverage overview - GET /v1/data-quality/coverage/{exchange} - Per-exchange coverage details - GET /v1/data-quality/coverage/{exchange}/{symbol} - Per-symbol coverage details - GET /v1/data-quality/incidents - Data quality incidents - GET /v1/data-quality/incidents/{id} - Single incident details - GET /v1/data-quality/latency - Latency metrics - GET /v1/data-quality/sla - SLA compliance report - GET /v1/data-quality/positions - Account positions freshness per product