Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

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/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

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")

pinnacle.API

A Wrapper for the Pinnacle API

v2.3.3
GPL-3
Authors
Nicholas Jhirad, Marco Blume, Aaron Jacobs, Amine Gassem
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.