The response
This native Hyperliquid L2 route returns the order book indata, here with one level per side. Values change with the market:
pxandszare decimal strings. Parse them as decimals, not floats, when you need exact values.nis the number of resting orders at that price level.- Keep
meta.request_id, or thex-request-idresponse header, with the route and symbol. Responses covers the envelope in full.
Confirm success
The first call is complete when it returns HTTP200, success: true, an order-book object in data, and a UUID-shaped meta.request_id.
Do not use GET /health as the key check. It is an unauthenticated liveness route, so it succeeds with or without a valid key.
Before you add another symbol or a historical window, confirm its namespace and history in Venue coverage. The Free plan reads the most recent 30 days. The same key works for WebSocket streams and replay, the CLI, and the Agent skill.
When a call fails
Every error returns the same flat JSON body:success: false, the HTTP status in code, a stable error_code, a readable error message, and a top-level request_id. A call without a key returns:
Errors lists every code with its retry rule, and Rate limits gives each plan’s credits and concurrency. Quote the failed
request_id or x-request-id when you contact support.