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 lighter instruments

    List all available Lighter mainnet instruments with market IDs, fees, size/price decimals, and active status. Use this to discover valid Lighter symbols. Optional query/limit/cursor support bounded current-catalog discovery; follow nextCursor when present. Membership may change between calls.

  • Get lighter l3 orderbook

    Get Lighter L3 order-level orderbook. Returns an envelope with individual orders carrying order_index and owner_account_index (Lighter account indexes, not wallet addresses), prices, and sizes, plus mid/spread and side counts.

  • Get lighter l3 orderbook history

    Get historical Lighter L3 orderbook snapshots. Returns order-level snapshots with order_index and owner_account_index (Lighter account indexes, not wallet addresses), prices, and sizes over a time range. Depth selects orders per side; counts, totals and capture truncation describe the stored checkpoint.

  • Get lighter liquidations

    Get Lighter liquidation history for a coin over a time range. Native Lighter shape: liquidation_type, usd_amount, ask_account (insurance-fund side) and bid_account, order ids, and margin/fee fields. Each row carries timestamp (RFC 3339 UTC) and timestamp_ms (Unix milliseconds). Live-only capture since 2026-06-10. Supports cursor pagination.

  • Get lighter liquidation volume

    Get aggregated Lighter liquidation volume for a coin in time-bucketed intervals. Returns per-bucket USD volume and counts; each bucket carries timestamp (its open time, RFC 3339 UTC) and timestamp_ms (Unix milliseconds). Archive from June 2026 (Build and above; Free covers the most recent rolling 30 days).

  • Get lighter open interest

    Get the current Lighter open interest for a coin. Returns OI, mark price, and oracle price. For a continuous feed, subscribe to the `lighter_open_interest` WebSocket channel on wss://api.0xarchive.io/ws (not stream.0xarchive.io); it carries the same message as `lighter_funding`.

  • Get lighter open interest history

    Get Lighter open interest history for a coin over a time range. Returns timestamped OI snapshots.

  • Get lighter orderbook

    Get the current Lighter orderbook snapshot for a coin. Returns bids, asks, mid price, and spread. Optionally specify depth. Full depth available on every tier. For a continuous feed, subscribe to the `lighter_orderbook` WebSocket channel on wss://api.0xarchive.io/ws (not stream.0xarchive.io): each message is a full book of up to 20 levels per side, sent at most once per second by default; set interval_ms between 100 and 5000 to change the rate.

  • Get lighter orderbook history

    Get historical Lighter orderbook snapshots. Returns L2 snapshots with bids/asks over a time range. Supports granularity levels: checkpoint (default), 30s, 10s, 1s, tick.

  • Get lighter price history

    Get mark/oracle price history for a Lighter coin over a time range. Returns mark_price, oracle_price and index_price at each timestamp. Supports aggregation intervals.

  • Get lighter summary

    Get combined Lighter market summary for a coin in a single call. Returns mark price, oracle price, funding rate, and open interest. For a continuous feed of these values, subscribe to the `lighter_open_interest` or `lighter_funding` WebSocket channel (same message) on wss://api.0xarchive.io/ws (not stream.0xarchive.io).

  • Get lighter trades

    Get Lighter trade history for a coin over a time range. Returns price, size, side, and timestamps. Supports cursor pagination.

  • Get lighter trades recent

    Get most recent Lighter trades for a coin. Returns the latest trades without needing a time range. For a continuous feed, subscribe to the `lighter_trades` WebSocket channel on wss://api.0xarchive.io/ws (not stream.0xarchive.io). Live trades are preliminary and arrive as two fills per trade, one per side with the same tid, so count trades by distinct tid; fee, fee_token, closed_pnl and dir are null there. get_lighter_trades returns the reconciled record.

  • 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.

PreviousPage 6 / 9Next