PlaceParlayBet
Place parlay or round robin parlay bet in the system
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
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)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.