Learn R Programming

pinnacle.API (version 1.90)

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")

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

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

SetCredentials("TESTAPI","APITEST")
AcceptTermsAndConditions(accepted=TRUE)
 GetLine(sportId=1,leagueids=191545,eventId=495418854,
 periodNumber=0,team="TEAM1",betType="Moneyline")

Run the code above in your browser using DataLab