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

GetSpecialLine

Get the Line for a Special Contestant


Description

Queries the current line and odds for a given contestant in a special.

Usage

GetSpecialLine(specialId, contestantId, oddsFormat = "AMERICAN")

Arguments

specialId

The ID of the special for the contestant.

contestantId

The ID of the contestant.

oddsFormat

Format for the returned odds. One of "AMERICAN", "DECIMAL", "HONGKONG", "INDONESIAN", or "MALAY".

Details

This function will raise an error if the API does not return HTTP status OK. For information on the possible errors, see the API documentation for Get Special Line.

Value

A data frame with the following columns:

status

When a line ID is retrieved this will contain the code "SUCCESS". Otherwise it may contain "NOT_EXISTS" or "OFFLINE".

specialId

The ID of the special.

contestantId

The ID of the contestant.

minRiskStake

Minimum bettable risk amount.

maxRiskStake

Maximum bettable risk amount.

minWinStake

Minimum bettable win amount.

maxWinStake

Maximum bettable win amount.

lineId

Line ID needed to place a bet.

price

Latest price.

handicap

Handicap value, if applicable.

See Also

See GetLine to retrieve non-special lines, GetSpecialFixtures to query available special contestants, and PlaceSpecialBet to actually wager on a contestant.

Examples

SetCredentials("TESTAPI", "APITEST")
AcceptTermsAndConditions(accepted = TRUE)

# This contest is unlikely to exist, but serves as an example
# of the format.
GetSpecialLine(specialId = 101, contestantId = 102,
               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.