1
Create a key
Open the dashboard and create an API key. The free tier needs no card.
2
Set it in your shell
3
Call the BTC order book
The response
This native Hyperliquid L2 route returns an order-book object in thedata field. Here is a representative response with one level per side:
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_idor thex-request-idresponse header with the route and symbol.
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. Store the route, symbol, response timestamp, and request ID together before adding another route or symbol.
When a call fails
Most first-call failures are a missing or wrong key (401). Check your X-API-Key and follow REST authentication. Authentication failures can return a compact body with top-level code and error; other application errors commonly use the standard response envelope:
Full codes, retry rules, and request-ID handling are on Errors and request IDs. For credits, concurrency, and per-plan limits, see Rate limits. Keep the failed
meta.request_id or x-request-id when you ask for support.
Next
Browse REST routes
Parameters, schemas, examples, and credits, backed by OpenAPI.
Check venue coverage
Pick the right namespace and confirm the history window before wiring symbols.
Connect WebSocket
Check channel availability before choosing real-time data or replay.
Choose tooling
Move from curl to SDKs, CLI, MCP Server, Skill, or OpenAPI codegen.