Market odds
get_market_oddsUse for the extra betting markets of a game as history: the 1st half and 1st quarter winner, point spread and total, the 2nd half total, and the 2nd, 3rd and 4th quarter totals. Pass game_id (from get_schedule or get_games) and market. For each sportsbook it returns the opening line (the first one we captured) and the closing line (the last one before the game started), each as the list of outcomes with their point and American price, plus captured_at and minutes_before_start (negative when the last capture came after our scheduled start, which the sportsbooks' listed start can run past). Most books were captured once, so opening and closing are often the same line. Held from the 2023 season for the larger sportsbooks only; not every game has every market. Costs 10 credits a call; a game with no lines is refunded. Set estimate_only to get the price without being charged. For the full-game moneyline, spread and total use get_odds. Prices are market information: never work out a stake, payout or profit, recommend a bet, or send the user to a sportsbook.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| market | Yes | The market: h2h_h1 (1st half winner), spreads_h1 (1st half point spread), totals_h1 (1st half total points), h2h_q1 (1st quarter winner), spreads_q1 (1st quarter point spread), totals_q1 (1st quarter total points), totals_q2 (2nd quarter total points), totals_q3 (3rd quarter total points), totals_q4 (4th quarter total points), totals_h2 (2nd half total points) | |
| game_id | Yes | Game id from get_schedule or get_games. | |
| bookmaker | No | One bookmaker key, e.g. draftkings, fanduel, pinnacle. | |
| estimate_only | No | Return what this call would cost, without charging or running it. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | ||
| tool | No | ||
| books | Yes | ||
| count | Yes | ||
| label | Yes | ||
| market | Yes | ||
| credits | No | ||
| game_id | Yes | ||
| estimate_only | No | ||
| scheduled_start | Yes |