prediction.orderbook_imbalance_ratio
A single Polymarket outcome's bid-side vs ask-side order-book depth ratio, summed within depth_band_pct (default 5.0%) of each side's own best quote. 0.5 = balanced, closer to 1.0 = bid-side depth dominant, closer to 0.0 = ask-side dominant. A descriptive statistic only - not a prediction of price direction. Accepts either a raw token_id or a market_slug (+ outcome) to resolve it automatically. Paid in USDC on Base.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "prediction.orderbook_imbalance_ratio"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| outcome | No | "yes" (default) or "no" - which side to resolve when using market_slug. | |
| token_id | No | The outcome's CLOB token_id / asset_id, if already known. | |
| market_slug | No | Exact Polymarket market slug, used to resolve token_id automatically. | |
| depth_band_pct | No | How far into the book, as a percent of each side's own best quote, to sum depth. Defaults to 5.0. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| notice | No | ||
| best_ask | No | ||
| best_bid | No | ||
| token_id | Yes | ||
| data_source | Yes | ||
| market_slug | No | ||
| generated_at | Yes | ||
| depth_band_pct | Yes | ||
| imbalance_ratio | No | ||
| ask_depth_shares | Yes | ||
| bid_depth_shares | Yes | ||
| book_snapshot_time | No |