toa_event_odds {oddsapiR} | R Documentation |
Find odds for the sports which are accessible through the Odds API
Description
Get the odds for the sports which the Odds API provides coverage
try(toa_sports_odds(sport_key = 'baseball_mlb', regions = 'us', markets = 'spreads', odds_format = 'decimal', date_format = 'iso'))
Usage
toa_event_odds(
sport_key,
event_id,
regions = "us",
markets = "spreads",
odds_format = "decimal",
date_format = "iso",
bookmakers = NULL
)
Arguments
sport_key |
The |
event_id |
The |
regions |
The region to pull odds from. Options include:
|
markets |
The type of odds to return. Multiple can be specified if comma delimited. Options include:
NFL Player Props:
NBA + NCAAB Player Props:
NHL Player Props:
|
odds_format |
The format in which to return odds. Options include:
|
date_format |
Date format. Options include:
|
bookmakers |
Comma-separated list of bookmakers to be returned. If both bookmakers and regions are specified, bookmakers takes precendence. Bookmakers can be from any region. Every group of 10 bookmakers counts as 1 request. For example for a single market, specifying up to 10 bookmakers counts as 1 request. Specifying between 11 and 20 bookmakers counts as 2 requests |
Details
try(toa_event_odds(sport_key = 'basketball_ncaab', event_id = '48db9c3293a52baab881d95d38f37a98', regions = 'us', markets = 'player_points', odds_format = 'decimal', date_format = 'iso'))
Value
Sports for which The Odds API provides betting information for as a tibble:
col_name | types |
id | character |
sport_key | character |
sport_title | character |
commence_time | character |
home_team | character |
away_team | character |
bookmaker_key | character |
bookmaker | character |
last_update | character |
market_key | character |
outcomes_name | character |
outcomes_price | numeric |
outcomes_point | numeric |