Order book depth
hl_orderbookDetermine if a Hyperliquid market can handle your trade size by simulating against the order book to see average fill price and slippage.
Instructions
Resting order book depth for one Hyperliquid market: spread, top of book, and how much size sits on each side. Pass size_usd to walk the book for that trade and get the average fill price and slippage — or a clear statement that the visible book is not deep enough to answer, which is common for large sizes. Answers "can I actually get in or out at this size", which price and volume alone do not. Read-only, public data, no API key.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| market | No | Which book to read. Default perp. | |
| symbol | Yes | Market symbol, e.g. HYPE or BTC. For spot pass the pair, e.g. PURR/USDC. | |
| size_usd | No | Trade size in USD to simulate against the book. Omitted = depth summary only. |