Learn R Programming

pinnacle.API (version 2.3.3)

GetOdds: Get Odds

Description

Get Odds

Usage

GetOdds(sportid, leagueids = NULL, since = NULL, islive = 0,
  oddsformat = "AMERICAN", tableformat = "mainlines", force = TRUE)

Arguments

sportid

(optional) The sport id for which to retrieve the fixutres

leagueids

(optional) integer vector of leagueids.

since

(optional) numeric This is used to receive incremental updates. Use the value of last from previous response.

islive

boolean if TRUE retrieves ONLY live events

oddsformat

default AMERICAN, see API manual for more options

tableformat
  • 'mainlines' (default), only shows mainlines

  • 'long' for a single record for each spread/total on an event,

  • 'wide' for all lines as one record,

  • 'subtables' all lines for spreads/totals stored as nested tables

force

boolean if FALSE, functions using cached data will use the values since the last force

Value

data.frame of odds

Examples

Run this code
# NOT RUN {
SetCredentials("TESTAPI","APITEST")
AcceptTermsAndConditions(accepted = TRUE)
# We can run without parameters, and will be given a selection of sports
GetOdds()
# }

Run the code above in your browser using DataLab