Order book depth
get_order_bookRetrieve top price levels per side and cumulative liquidity within specified percentage bands of mid for a DeepBook pool to assess market depth.
Instructions
Order book for a DeepBook pool: top N price levels per side and cumulative liquidity (base qty and quote notional) within ±X% of mid. Education/information only; not financial advice. Read-only public data, may be delayed or wrong.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pool | Yes | DeepBook pool name BASE_QUOTE, e.g. SUI_USDC (case-insensitive; '/' or '-' also accepted) | |
| levels | No | Price levels to return per side (1-100, default 10) | |
| within_pct | No | Depth bands as % distance from mid, e.g. [0.5, 1, 2] |