ticker_dates: Get Yahoo! Finance Start/End Dates for Tickers

Description Usage Arguments Value References Examples

View source: R/ticker_dates.R

Description

Typically useful for determining a time period over which to compare several funds.

Usage

1
ticker_dates(tickers, from = "1950-01-01", to = Sys.Date())

Arguments

tickers

Character vector with ticker symbols that Yahoo! Finance recognizes.

from

Date or character string (e.g. "2015-01-15".

to

Date or character string (e.g. "2016-01-30").

Value

Data frame with ticker symbol, start date, end date, and number of trading days for each ticker.

References

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.

Examples

1
2
3
4
5
## Not run: 
# See what dates are available for Apple and Amazon
ticker_dates(c("AAPL", "AMZN"))

## End(Not run)

vandomed/stocks documentation built on Sept. 2, 2018, 10:10 a.m.