Description Usage Arguments Value Examples
showOddsDF - Takes a GetOdds JSON response and combines with Fixtures and Inrunning
1 2 3 |
sportid |
(optional) The sportid to get odds from, if none is given, a list of options and a prompt are provided |
leagueids |
numeric vector of leagueids - can get as output from GetLeagues |
since |
numeric This is used to receive incremental updates. this will give all lines that have changed odds. |
islive |
boolean if TRUE retrieves ONLY live events |
force |
boolean default set to TRUE, forces a reload of the cache. |
tableformat |
|
namesLength |
how many identifiers to use in the names, default is 3 |
attachLeagueInfo |
whether or not to include league information in the data |
oddsformat |
default AMERICAN, see API manual for more options bettable leagues |
fixtures_since |
if set, get only fixtures that were posted since last. |
a dataframe combining GetOdds and GetFixtures data, containing NA's where levels of factors do not have a value. Naming convention is as follows, Example: spread.altLineId.N is the altLineId associated with spread.hdp.(N+1) whereas spread.hdp refers to the mainline. spread.altLineId is the first alternate, and equivalent to spread.altLineId.0
1 2 3 4 | SetCredentials("TESTAPI","APITEST")
AcceptTermsAndConditions(accepted=TRUE)
# Run without arguments, it will prompt you for the sport
showOddsDF()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.