get_game_lines: Get lines and odds on main bets for popular sports from...

View source: R/get_game_lines.R

get_game_linesR Documentation

Get lines and odds on main bets for popular sports from popular betting sites

Description

Get lines and odds on main bets for popular sports from popular betting sites

Usage

get_game_lines(
  site,
  sport,
  exclude_live = TRUE,
  exclude_alts = TRUE,
  raw_data = NULL,
  save_path = NULL
)

Arguments

site

character book site; support 'fanduel'/'fd', 'draftkings'/'dk', 'pointsbet'/'pb', 'betrivers'/'br', 'barstool'/'bs', 'mgm', 'caesar'/'csr'

sport

character sport, e.g. 'nba'

exclude_live

boolean should live lines be excluded

exclude_alts

boolean should alternate lines be excluded

raw_data

data.frame defaults to NULL, but you can pass your pre-existing data.frame to be parsed

save_path

character path to save jsons, if not NULL

Details

this code should pull moneylines, spreads, and totals, including alternate spreads and totals,

Value

data.frame tidy game lines with tidy columns


jimtheflash/betfinder documentation built on Dec. 6, 2023, 5:58 a.m.