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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| token_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |