get_order_book
Fetch live L2 order book for Hyperliquid markets, displaying top bids, asks, sizes, and spread. Supports perp and spot pairs.
Instructions
Live L2 order book for a Hyperliquid market (e.g. 'BTC'): top bids and asks with sizes, plus the spread. Works for perps (BTC) and spot pairs (e.g. 'HYPE/USDC').
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": {
"coin": "<coin>"
},
"name": "get_order_book"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| coin | Yes | Market symbol, e.g. BTC or HYPE/USDC | |
| depth | No | Levels per side (default 10) |