powered by
Typically useful for determining a time period over which to compare several funds.
ticker_dates(tickers, from = "1950-01-01", to = Sys.Date())
Character vector with ticker symbols that Yahoo! Finance recognizes.
Date or character string (e.g. "2015-01-15".
"2015-01-15"
Date or character string (e.g. "2016-01-30").
"2016-01-30"
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")) # } # NOT RUN { # }
Run the code above in your browser using DataLab