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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"symbol": "<symbol>"
},
"name": "get_orderbook"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| symbol | Yes |