powered by
Downloads index data from B3 website https://www.b3.com.br/pt_br/market-data-e-indices/servicos-de-dados/market-data/historico/boletins-diarios/pesquisa-por-pregao/pesquisa-por-pregao/.
indexreport_mget( first_date = Sys.Date() - 5, last_date = Sys.Date(), by = 1, cache_folder = cachedir(), do_cache = TRUE )indexreport_get( refdate = Sys.Date(), cache_folder = cachedir(), do_cache = TRUE )
indexreport_get( refdate = Sys.Date(), cache_folder = cachedir(), do_cache = TRUE )
A dataframe with index data (OHLC, average and daily oscillation)
First date ("YYYY-MM-DD") to yc_mget multiple curves
yc_mget
Last date ("YYYY-MM-DD") to yc_mget multiple curves
Number of days in between fetched dates (default = 1) in yc_mget
Location of cache folder (default = cachedir())
Whether to use cache or not (default = TRUE)
Specific date ("YYYY-MM-DD") to yc_get single curve
yc_get
indexreport_get returns index data for the given date and indexreport_mget returns index data for a given range of dates.
indexreport_get
indexreport_mget
if (FALSE) { df_ir <- indexreport_mget(Sys.Date() - 5, Sys.Date()) head(df_ir) } if (FALSE) { df_ir <- indexreport_get(Sys.Date()) head(df_ir) }
Run the code above in your browser using DataLab