Learn R Programming

pinnacle.API (version 1.90)

PlaceBet: Place Bet

Description

Place bet in the system

Usage

PlaceBet(stake, sportId, eventId, periodNumber, lineId, betType, altLineId = NULL, team = NULL, side = NULL, acceptBetterLine = TRUE, winRiskStake = "RISK", oddsFormat = "AMERICAN")

Arguments

stake
numeric Wager amount in currency
sportId
numeric the sport id
eventId
numeric the vent id
periodNumber
numeric Number of the period , see Pinnacle API manual
lineId
numeric ID of the line
betType
BET_TYPE
  • SPREAD
  • MONEYLINE
  • TOTAL_POINTS
  • TEAM_TOTAL_POINTS
altLineId
numeric ID of the alternate line (lineID must also be included)
team
Default = NULL , , see Pinnacle API manual
  • TEAM1
  • TEAM2
  • DRAW
side
Defaulat = NULL , , see Pinnacle API manual
  • OVER
  • UNDER
acceptBetterLine
Default=TRUE ,boolean Whether or not to accept a bet when there is a line change in favor of the client
winRiskStake
Default="RISK", either place the stake to RISK or to WIN
  • WIN
  • RISK
oddsFormat
Default="AMERICAN", Desired Odds Format
  • AMERICAN
  • DECIMAL
  • HONGKONG
  • INDONESIAN
  • MALAY

Value

list containing :
  • status If Status is PROCESSED_WITH_ERROR errorCode will be in the response
  • errorCode

Examples

Run this code

SetCredentials("TESTAPI","APITEST")
AcceptTermsAndConditions(accepted=TRUE)
PlaceBet (stake=10,
          sportId=1,
          eventId=495418854,
          periodNumber=0,
          lineId=222136736,
          betType="MONEYLINE",
          team="TEAM2",
          acceptBetterLine=TRUE,
          winRiskStake="WIN",
          oddsFormat="AMERICAN")

Run the code above in your browser using DataLab