Hyperliquid API: what the public info endpoint returns

A practical guide to the Hyperliquid API: the info endpoint and its request types, WebSocket subscriptions, rate limits and what it does not give you.

In short

Hyperliquid's API reads market and account data with one HTTP request type: a POST to https://api.hyperliquid.xyz/info with a JSON body that names what you want, such as {"type": "metaAndAssetCtxs"}.1 No key or login is needed for reads. A WebSocket at wss://api.hyperliquid.xyz/ws streams the same kinds of data,2 and a separate exchange endpoint takes signed orders and transfers, which this guide leaves aside.3

This guide covers the read side: the request types most data work starts with, how time ranges and paging work, the WebSocket, the rate limits, and the questions the API does not answer directly.

The info endpoint

Every read goes to the same URL with Content-Type: application/json; only the body changes.1 The same requests work against testnet at https://api.hyperliquid-testnet.xyz.4

curl -s https://api.hyperliquid.xyz/info \
  -H "Content-Type: application/json" \
  -d '{"type": "metaAndAssetCtxs"}'

The answer is a pair: the universe of perpetual markets with their margin tables, and one context per market with its funding, open interest, oracle price, mark price, mid price, premium, daily notional volume, previous day price and impact prices.5 For perpetuals, the coin field in other requests is the name from that list; spot pairs use PURR/USDC or an index such as @1.1

Request types most data work starts with

Request typeWhat it returns
metaAndAssetCtxsEvery perp market with funding, open interest, oracle and mark price, premium and volume
allMidsThe mid price of every coin
l2BookAn order book snapshot of one coin, at most 20 levels per side
candleSnapshotCandles of one coin and interval for a time range
fundingHistoryPast funding rates of one coin from a startTime in milliseconds
predictedFundingsPredicted next funding across venues
clearinghouseStateOne address's open perp positions and margin summary
userFills, userFillsByTimeOne address's fills
perpsAtOpenInterestCapThe perps currently at their open interest cap

The table follows Hyperliquid's documentation of the info endpoint and its perpetuals section.15

clearinghouseState is the request that makes Hyperliquid different from a centralised exchange. It takes nothing but an address and returns each of the address's positions with its size, entry price, leverage, margin used, unrealised profit and loss, accumulated funding and its own liquidationPx, plus the account value and margin totals.5 Why that matters for market data is explained in How Hyperliquid works, and following one address step by step in How to track a Hyperliquid wallet.

Time ranges and paging

Requests that take a time range return at most 500 elements or distinct blocks of data. To read further, send the request again with the last returned timestamp as the new startTime.1

A few request types have limits of their own:

  • userFills returns at most the 2,000 most recent fills.1
  • userFillsByTime returns at most 2,000 fills per response, and only the 10,000 most recent fills of an address are available at all.1
  • candleSnapshot serves only the most recent 5,000 candles of a coin and interval.1

So the info API is a window onto the recent past of each address and market, not an archive. A complete fill history of an active address, or minute candles from years ago, needs another source.

The WebSocket

A client connects to wss://api.hyperliquid.xyz/ws and sends one message per feed, for example this one for the trades of SOL:2

{
  "method": "subscribe",
  "subscription": { "type": "trades", "coin": "SOL" }
}

Market feeds include allMids, l2Book, trades, candle, bbo and activeAssetCtx; account feeds such as userFills, userFundings, orderUpdates and clearinghouseState take an address.6

Hyperliquid states that the server can disconnect at any time without notice, and that automated clients should reconnect on their own. Data missed during a reconnect comes with the snapshot that acknowledges the new subscription, or can be read with the matching info request.2

Rate limits

Limits are counted per IP address:7

  • REST. All requests share a weight budget of 1,200 per minute. l2Book, allMids and clearinghouseState weigh 2; most other info requests weigh 20; requests such as userFills and fundingHistory add weight for every 20 items they return, and candleSnapshot for every 60 items.7
  • WebSocket. At most 10 connections, 30 new connections per minute, 1,000 subscriptions and 2,000 messages sent per minute across all connections.7
  • HyperEVM JSON-RPC. At most 100 requests per minute on Hyperliquid's own EVM endpoint.7

That arithmetic is the reason any position tracker covers the wallets it polls, some more often than others.

What the API does not give you directly

Every number above is about one address or one market at a time. Several common questions have no single request:

  • A liquidation map of the whole market. There is no request that returns the liquidation prices of every position of a coin. Building one means reading many addresses and adding up their liquidationPx by price.
  • Liquidations across all accounts. Fills are per address, so "everything liquidated on BTC in the last hour" is not one request.
  • Long history. The paging limits above cap fills and candles, and positions are only available as a current state.
  • Other venues. The API describes Hyperliquid only, so comparing its funding or open interest with other exchanges needs their data too.

The Blockmetric API answers those questions from data we collect:

  • /liqmap/{coin} and /heatmap/{coin} add up the reported liquidation prices of the Hyperliquid wallets we track, now and over time, and the daily view uses a snapshot of all Hyperliquid positions taken shortly after 00:00 UTC each day. The website draws the same map as the liquidation heatmap.
  • /liquidations lists Hyperliquid liquidations confirmed by liquidation fills, and hours imported from the Hyperliquid fill record cover every wallet.
  • /funding and /funding/predicted put Hyperliquid next to the other venues we collect, and /long-short adds Hyperliquid positioning from tracked positions.
  • /whales and /traders follow the largest positions and the leaderboard with our own observations, the data behind the whale tracker and the trader leaderboard.

The guides Crypto liquidation data API and Funding rate and open interest API show the requests. For HyperEVM contracts and balances rather than market data, see HyperEVM RPC.

Limits of this guide

  • The API changes. Request types, weights and limits are Hyperliquid's to change; the documentation linked below is the reference, and this guide reflects it on the date in the footnotes.
  • Reads only. Placing orders, cancels and transfers goes through the signed exchange endpoint and is not covered here.
  • Tracked, not total. Where our pages and API rely on polled wallets, they cover the wallets we track, minutes old; the methodology page explains how the heatmap is built.

Common questions

Does the Hyperliquid API need an API key? No, reading market and account data needs no key or login. Every read is a POST to the info endpoint with a JSON body that names the request type, and a WebSocket streams the same kinds of data. Signed requests belong to the separate exchange endpoint, which takes orders and transfers.

How do I get older data than one Hyperliquid API response returns? Requests that take a time range return a capped number of elements per response, so older data is read by sending the same request again with the last returned timestamp as the new startTime. Fills and candles reach back a fixed number of recent entries, so the info API is a window onto the recent past, not an archive.

How are Hyperliquid API rate limits counted? Per IP address. REST requests share one weight budget per minute: l2Book, allMids and clearinghouseState weigh little, most other info requests weigh more, and requests that return many items add weight per item. The WebSocket has its own caps on connections, new connections, subscriptions and messages sent per minute.

Can the Hyperliquid API return a liquidation map of a whole coin? No single request does. clearinghouseState returns the liquidation price of each position of one address, so a market-wide map means reading many addresses and adding up their liquidationPx by price. The Blockmetric API does this for the Hyperliquid wallets we track, and the website draws the same map as the liquidation heatmap.

Next steps

Live data

See today’s numbers

The same data as JSON: REST, live stream, webhooks

Get a Blockmetric API key

Free plan: every coin, up to 30 days of history. Compare plans

Sources

  1. Hyperliquid Docs, "Info endpoint" (accessed 2026-11-11)Back to text
  2. Hyperliquid Docs, "WebSocket" (accessed 2026-11-11)Back to text
  3. Hyperliquid Docs, "Exchange endpoint" (accessed 2026-11-11)Back to text
  4. Hyperliquid Docs, "API" (accessed 2026-11-11)Back to text
  5. Hyperliquid Docs, "Info endpoint: Perpetuals" (accessed 2026-11-11)Back to text
  6. Hyperliquid Docs, "WebSocket: Subscriptions" (accessed 2026-11-11)Back to text
  7. Hyperliquid Docs, "Rate limits and user limits" (accessed 2026-11-11)Back to text

How we collect and check the data: Data & methodology.

Share this guide as a link or as an image card with its title.

LiveHyperliquid markets 4sOperationalHyperliquid positions & whales 2sOperationalLiquidation heatmap & levels 11sOperationalLighter markets & liquidations 16sOperationalLighter positions & heatmap 9sOperationalLighter on Robinhood Chain: positions & heatmap 6sOperationalAster markets 57sOperationalBinance markets 13sOperationalBybit markets 5sOperationalGate markets 9sOperationalHTX markets 59sOperationalKuCoin markets 7sOperationalBinance liquidations 43sOperationalBybit liquidations 43sOperationalGate liquidations 43sOperationalHTX liquidations 43sOperationaldYdX positions & heatmap 17sOperationalGMX positions & heatmap 18sOperationalLong/short & open interest history 2sOperationalOrder books & trade flow 8sOperationalOn-chain transfers 4sOperationalSecurity monitor 16sOperationalBlockmetric Sentiment 7mOperationalAgency releases 2mOperationalAlert delivery 4sOperationalDataset files 28mOperational16:35:26 UTC