BF_Prices: Prices on betfair markets.

Description Usage Arguments Details Value Author(s) References See Also

Description

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.

Usage

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

Arguments

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 options(bfServer = "AU").

output

Indicates the form of the returned value. Can be "simple" (default), "xml", "list" or "S4". See betfairly-package.

curlOpts

RCurl options passed directly to curlPerform. You can also set the defaults with options(bfCurlOpts = list(opt1 = val1, opt2 = val2, ...)).

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 options(bfServer = "AU").

output

Indicates the form of the returned value. Can be "simple" (default), "xml", "list" or "S4". See betfairly-package.

curlOpts

RCurl options passed directly to curlPerform. You can also set the defaults with options(bfCurlOpts = list(opt1 = val1, opt2 = val2, ...)).

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 options(bfServer = "AU").

output

Indicates the form of the returned value. Can be "simple" (default), "xml", "list" or "S4". See betfairly-package.

curlOpts

RCurl options passed directly to curlPerform. You can also set the defaults with options(bfCurlOpts = list(opt1 = val1, opt2 = val2, ...)).

Details

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.

Value

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.

Author(s)

Vitalie Spinu (spinuvit@gmail.com)

References

http://code.google.com/p/betfairly/, https://docs.developer.betfair.com/betfair/

See Also

betfairly-package bfSimpleOutput-class getActiveEventTypes


vspinu/betfairly documentation built on May 3, 2019, 7:08 p.m.