💧 New endpoint - this endpoint is not a part of original Hyperliquid API and is added by us for builder convenience.
Overview
The l4Book endpoint returns L4 orderbook snapshots. It includes all resting limit orders on the book with user addresses, but does not include trigger orders (stop-loss, take-profit) unless they have been triggered and placed on the book.
Key details:
Refreshed every second
Perpetual markets by default; outcome markets available via marketTypes or explicit coins
All-markets only. Each entry is "perp", "spot", "outcome", or the wildcard "*" (alone) for every type the server currently tracks. Omit for ["perp"] (default). Rejected if combined with coins.
Response
Headers:
Content-Type: application/octet-stream
x-payload-format: multi-zstd
x-compression: inner-zstd
Format: Multi-zstd binary format
Each blob is a zstd-compressed msgpack market snapshot: