Order Book Snapshot
flow_orderbookOrder-book snapshot for one coin's perpetuals: best bid/ask, spread in bps, top-of-book depth (USD) per side, bid/ask depth imbalance, and the cost vs mid of $10k and $100k market orders against the visible levels. Positive imbalance means more bid depth. Single-venue by nature — Hyperliquid, falling back to Bybit for coins it doesn't list; the response names the venue that answered and how far its visible book reaches.
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": "flow_orderbook"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| symbol | Yes | Coin symbol, e.g. "BTC". |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| asOfAt | No | Order-book timestamp, ISO-8601 UTC | |
| asOfMs | No | Order-book timestamp, Unix epoch milliseconds | |
| source | No | Venue that served the book | |
| symbol | Yes | ||
| fillCosts | No | Cost vs mid of a market order of each size against the visible levels | |
| spreadBps | No | Bid/ask spread, basis points of mid | |
| bestAskUsd | No | Best ask price, USD | |
| bestBidUsd | No | Best bid price, USD | |
| askDepthUsd | No | Top-of-book ask depth, USD | |
| bidDepthUsd | No | Top-of-book bid depth, USD | |
| midPriceUsd | No | Mid price, USD | |
| imbalancePct | No | Signed bid-vs-ask depth skew in percentage points (positive = more bids) | |
| visibleAskReachPct | No | Deepest returned ask vs mid, percent; nothing beyond is visible | |
| visibleBidReachPct | No | Deepest returned bid vs mid, percent; nothing beyond is visible |