Description Usage Arguments Details Value Author(s) References See Also
Functions to retrieve prices on Betfair markets.
getMarketPrices: Retrieve dynamic market data for a given Market ID.
getMarketPricesCompressed: Retrieve dynamic market data for a given Market ID in a compressed format. This service returns the same information as the Get Market Prices service but returns it in a ~ (tilde) delimited String.
1 2 3 4 5 6 7 8 9 10 | getCompleteMarketPricesCompressed(marketId, currencyCode = "EUR",
server = getOption("bfServer"), output = getOption("bfOutput"),
curlOpts = list())
getMarketPrices(marketId, currencyCode, server = getOption("bfServer"),
output = getOption("bfOutput"), curlOpts = list())
getMarketPricesCompressed(marketId, currencyCode,
server = getOption("bfServer"), output = getOption("bfOutput"),
curlOpts = list())
|
marketId |
Integer specifying the market ID. |
currencyCode |
Three letter ISO 4217 code. |
server |
"GB" (default) or "AU" - a Betfair exchange
server to use. You can set the default with
|
output |
Indicates the form of the returned value.
Can be "simple" (default), "xml", "list" or "S4". See
|
curlOpts |
RCurl options passed directly to
|
marketId |
integer ID of the required market |
currencyCode |
character Three letter ISO 4217 code. If not supplied, users currency is used |
server |
"GB" (default) or "AU" - a Betfair exchange
server to use. You can set the default with
|
output |
Indicates the form of the returned value.
Can be "simple" (default), "xml", "list" or "S4". See
|
curlOpts |
RCurl options passed directly to
|
marketId |
Integer specifying the market ID. |
currencyCode |
Three letter ISO 4217 code. |
server |
"GB" (default) or "AU" - a Betfair exchange
server to use. You can set the default with
|
output |
Indicates the form of the returned value.
Can be "simple" (default), "xml", "list" or "S4". See
|
curlOpts |
RCurl options passed directly to
|
getCompleteMarketPricesCompressed: Retrieve all back and lay stakes for each price on the exchange for a given Market ID in a compressed format. The information returned is similar to the GetDetailAvailableMarketDepth, except it returns the data for an entire market, rather than just one selection.
A list of class
GetCompleteMarketPricesCompressedRespSimple
with
three additional slots containing data.frames
removedRunners
, runners
and prices
.
Use merge
for joining these by the common
field runners
.
Object of class "GetMarketPricesRespSimple"
with a
slot runnerPrices
containing a data frame of back
and lay prices for each runner. This function returns the
same information as getMarketPricesCompressed
but in
a merged, long format.
Object of class GetMarketPricesCompressedRespSimple
containing slots runners
and prices
.
Vitalie Spinu (spinuvit@gmail.com)
http://code.google.com/p/betfairly/, https://docs.developer.betfair.com/betfair/
betfairly-package
bfSimpleOutput-class
getActiveEventTypes
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.