get_spread
Calculate the bid-ask spread for Polymarket prediction market tokens using real-time order book data to assess market liquidity and pricing efficiency.
Instructions
Compute spread from CLOB /book best bid/ask. Source: clobTokenIds from list_active_markets or get_market_details. If token has no active CLOB/order book, returns 404. Example: token_id=clobTokenIds[0].
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": {
"token_id": "<token_id>"
},
"name": "get_spread"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| token_id | Yes | Token ID |