prediction.bid_ask_spread_pct
Compute a Polymarket outcome's live top-of-book bid/ask spread as a percentage of mid price from a token_id or market_slug for quick quote spread checks.
Instructions
Cheap tier - a single Polymarket outcome's live top-of-book bid/ask spread
as a percentage of mid_price. Not a liquidity or executability measure
(use prediction.exit_capacity_audit/order_split_guide for that). Reuses
the same order-book fetch as those tools - 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.
Returns:
On success: {"success": true, "best_bid", "best_ask", "mid_price",
"spread_abs", "spread_pct", ...}
On failure: {"success": false, "error": {"type", "message"}}
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| outcome | No | yes | |
| token_id | No | ||
| market_slug | No |