Description Usage Arguments Value Examples
Place parlay or round robin parlay bet in the system
1 2 3 4 5 | PlaceParlayBet(riskAmount, legslist, roundRobinOptions = c("Parlay",
"TwoLegRoundRobin", "ThreeLegRoundRobin", "FourLegRoundRobin",
"FiveLegRoundRobin", "SixLegRoundRobin", "SevenLegRoundRobin",
"EightLegRoundRobin")[1], oddsFormat = "AMERICAN",
acceptBetterLine = TRUE)
|
riskAmount |
numeric Wager amount in currency |
legslist |
A list of wagers, where each wager must be in named list format. Required named values are: legBetType, lineId, either team or side, and periodNumber. Optional named values are: altLineId, pitcher1MustStart, or pitcher2MustStart. See the API Manual for more info
|
roundRobinOptions |
one of the round robin options, default is 'Parlay'
|
oddsFormat |
default:'AMERICAN'
|
acceptBetterLine |
: Default TRUE ,boolean Whether or not to accept a bet when there is a line change in favor of the client |
list containing:
status If Status is PROCESSED_WITH_ERROR errorCode will be in the response
errorCode
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | SetCredentials("TESTAPI","APITEST")
AcceptTermsAndConditions(accepted=TRUE)
parlay1 <- list(lineId = 222136736,
sportId=1,
eventId = 495418854,
periodNumber=0,
legBetType = "MONEYLINE",
team = 'TEAM1')
parlay2 <- list(lineId = 223187865,
sportId=1,
eventId = 496997901,
periodNumber=0,
legBetType = "TOTAL_POINTS",
side = 'OVER')
legslist <- list(parlay1,parlay2)
PlaceParlayBet(riskAmount=10,
legslist=legslist,
roundRobinOptions="Parlay",
oddsFormat="AMERICAN" ,
acceptBetterLine=TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.