Closing lines
get_closing_linesFetch closing odds for settled events across up to 10 leagues and a 366-day range to calculate closing line value and run model backtests; page results with limit and skip.
Instructions
Closing odds for every settled event across up to 10 leagues in one request, for closing line value (CLV) and model backtests. Date range up to 366 days, so a season fits in one sweep; at most 100 events per response, page with limit and skip. Paid plans. Each event is shaped like get_historical_odds.
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": {
"sport": "<sport>",
"leagues": "<leagues>",
"from": "<from>",
"to": "<to>",
"markets": "<markets>",
"bookmakers": "<bookmakers>"
},
"name": "get_closing_lines"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | End date in RFC3339 format, at most 366 days after from | |
| from | Yes | Start date in RFC3339 format | |
| skip | No | Events to skip, for pagination | |
| limit | No | Events per response (max 100) | |
| sport | Yes | Sport slug from get_sports (e.g. 'football', 'basketball', 'tennis') | |
| leagues | Yes | Comma-separated league slugs (max 10) | |
| markets | Yes | Comma-separated market names (e.g. 'ML') | |
| bookmakers | Yes | Comma-separated bookmaker names (max 30) |