Description Usage Arguments Details Value See Also Examples
Queries the current line and odds for a given contestant in a special.
1 | GetSpecialLine(specialId, contestantId, oddsFormat = "AMERICAN")
|
specialId |
The ID of the special for the contestant. |
contestantId |
The ID of the contestant. |
oddsFormat |
Format for the returned odds. One of |
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.
A data frame with the following columns:
statusWhen a line ID is retrieved this will contain the
code "SUCCESS". Otherwise it may contain "NOT_EXISTS" or
"OFFLINE".
specialIdThe ID of the special.
contestantIdThe ID of the contestant.
minRiskStakeMinimum bettable risk amount.
maxRiskStakeMaximum bettable risk amount.
minWinStakeMinimum bettable win amount.
maxWinStakeMaximum bettable win amount.
lineIdLine ID needed to place a bet.
priceLatest price.
handicapHandicap value, if applicable.
See GetLine to retrieve non-special lines,
GetSpecialFixtures to query available special contestants, and
PlaceSpecialBet to actually wager on a contestant.
1 2 3 4 5 6 7 | 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")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.