Skip to main content
POST
perpSnapshots | Hyperliquid Info API

Credit Cost

250 per call

Processing

Batch
The Hyperliquid info endpoint with type: "perpSnapshots" is used to fetch every open perp position on Hyperliquid, with entry and liquidation prices, for liquidation maps and whale trackers.
Estimate your monthly cost for this API using the Pricing Calculator.
  • GoldRush-native. perpSnapshots is not a POST api.hyperliquid.xyz/info method. The public API only answers one wallet at a time (clearinghouseState), so you have to know the wallets in advance.
  • Compatible with existing perpSnapshots clients. The request body and the zstd/MessagePack wire format follow the standard perpSnapshots format, so a client that already speaks it works after you change its base URL and key.
  • Whole exchange, every dex. All wallets, all native perps and all HIP-3 dexes. A typical snapshot holds about 380,000 positions across about 360 markets and 125,000 wallets.
  • Computed from the node’s own state. Each snapshot is read from the exchange state that a Hyperliquid node writes every 10,000 blocks (about every 12 minutes). Values follow Hyperliquid’s margin rules and were checked against clearinghouseState for the same wallets.
  • Rate limited per key: 5 calls per 10 minutes. Poll the free perpSnapshotTimestamp and download only when snapshot_id changes. 250 credits per call, however many markets it returns.
Returns every open perpetual position on Hyperliquid for the markets you ask for: one row per wallet and market, with signed size, USD notional, funding since open, entry price, cross or isolated margin, leverage, liquidation price and the wallet’s account value. One call covers a single coin, a whole HIP-3 dex, or the entire exchange ("ALL:ALL_DEXES"). Use it to find the biggest longs and shorts on a market, map where liquidations cluster, measure long/short positioning by wallet, or diff positioning between two snapshots.

Endpoint

Request

string
default:"perpSnapshots"
required
Always "perpSnapshots".
string[]
required
1 to 256 market selectors. Each entry is one of:Market names are case-sensitive, like Hyperliquid coins. A dex name is 1 to 64 characters from A-Z a-z 0-9 _; a market name is 1 to 64 characters from A-Z a-z 0-9 _ . / -.
string
default:"msgpack"
"msgpack" (default, the standard binary perpSnapshots format) or "json". json returns the same data as JSON for at most 5 resolved markets. It is a GoldRush extension, handy for quick checks and small dashboards.

How market_names is resolved

  • ALL patterns expand to the markets present in the snapshot, that is, markets with at least one open position.
  • A single market already covered by an ALL pattern for its dex is dropped, and duplicates are dropped.
  • A single market with no open positions (or that doesn’t exist) is left out, not an error.
  • ALL:<dex> with a dex that isn’t a Hyperliquid perp dex returns 400 unknown dex. A real dex with no open positions resolves to zero markets.
  • Markets come back in a fixed order: native-dex markets first, then HIP-3 dexes by dex name, with markets sorted by name within each dex. Two identical requests against the same snapshot return byte-identical bodies.

Example

Response

The default response is binary, in the standard perpSnapshots format: zstd-compressed MessagePack, one chunk per market. A whole-exchange response (["ALL:ALL_DEXES"]) was 24.3 MB compressed on 2026-11-30 (388,681 positions on 357 markets), which is why the format is binary. Ask only for the markets you need. Every 200 carries these headers:

Framing

A request that resolves to zero markets returns 200 with a multi-zstd body whose count is 0, and it is billed.
A one-market body can reach your client already decoded: plain MessagePack, with no Content-Encoding header. Many HTTP clients undo Content-Encoding: zstd themselves, and a proxy or CDN on the path can decode it when the request doesn’t accept zstd (it was recorded with Accept-Encoding: identity). Check for the zstd magic bytes (28 b5 2f fd) before decompressing, as the examples above do. Chunks inside a multi-zstd body are always zstd frames.

Market chunk

Each chunk is one zstd frame. Decompressed, it is a MessagePack array:
  • addresses[i] owns positions[i]. The two arrays have the same length, one entry per wallet with a non-zero position in market.
  • market is written as in the request ("BTC", "xyz:NVDA").
  • Addresses are lowercase, and rows are sorted by address ascending.

Position tuple

A fixed 8-element MessagePack array, in this order:
float64
Signed position size in coin units: positive is long, negative is short. Never 0.
float64
USD notional, abs(size) × mark price at snapshot time. Always ≥ 0.
float64 | nil
USD funding since the position opened. Received is positive, paid is negative.
float64
USD entry price.
uint | nil
0 cross, 1 isolated.
uint | nil
Integer leverage, e.g. 20.
float64 | nil
USD price at which the position is liquidated. For unified and portfolio-margin accounts it accounts for cross-collateral. nil when there is none (the position is over-collateralised).
float64 | nil
USD account value of the wallet. For unified and portfolio-margin accounts it is the collateral pool shared with spot.

JSON response (format: "json")

The same data as JSON, for at most 5 markets, with Content-Type: application/json. leverage_type is spelled out ("cross" / "isolated"), and nil becomes null.
string
Opaque id of the snapshot, YYYYMMDD_state_<block height>. Compare it for equality only.
int
Block time of the snapshot, epoch seconds.
array
One entry per resolved market, in the order described above, each {market, positions}. positions fields match the tuple above, with address added and leverage_type_flag renamed leverage_type.

Freshness

A new snapshot is captured every 10,000 HyperCore blocks, about every 12 minutes, and is served a minute or two later. GoldRush never serves positions older than 15 minutes: if the newest snapshot is older than that, the call returns 503 snapshot_stale with Retry-After instead of old data. To stay current at the lowest cost, poll perpSnapshotTimestamp every 5 to 10 seconds (0 credits) and call perpSnapshots only when its snapshot_id changes. Snapshots are point-in-time: for live, per-event position changes on a known set of wallets, use the WebSocket userFills stream or batchClearinghouseState.

Limits, errors and billing

  • Credits: 250 per successful call, however many markets it returns. Errors are not billed.
  • Rate limit: 5 calls per 10 minutes per API key, shared across all GoldRush servers. Only calls that pass validation count. This is the one exception to the Info API’s no rate limits rule, because a whole-exchange call is about 24 MB.

Guides

How to get every open Hyperliquid position with perpSnapshots builds a liquidation heatmap, the largest and closest-to-liquidation positions, long/short positioning and a diff between two snapshots in Node.js, with every figure from a recorded snapshot.

Using an existing perpSnapshots client

perpSnapshots and perpSnapshotTimestamp use the standard request bodies and wire format for these methods: the market_names grammar, the zstd/MessagePack chunks, the 8-field position tuple, the multi-zstd framing and headers, and a budget of 5 calls per 10 minutes. If you already have a client for them:
  1. Point it at https://hypercore.goldrushdata.com/info.
  2. Send your GoldRush API key as Authorization: Bearer <GOLDRUSH_API_KEY>.
Your decoder doesn’t change. What GoldRush adds:
  • Pricing per call: 250 credits per perpSnapshots call and perpSnapshotTimestamp free, on any GoldRush plan. No separate subscription.
  • format: "json" for up to 5 markets.
  • x-snapshot-id and x-snapshot-timestamp headers on every 200.
  • 429 body: {"error":"too_many_requests"}, with the wait in the Retry-After header.
  • Never stale: 503 snapshot_stale rather than positions older than 15 minutes.
  • One key for everything: the same key and endpoint also serve the full Hyperliquid /info and /ws APIs, with no rate limits.
See the Info API migration guide for the rest of the /info surface.

perpSnapshotTimestamp

check for a new all-positions perpSnapshots snapshot for free before downloading it.

batchClearinghouseState

fetch perpetuals account state for up to 50 wallets in a single request.

clearinghouseState

fetch a single user’s perpetuals account state by wallet address.

liquidatable

list accounts currently eligible for liquidation.
See all Hyperliquid endpoints: Overview hub · Info API reference Served by the GoldRush Hyperliquid API: a drop-in replacement for the public /info and /ws APIs at hypercore.goldrushdata.com, with no rate limits and every fill, order, trade, funding and ledger event retained from the start of HyperCore coverage.