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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"tokenId": "<tokenId>"
},
"name": "get_orderbook"
}
}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) |