Returns a list of a race's data including runners, markets, dividends and pools
Can either use this function and provide it the race API URL, or use get_past_races
to get the same results. Note this can return results for multiple race meet URL at a time.
See the vignette or example for more details on how to get race API URLs.
Can then use the parsing functions to get the data you want from these lists.
Examples
if (FALSE) { # \dontrun{
try({
# first load in meet data
meets <- bettRtab::load_race_meet_meta(2022)
# then filter to the race(s) meets wanted
meet_dates_df <- meets %>%
filter(venueMnemonic == "M",
raceType == "R",
meetingDate == "2022-01-01")
# then get the URLs
meet_url <- meet_dates_df$races[[1]]
meet_url <- meet_url$`_links`$self[1]
out <- get_past_race_content(urls=meet_url)
})
} # }