powered by
Get a list of running/settled bets
GetBetsList(betids = NULL, betlist = c("SETTLED", "RUNNING"), fromDate = as.POSIXlt(Sys.Date(), tz = "UTC") - 15 * 24 * 60 * 60, toDate = as.POSIXlt(Sys.Date(), tz = "UTC") + 24 * 60 * 60)
a vector of betids (overrides betlist) default = NULL
Either 'SETTLED' or 'RUNNING' Default Behavior shows both
Iso8061 Date Default: 15 days prior in UTC, as.POSIXct(Sys.Date(), tz = 'UTC')-15*24*60*60
Iso8061 Date Default: 1 day ahead in UTC (to counter possible fencepost situations), as.POSIXct(Sys.Date(), tz = 'UTC') + 24*60*60
A list of bets and associated details
# NOT RUN { SetCredentials("TESTAPI","APITEST") AcceptTermsAndConditions(accepted=TRUE) GetBetsList() # }
Run the code above in your browser using DataLab