Get Polymarket order book
polymarket_get_orderbookFetch a live Polymarket order book for one outcome to check best bid/ask, spread, mid price, implied probability, and top depth before trading.
Instructions
Get the live order book for one market outcome: best bid/ask, spread, mid price, implied probability, and top-of-book depth.
This is where you check whether an edge is real: the implied probability (mid) is the market's estimate, while best ask is what you'd actually pay to buy and best bid what you'd receive to sell. A wide spread or thin depth means the "price" you saw elsewhere may not be executable.
Identify the outcome either by token_id (preferred) OR by slug + outcome.
Args:
token_id (string, optional): the ~77-digit CLOB token id for one outcome.
slug (string, optional) + outcome (string, optional): e.g. slug + "Yes". Outcome defaults to the first.
depth (number): price levels per side to include, 1-50 (default 10).
response_format ('markdown' | 'json'): default 'markdown'.
Returns: { tokenId, outcome, slug, question, bestBid, bestAsk, mid, spread, impliedProbabilityPct, spreadPct, totalBidSize, totalAskSize, bids:[{price,size}], asks:[{price,size}], timestamp }.
Errors: "No market found for slug…" (bad slug); an empty side is reported as bestBid/bestAsk = null.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | No | Market slug — alternative to token_id. Combine with 'outcome'. | |
| depth | No | How many price levels per side to include (1-50, default 10). | |
| outcome | No | Outcome name to select when using 'slug' (e.g. 'Yes' or 'No'). Defaults to the first outcome. | |
| token_id | No | CLOB token id (the ~77-digit id for ONE outcome). Preferred when you already have it. | |
| response_format | No | Output format: 'markdown' (concise, human-readable; default) or 'json' (full structured data). | markdown |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mid | Yes | ||
| asks | Yes | ||
| bids | Yes | ||
| slug | Yes | ||
| spread | Yes | ||
| bestAsk | Yes | ||
| bestBid | Yes | ||
| outcome | Yes | ||
| tokenId | Yes | ||
| question | Yes | ||
| spreadPct | Yes | ||
| timestamp | Yes | ||
| totalAskSize | Yes | ||
| totalBidSize | Yes | ||
| impliedProbabilityPct | Yes |