get_midpoint
Calculate the mid-market price for an outcome token by averaging best bid and ask prices, delivering a fair-value indicator for Polymarket markets.
Instructions
Calculate and return the mid-market price for a specified outcome token.
The midpoint serves as a fair-value indicator generated by averaging the current best bid and best ask prices.
Args: token_id (str): The fundamental token identifier indicating the outcome side.
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_midpoint"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| token_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |