prediction.orderbook_imbalance_ratio
Measure a Polymarket outcome's bid-side versus ask-side order-book depth imbalance within a chosen percentage band to assess buy/sell pressure. Returns depth shares and ratio; descriptive only.
Instructions
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, no confidence or verdict field. Reuses
the same order-book fetch as prediction.exit_capacity_audit - no new
upstream call.
Args:
token_id: The outcome's CLOB token_id / asset_id, if already known.
Provide either this OR market_slug.
market_slug: Exact Polymarket market slug, used to resolve token_id
automatically when not already known.
outcome: "yes" (default) or "no" - which side to resolve when using
market_slug. Ignored if token_id is given directly.
depth_band_pct: How far into the book, as a percent of each side's
own best quote, to sum depth. Defaults to 5.0.
Returns:
On success: {"success": true, "bid_depth_shares", "ask_depth_shares",
"imbalance_ratio", ...}
On failure: {"success": false, "error": {"type", "message"}}
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| outcome | No | yes | |
| token_id | No | ||
| market_slug | No | ||
| depth_band_pct | No |