L4PerpBookSnapshot
Get L4 orderbook snapshot for perpetual markets.
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
marketTypesor explicitcoinsIncludes user address for each order
Request
Endpoint: POST /info
All markets (perps only — default):
{
"type": "l4Book"
}All markets, perps + outcomes:
{
"type": "l4Book",
"marketTypes": ["perp", "outcome"]
}Specific coins (any market type):
Parameters:
coins
string[]
No
Specific markets to fetch. Omit for all markets.
marketTypes
string[]
No
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-streamx-payload-format: multi-zstdx-compression: inner-zstd
Format: Multi-zstd binary format
Each blob is a zstd-compressed msgpack market snapshot:
Example
Rate limits
10 requests per 5 minutes
Common errors
403: Permission denied - check API key
404: No snapshot available yet - retry shortly
429: Rate limit exceeded
Last updated