ws_get_orderbook
Fetch a live Polymarket orderbook snapshot over WebSocket by asset ID to view current bids and asks for market analysis.
Instructions
Get live orderbook snapshot for a Polymarket asset via WebSocket. Returns current bids and asks.
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": {
"assetId": "<assetId>"
},
"name": "ws_get_orderbook"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| assetId | Yes | Token/asset ID to get orderbook for (required). Get this from market clobTokenIds field. | |
| durationSeconds | No | How long to wait for orderbook snapshot in seconds (default: 3, max: 10) |