prediction.exit_capacity_audit
Walk a single Polymarket outcome's live order book to determine how much of a given position size can actually be filled right now, at what average price, and with how much price impact versus the best quote - a live snapshot, not historical liquidity. Accepts either a raw token_id or a market_slug (+ outcome) to resolve it automatically - exact slug only, no fuzzy keyword search. Do not use for multi-outcome basket arbitrage detection (use prediction.neg_risk_arbitrage instead). Paid in USDC on Base.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| side | No | "sell" (default) or "buy". | |
| 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. | |
| position_size_shares | Yes | Number of outcome shares to sell (or buy). Must be positive. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| side | Yes | ||
| notice | No | ||
| token_id | Yes | ||
| best_quote | No | ||
| executable | Yes | ||
| data_source | Yes | ||
| market_slug | No | ||
| generated_at | Yes | ||
| avg_exit_price | No | ||
| price_impact_pct | No | ||
| position_size_shares | Yes | ||
| max_executable_shares | Yes |