get_arbs: Find Arbitrage Opportunities

Description Usage Arguments Details Value

View source: R/get_arbs.R

Description

Input a sport homepage URL as a string and return a list of arbitrage information. This will also print dataframes with details of the arbitrage opportunities, including the stake required for equal returns, the value of said equal returns, along with the relevant bookie for each outcome.

Usage

1
2
3
4
5
6
7
get_arbs(
  event = "https://www.oddschecker.com/football",
  in_play = FALSE,
  print_urls = FALSE,
  parallel = TRUE,
  debug = FALSE
)

Arguments

event

A URL to a www.oddschecker.com sport homepage, given as a string.

in_play

Logical. Should in-play arbitrage opportunities (arbs) also be returned? These are not likely to be accurate arbs as some bookie's odds will not be up-to-date, therefore default is FALSE.

print_urls

Logical. Should the URL of the event(s) be printed to the console while searching for arbitrage opportunities? Passed to get_arb_single.

parallel

Logical. Should iterative calls to get_arb_single be made in parallel.

debug

Logical. If set to TRUE, print_urls will be turned on and parallel will be turned off (so that URLs can be printed continuously).

Details

The workhorse function, clearly, is get_arb_single, however get_arbs implements it iteratively, after scraping and cleaning the required inputs for each distinct call to get_arb_single. This includes finding all the sub-URLs of the homepage. A progress bar is also used as the runtime is significant.

Value

A list, with arbitrage information printed as series of dataframes.


aRbs documentation built on April 24, 2021, 5:08 p.m.