Learn R Programming

pinnacle.API (version 1.90)

GetBetsList: Get a list of running/settled bets

Description

Get a list of running/settled bets

Usage

GetBetsList(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)

Arguments

betlist
Either 'SETTLED' or 'RUNNING' Default Behavior shows both
fromDate
Iso8061 Date Default: 15 days prior in UTC, as.POSIXct(Sys.Date(), tz = 'UTC')-15*24*60*60
toDate
Iso8061 Date Default: 1 day ahead in UTC (to counter possible fencepost situations), as.POSIXct(Sys.Date(), tz = 'UTC') + 24*60*60

Value

A list of bets and associated details

Examples

Run this code

SetCredentials("TESTAPI","APITEST")
AcceptTermsAndConditions(accepted=TRUE)
GetBetsList()

Run the code above in your browser using DataLab