Get Polymarket order book
get_orderbookFetch live bids and asks for a Polymarket outcome token to inspect best bid, best ask, midpoint, and spread at a chosen depth.
Instructions
Live bids/asks for one outcome token, with computed best bid, best ask, midpoint, and spread. Bids are returned highest-first and asks lowest-first (the top of book), truncated to depth levels.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| depth | No | How many price levels per side to return (default 10) | |
| tokenId | Yes | CLOB token ID (the long numeric string from a market's outcome; get it via search_markets or get_market) |