Description Usage Arguments Value Examples
Get prices and returns for a set of symbols
1 | getPricesAndReturns(symbols, startDate = "1970-01-01", endDate = Sys.Date())
|
symbols |
List of symbols |
startDate |
Start date, default is 1970-01-01 |
endDate |
End date, default is today's date Sys.Date() |
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.
1 | getPricesAndReturns(c("FNDB","IVV","SPY"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.