ticker_dates {stocks} | R Documentation |
Typically useful for determining a time period over which to compare several funds.
ticker_dates(tickers, from = "1950-01-01", to = Sys.Date())
tickers |
Character vector with ticker symbols that Yahoo! Finance recognizes. |
from |
Date or character string (e.g. |
to |
Date or character string (e.g. |
Data frame with ticker symbol, start date, end date, and number of trading days for each ticker.
Ryan, J.A. and Ulrich, J.M. (2017) quantmod: Quantitative Financial Modelling Framework. R package version 0.4-12, https://CRAN.R-project.org/package=quantmod.
## Not run:
# See what dates are available for Apple and Amazon
ticker_dates(c("AAPL", "AMZN"))
## End(Not run)