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. Also returns book_snapshot_time (the book's own reported timestamp) and Polymarket's own tick_size/min_order_size for this market (null if the book response didn't include them). 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 | ||
| tick_size | No | Polymarket's own reported minimum price increment for this market. Null if the book response didn't include it. | |
| best_quote | No | ||
| executable | Yes | ||
| data_source | Yes | ||
| market_slug | No | ||
| generated_at | Yes | ||
| avg_exit_price | No | ||
| min_order_size | No | Polymarket's own reported minimum order size for this market. Null if the book response didn't include it. | |
| price_impact_pct | No | ||
| book_snapshot_time | No | The order book's own reported snapshot timestamp, so you can judge how fresh this read is. | |
| position_size_shares | Yes | ||
| max_executable_shares | Yes |