PlaceBet: Place Bet

Description Usage Arguments Value Examples

Description

Place bet in the system

Usage

1
2
3
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/WIN

  • WIN

  • RISK

oddsFormat

Default="AMERICAN", Desired Odds Format

  • AMERICAN

  • DECIMAL

  • HONGKONG

  • INDONESIAN

  • MALAY

Value

list containing :

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
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")

marcoblume/pinnacle.API documentation built on Sept. 11, 2019, 4:05 a.m.