Get Polymarket order book
get_orderbookRetrieve live bids and asks for a prediction market outcome token, including best bid, best ask, midpoint, and spread. Bids sorted highest, asks lowest.
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 |
|---|---|---|---|
| tokenId | Yes | CLOB token ID (the long numeric string from a market's outcome; get it via search_markets or get_market) | |
| depth | No | How many price levels per side to return (default 10) |