GetIbovStocks: Function to download the current components of the Ibovespa...

Description Usage Arguments Value Examples

View source: R/Get_Ibov_Stocks.R

Description

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.

Usage

1
2
3
4
5
GetIbovStocks(
  do.cache = TRUE,
  cache.folder = file.path(tempdir(), "BGS_Cache"),
  max.tries = 10
)

Arguments

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

Value

A dataframe that includes a column with the list of tickers of companies that belong to the Ibovespa index

Examples

1
2
3
4
5
## Not run: 
df.ibov <- GetIbovStocks()
print(df.ibov$tickers)

## End(Not run)

BatchGetSymbols documentation built on Jan. 13, 2021, 5:17 p.m.