Developer Tools · Data & Analytics

0xArchive MCP

0xArchive MCP lets agents query historical and live crypto market data for Hyperliquid, HIP-3, HIP-4, spot and Lighter markets, check data quality, and manage 0xArchive webhooks.

Tools

This is a reference catalogue. Tools cannot be configured or run from this page.

  • Get liquidation levels

    Get Hyperliquid projected forced-liquidation levels for a coin: where open positions are estimated to liquidate, computed from clearinghouse positions and margin state, bucketed around the snapshot mark price. Snapshots refresh about every 5 minutes (snapshot_ts, RFC 3339 UTC with snapshot_ts_ms in Unix milliseconds, identifies the one served); pass at= (epoch ms) for a point-in-time read. History begins 2026-07-27. NOT the pending trigger-order map (see get_trigger_levels).

  • Get liquidation levels history

    Get historical Hyperliquid liquidation-levels snapshots (about every 5 minutes, retained from 2026-07-27), ascending by snapshot_ts (RFC 3339 UTC, with snapshot_ts_ms in Unix milliseconds) with cursor pagination. summary=true lists snapshots without histograms.

  • Get liquidations

    Get Hyperliquid liquidation history for a coin over a time range. Returns liquidated/liquidator addresses, price, size, side, and PnL. Archive from December 2025 (Build and above; Free covers the most recent rolling 30 days). Real-time liquidations are also available on the WebSocket `liquidations` channel; each event is a fill row with `is_liquidation: true`, same shape as the `trades` channel.

  • Get liquidations by user

    Get Hyperliquid liquidation history for a specific user address. Returns liquidations where the user was either liquidated or was the liquidator. Filter by coin optionally.

  • Get liquidation volume

    Get aggregated liquidation volume for a coin in time-bucketed intervals. Returns total, long, and short USD volumes. Archive from December 2025 (Build and above; Free covers the most recent rolling 30 days).

  • Get market positions

    Get every open position in one perp market at the latest live snapshot, or at a committed snapshot hour (hour: an exact UTC hour), sorted by position_value descending. Rows carry user_address (hyperliquid, hip3) or account_index and account_kind (lighter, rh-lighter), plus a signed size (negative when short), side (long or short), entry_price, mark_price, position_value, unrealized_pnl, leverage_type (cross or isolated; unknown where not recorded), liquidation_price and quality. Filters: side (long or short), min_value (minimum USD position value) and, on Lighter venues, include_system (system accounts are excluded by default). meta.totals (first page only) summarizes the whole filtered market and meta.snapshot_ts names the snapshot served. Hourly snapshots begin 2026-06-07 on hyperliquid and hip3, 2025-01-17 on lighter and 2026-06-26 on rh-lighter; an hour that is not exact is refused (400) and an hour with no committed snapshot returns not_found (404). Numbers are decimal strings. Quality: each row carries its own: complete, partial (a missing mark or entry leaves value or PnL null; on hyperliquid and hip3 snapshots also one opened after the clearinghouse snapshot, with unknown leverage, margin and liquidation price) or degraded; Lighter venues add preliminary (finalized false: trades after meta.finalized_through, complete after the daily reconcile), incomplete and unreconciled. meta.quality is the snapshot's status: normally complete on hyperliquid and hip3; the latest Lighter-venue snapshots can read degraded before the reconcile even if every row is complete or preliminary. Paging: limit defaults to 100 (max 1000). While nextCursor is present, repeat the call with cursor=nextCursor and every other argument unchanged (the cursor is bound to them); a short or empty page can still carry nextCursor, so stop only when it is absent. A 409 snapshot_advanced error means the snapshot was replaced: restart without a cursor. Metered like trades: 1,000 rows per credit.

  • Get market positions summary

    Get long/short aggregates for one perp market: long_count, short_count, long_size, short_size, long_value, short_value, average entry prices (over the positions with a known entry, counted in long_positions_with_entry and short_positions_with_entry) and top-10 value shares. Omit start and end for one point at the latest live snapshot; pass both for an hourly series over [start, end), at most 168 hours per page. include_system applies to lighter and rh-lighter. Each point has its own quality (complete, partial when some position has no value or, on hyperliquid and hip3, no entry price, or degraded; leverage does not affect it) and meta.quality, on the latest point, is the snapshot's status. Numbers are decimal strings. Paging: limit defaults to 100 (max 1000). While nextCursor is present, repeat the call with cursor=nextCursor and every other argument unchanged (the cursor is bound to them); a short or empty page can still carry nextCursor, so stop only when it is absent. A 409 snapshot_advanced error means the snapshot was replaced: restart without a cursor. Metered like trades: 1,000 rows per credit.

  • Get open interest

    Get the current Hyperliquid open interest for a coin. Returns OI, mark price, oracle price, and 24h volume.

  • Get open interest history

    Get Hyperliquid open interest history for a coin over a time range. Returns timestamped OI snapshots with mark/oracle prices. Archive from May 2023 (Build and above; Free covers the most recent rolling 30 days). Supports aggregation intervals (1m, 5m, 15m, 30m, 1h, 4h, 1d).

  • Get orderbook

    Get the current Hyperliquid L2 orderbook snapshot for a coin. Returns bids, asks, mid price, and spread. Optionally specify depth (price levels per side). Full depth available on every tier.

  • Get orderbook history

    Get historical Hyperliquid orderbook snapshots (~1.2s resolution). Returns L2 snapshots with bids/asks over a time range. Archive from April 2023 (Build and above; Free covers the most recent rolling 30 days). All symbols and full depth available on every tier.

  • Get order flow

    Get Hyperliquid order flow aggregation. Returns aggregated order placement, cancellation, and fill metrics over time intervals. Buckets are labelled by their open time in UTC, and buckets with no events are omitted. A response holds the oldest `limit` buckets of the window.

  • Get order history

    Get Hyperliquid order history with user attribution. Returns order lifecycle events including placements, fills, cancellations, and modifications with user addresses.

  • Get positioning

    Get the positioning cross-section of every listed Hyperliquid perp over a trailing window: OI change, traded volume (taker buy plus sell notional) and liquidations, with each market's typical move. One call ranks every listed market by volume, OI change or liquidations over the last 1h, 4h or 24h. Delisted perps are not listed. window (required): 1h, 4h or 24h; nothing else is taken (no history, paging or coin filter). The window is [close - window, close), close being the newest 5-minute boundary about 4 minutes before now (window_end, meta.as_of). One record per listed perp, sorted by symbol: oi_start and oi_end (contracts, the 5-minute readings before the window and at its end), mark_start, mark_end, oi_buckets, buy_usd and sell_usd (taker notional), liq_long_usd, liq_short_usd, liq_long_count, liq_short_count, and typical moves over same-length windows sliding by 5 minutes across about 6.9 days: typical_price and typical_oi (median absolute relative change), typical_flow (median absolute (buy - sell) / (buy + sell)) and typical_windows. OI and marks are null, never 0, without a reading; typical_* are null under 288 windows. A 503 (still being prepared) is retryable. Build, Pro, Scale and Enterprise plans only; Free gets forbidden (details.required_plans).

  • Get positions freshness

    Get the freshness of each account positions product, one row per product: venue and product (hyperliquid with core or hip3, lighter, and rh_lighter for Lighter on Robinhood Chain, the rh-lighter venue of the positions tools), live_snapshot_ts and live_age_seconds (the latest live snapshot and its age in seconds), stale (true when that snapshot is more than 12 minutes old, or there is none), live_quality, hourly_snapshot_ts (the latest committed hourly snapshot), built_through (every event before it is built into the change log and as-of state) and finalized_through (every event before it is final). Check it before relying on the latest reads of get_account_positions, get_account_summary or get_market_positions. Timestamps are ISO 8601 UTC strings.

  • Get price history

    Get mark/oracle price history for a coin over a time range. Returns mark_price, oracle_price, and mid_price at each timestamp. Supports aggregation intervals. Archive from May 2023 (Build and above; Free covers the most recent rolling 30 days).

  • Get rh lighter candles

    Get Lighter on Robinhood Chain OHLCV candle data for a market. Intervals: 1m to 1w (default 1h). Returns open, high, low, close, volume. Candles cover 2026-06-26 onward once they are enabled for this deployment; until then the call returns an error saying candles are not yet available, while trades, orderbook, open interest, funding and liquidations are.

  • Get rh lighter freshness

    Get data freshness for a Lighter on Robinhood Chain market across all data types (orderbook, trades, funding, OI). Shows when each data type was last updated and current lag.

  • Get rh lighter funding

    Get Lighter on Robinhood Chain funding rate history for a perp market over a time range. Returns timestamped funding rates. History begins 2026-08-22 18:43 UTC. Supports cursor pagination and aggregation intervals (1m, 5m, 15m, 30m, 1h, 4h, 1d).

  • Get rh lighter funding current

    Get the current Lighter on Robinhood Chain funding rate for a perp market (spot pairs have no funding). Returns the latest funding rate and timestamp. For a continuous feed, subscribe to the `rh_lighter_funding` WebSocket channel on wss://api.0xarchive.io/ws (not stream.0xarchive.io); it carries the same message as `rh_lighter_open_interest`, with funding and premium as fractions alongside open interest and mark, oracle and mid prices.

PreviousPage 7 / 10Next