Learn R Programming

FinCal (version 0.6.3)

get.ohlcs.yahoo: Batch download stock prices from Yahoo Finance (open, high, low, close, volume, adjusted)

Description

Batch download stock prices from Yahoo Finance (open, high, low, close, volume, adjusted)

Usage

get.ohlcs.yahoo(symbols, start = "firstDay", end = "today", freq = "d")

Arguments

symbols
symbols of stock, e.g. AAPL, GOOG, SPX
start
start date, e.g., 2013-07-31
end
end date, e.g., 2013-08-06
freq
time interval, e.g., d:daily, w:weekly, m:monthly

See Also

get.ohlc.yahoo

get.ohlcs.google

Examples

Run this code
# get.ohlcs.yahoo(symbols=c("AAPL","GOOG","SPY"),freq="d")
# get.ohlcs.yahoo(symbols=c("AAPL","GOOG","SPY"),start="2013-01-01",freq="m")

Run the code above in your browser using DataLab