PlaceParlayBet: PlaceParlayBet

Description Usage Arguments Value Examples

Description

Place parlay or round robin parlay bet in the system

Usage

1
2
3
4
5
PlaceParlayBet(riskAmount, legslist, roundRobinOptions = c("Parlay",
  "TwoLegRoundRobin", "ThreeLegRoundRobin", "FourLegRoundRobin",
  "FiveLegRoundRobin", "SixLegRoundRobin", "SevenLegRoundRobin",
  "EightLegRoundRobin")[1], oddsFormat = "AMERICAN",
  acceptBetterLine = TRUE)

Arguments

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

  • lineId

  • altLineId OPTIONAL

  • sportId

  • eventId

  • periodNumber

  • legBetType

    • MONEYLINE

    • SPREAD

    • TOTAL

    • TEAMTOTAL

  • team/side using one will invalidate the other

  • pitcher1MustStart OPTIONAL

  • pitcher2MustStart OPTIONAL

roundRobinOptions

one of the round robin options, default is 'Parlay'

  • Parlay

  • TwoLegRoundRobin

  • ThreeLegRoundRobin

  • FourLegRoundRobin

  • FiveLegRoundRobin

  • SixLegRoundRobin

  • SevenLegRoundRobin

  • EightLegRoundRobin

oddsFormat

default:'AMERICAN'

  • AMERICAN

  • DECIMAL

  • HONGKONG

  • INDONESIAN

  • MALAY

acceptBetterLine

: Default TRUE ,boolean Whether or not to accept a bet when there is a line change in favor of the client

Value

list containing:

Examples

 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)

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