Skip to content

Releases: durtal/betfaiR

Account API and Australian Exchange

30 Dec 14:04

Choose a tag to compare

A number of additions

  • bf_account returns an environment with methods for minimal access to the Accounts APING, for returning data about account, funds, details, statements, and allows funds to be transferred. The account statement can hopefully be plotted, showing profit/loss over time
acc <- bf_account(usr = Sys.getenv("BETFAIR_USR"), 
                  pwd = Sys.getenv("BETFAIR_PWD"), 
                  key = Sys.getenv("BETFAIR_KEY"))
statement <- acc$statement()
plot(statement)
  • betfair now takes an additional argument, called dom, which sets the exchange domain, default is "uk", change to "aus" for Australian exchange
bf <- betfair(usr = Sys.getenv("BETFAIR_USR"), 
              pwd = Sys.getenv("BETFAIR_PWD"), 
              key = Sys.getenv("BETFAIR_KEY"),
              dom = "aus")
  • betfair includes method (account) which calls bf_account and returns account environment, be careful not to share this!

All available methods

16 Dec 21:27

Choose a tag to compare

Package now contains all methods for retrieving data from Betfair markets. Allows quick searching for markets and runners, retrieval of market data (prices, total matched, total available), allows bets to be placed, updated, replaced and cancelled, ability to retrieve market profit and loss, as well as any current or cleared bets.