GetBetsList: Get a list of running/settled bets

Description Usage Arguments Value Examples

Description

Get a list of running/settled bets

Usage

1
2
3
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)

Arguments

betids

a vector of betids (overrides betlist) default = NULL

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

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

pinnacle.API documentation built on May 2, 2019, 10:24 a.m.