index_get: Get index historical data

View source: R/scraper-indexes.R

index_getR Documentation

Get index historical data

Description

Gets historical data from B3 indexes

Usage

index_get(
  index_name,
  first_date,
  last_date = Sys.Date(),
  cache_folder = cachedir(),
  do_cache = TRUE
)

Arguments

index_name

a string with the index name

first_date

First date

last_date

Last date

cache_folder

Location of cache folder (default = cachedir())

do_cache

Whether to use cache or not (default = TRUE)

Value

A data.frame/tibble with index data

Examples

## Not run: 
index_get("IBOV", as.Date("1977-01-01"), as.Date("1999-12-31"))

## End(Not run)


rb3 documentation built on April 14, 2023, 5:10 p.m.