Skip to main content
Create an API key in the dashboard (the Free plan needs no card), then set it and call the BTC order book:

The response

This native Hyperliquid L2 route returns the order book in data, here with one level per side. Values change with the market:
  • px and sz are decimal strings. Parse them as decimals, not floats, when you need exact values.
  • n is the number of resting orders at that price level.
  • Keep meta.request_id, or the x-request-id response header, with the route and symbol. Responses covers the envelope in full.
The same call in Python and JavaScript:
The SDKs wrap this call in typed clients for Python, TypeScript, and Rust.

Confirm success

The first call is complete when it returns HTTP 200, 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.

Next step

Browse the Endpoint reference to find the next route for your job. Every endpoint page lists its parameters, response schema, and an example request.
Last modified on October 6, 2026