Usage
stockSymbols(exchange = c("AMEX", "NASDAQ", "NYSE"), sort.by = c("Exchange",
"Symbol"), quiet = FALSE)getYahooData(symbol, start, end, freq = "daily", type = "price",
adjust = TRUE, quiet = FALSE)
Arguments
exchange
Character vector of exchange names on which desired
instrument symbols are traded.
sort.by
Character vector of columns by which returned data will be
sorted. Must be one or more of "Name"
, "Symbol"
,
"Market.Cap"
, or "Exchange"
.
quiet
Logical; if TRUE
, status messages will be printed to the
console.
symbol
Yahoo! Finance instrument symbol.
start
Numeric; first date of desired data, in YYYYMMDD format.
Default is first date of series.
end
Numeric; last date of desired data, in YYYYMMDD format. Default
is last date of series.
freq
Desired data frequency. One of "daily"
, "weekly"
,
"monthly"
.
type
Type of data to return. One of "price"
, or
"split"
. type="split"
will return both split and dividend
data.
adjust
Logical; if TRUE
, the Open, High, Low, and Close prices
will be adjusted for dividends and splits, and Volume will be adjusted for
dividends.