HyperNode

Snapshots

Request and download the full Hyperliquid L4 order book snapshot written by the node, then follow the streams from its height.

Snapshots

A snapshot is the full L4 order book at one block: every resting order of every coin. It is about 285 MB of JSON uncompressed, and the node needs a few seconds to write one.

POST /v1/snapshot

No request body. Returns the most recent snapshot when it is younger than 30 seconds; otherwise the node writes a new one. Two clients asking at once get the same snapshot.

FieldTypeMeaning
snapshot_idstringId for GET /v1/snapshot/{id}
heightintegerBlock the snapshot was taken at. Resume streams from height + 1
created_atUTC timeWhen the node wrote it
size_bytesintegerUncompressed size
data_urlstringPath to download it, relative to the base URL

503 when the node did not produce a snapshot in time (2 minutes).

GET /v1/snapshot

The snapshots on disk (the last 2), newest first, with the same fields.

GET /v1/snapshot/{id}

The snapshot JSON: [height, [[coin, [bids, asks]], ...]]. Every order carries its user, price, size, order id and flags as the node reports them. Response header X-Snapshot-Height.

Send Accept-Encoding: gzip. 404 when the snapshot is unknown or already deleted: request a new one.

ID=$(curl -s -X POST -H "X-CoinAPI-Key: $KEY" "$NODE_API_URL/v1/snapshot" | jq -r .snapshot_id)
curl -s --compressed -H "X-CoinAPI-Key: $KEY" "$NODE_API_URL/v1/snapshot/$ID" -o snapshot.json

Then follow the streams with from_block set to the snapshot's height + 1, as described in the client contract.