Hyperliquid order book depth and slippage: spread, depth bands, imbalance, fill price for $1k-$100k
hl_orderbookUse when an agent sizes a Hyperliquid market order or compares liquidity. Input: coin (perp or HIP-3 xyz:TSLA), optional sizes_usd (up to 5, default 1000,10000,100000), levels (0-20). Output: JSON best bid/ask, spread bps, depth USD within 0.1/0.5/1/2%, imbalance, per size buy/sell average fill, worst price and slippage bps vs mid, top levels. Cached 3 s. Example: ?coin=BTC&sizes_usd=1000,10000 Price: $0.0036 USDC (Base or Solana) via x402.
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": "hl_orderbook"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| coin | Yes | Hyperliquid perp symbol (BTC, ETH, kPEPE) or HIP-3 dex:COIN (xyz:TSLA). Not listed or delisted: 400 before payment (not charged) | |
| levels | No | Book levels per side to return (0-20, default 10) | |
| sizes_usd | No | 1-5 comma-separated order notionals in USD, 10 to 50,000,000 (default 1000,10000,100000) |