Skip to contents

Usage

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
)

Arguments

first_date

First date ("YYYY-MM-DD") to yc_mget multiple curves

last_date

Last date ("YYYY-MM-DD") to yc_mget multiple curves

by

Number of days in between fetched dates (default = 1) in yc_mget

cache_folder

Location of cache folder (default = cachedir())

do_cache

Whether to use cache or not (default = TRUE)

refdate

Specific date ("YYYY-MM-DD") to yc_get single curve

Value

A dataframe with index data (OHLC, average and daily oscillation)

Details

indexreport_get returns index data for the given date and indexreport_mget returns index data for a given range of dates.

Examples

if (FALSE) { # \dontrun{
df_ir <- indexreport_mget(Sys.Date() - 5, Sys.Date())
head(df_ir)
} # }
if (FALSE) { # \dontrun{
df_ir <- indexreport_get(Sys.Date())
head(df_ir)
} # }