GetIbovStocks {BatchGetSymbols} | R Documentation |
This function scrapes the stocks that constitute the Ibovespa index from the wikipedia page at http://bvmf.bmfbovespa.com.br/indices/ResumoCarteiraTeorica.aspx?Indice=IBOV&idioma=pt-br.
GetIbovStocks(
do.cache = TRUE,
cache.folder = file.path(tempdir(), "BGS_Cache"),
max.tries = 10
)
do.cache |
Use cache system? (default = TRUE) |
cache.folder |
Where to save cache files? (default = file.path(tempdir(), 'BGS_Cache') ) |
max.tries |
Maximum number of attempts to download the data |
A dataframe that includes a column with the list of tickers of companies that belong to the Ibovespa index
## Not run:
df.ibov <- GetIbovStocks()
print(df.ibov$tickers)
## End(Not run)