Releases: durtal/betfaiR
Releases · durtal/betfaiR
Account API and Australian Exchange
A number of additions
bf_accountreturns 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)betfairnow takes an additional argument, calleddom, 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")betfairincludes method (account) which callsbf_accountand returns account environment, be careful not to share this!
All available methods
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.