get.ohlc.yahoo: Download stock prices from Yahoo Finance (open, high, low,...

Description Usage Arguments See Also Examples

Description

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

Usage

1
get.ohlc.yahoo(symbol, start = "firstDay", end = "today", freq = "d")

Arguments

symbol

symbol 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.ohlcs.yahoo

get.ohlc.google

Examples

1
2
3
# get.ohlc.yahoo(symbol="AAPL")
# get.ohlc.yahoo(symbol="AAPL",start="2013-08-01",freq="d")
# get.ohlc.yahoo(symbol="AAPL",start="2013-07-01",end="2013-08-01",freq="w")

Example output



FinCal documentation built on May 2, 2019, 1:29 p.m.