Learn R Programming

pinnacle.API (version 2.3.3)

GetLine: Get Lines (Use to get more detail on a single line, but the GetOdds or showOddsDF versions are intended for large amounts of data)

Description

Get Lines (Use to get more detail on a single line, but the GetOdds or showOddsDF versions are intended for large amounts of data)

Usage

GetLine(sportid, leagueids, eventid, periodnumber, betType, team = NULL,
  side = NULL, handicap = NULL, oddsFormat = "AMERICAN", force = TRUE)

Arguments

sportid

The sport ID

leagueids

integer vector of leagueids.

eventid

numeric xxxxx

periodnumber

xxxxx

betType

xxxx

team

xxxx

side

xxx

handicap

xxx

oddsFormat

xxx

force

passed along to GetSports

Value

returns a data frame with columns:

  • SportID

  • Last

  • League

  • LeagueID

  • EventID

  • StartTime

  • HomeTeamName

  • AwayTeamName

  • Rotation Number

  • Live Status

  • Status

  • Parlay Status

Examples

Run this code
# NOT RUN {
SetCredentials("TESTAPI","APITEST")
AcceptTermsAndConditions(accepted=TRUE)
 GetLine(sportId=1,leagueids=191545,eventId=495418854,
 periodNumber=0,team="TEAM1",betType="Moneyline")
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab