Get an order book
get_orderbookThe live Hyperliquid order book for one market (api:read): bids and asks, each level {px, sz, n} (price, size, order count), best first. symbol is a perp (BTC, HYPE), a HIP-3 market (xyz:TSLA) or a spot pair in pair-id form (@107 for HYPE/USDC). Instrument ids are bare Hyperliquid symbols (BTC, HYPE) or dex-prefixed HIP-3 symbols (xyz:TSLA) — exactly the symbol values scan_markets returns.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| symbol | Yes |