get_monthly_returns: Get Monthly Returns

Description Usage Arguments Value Examples

View source: R/riingo.r

Description

Only returns full months. Dates are last business days of the month.

Usage

1
2
get_monthly_returns(symbols, tiingo_token = Sys.getenv("TIINGO_TOKEN"),
  start_date = NULL, end_date = NULL)

Arguments

symbols

Character vector of symbols

tiingo_token

The token for tiigo API

start_date

Start date

end_date

End date.

Value

Vector of monthly returns.

Examples

1
2
3
get_monthly_returns(symbols="IVV", 
start_date = as.Date("2014-12-31"), 
end_date = as.Date("2018-12-31"))

rexmacey/factorModel documentation built on Oct. 2, 2019, 1:25 a.m.