getPricesAndReturns: Get prices and returns for a set of symbols

Description Usage Arguments Value Examples

View source: R/fa_utilities.R

Description

Get prices and returns for a set of symbols

Usage

1
getPricesAndReturns(symbols, startDate = "1970-01-01", endDate = Sys.Date())

Arguments

symbols

List of symbols

startDate

Start date, default is 1970-01-01

endDate

End date, default is today's date Sys.Date()

Value

List of 3 items. Prices is an xts object with one column per symbol. returns.daily is a list with one item per symbol containing daily returns. returns.monthly contains the monthly returns.

Examples

1
getPricesAndReturns(c("FNDB","IVV","SPY"))

rexmacey/fundAnalysis documentation built on Dec. 2, 2019, 5:50 p.m.