get_closing_lines
Retrieve an event's closing lines—each book's final pre-match prices and no-vig fair probabilities—to calculate closing-line value and see if a bet beat the close.
Instructions
Get the closing lines captured for an event: each book's last pre-match prices from the moment the event went live, with no-vig and fair closing probabilities. Use it for closing-line value (CLV): was a bet better or worse than the close? Pass sportsbook and market to read one book and one market: an answer over about 100 kB is cut to its first rows and carries a truncated note with the full row count. An event that has not started returns no books. Requires a Pro plan or above.
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": {
"event_id": "<event_id>"
},
"name": "get_closing_lines"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| market | No | Market id from get_markets, e.g. "moneyline". Comma-separate for several. Matched whole against each row's market_type; when nothing matches, the answer lists the ids the event does carry as available_markets. | |
| event_id | Yes | Event id from list_events | |
| sportsbook | No | Book id from list_sportsbooks. Comma-separate for several. |