Skip to content
Prev 4094 / 15274 Next

getSymbols in quantmod

to specify start and end dates:

getSymbols("AAPL",src="yahoo", from='2008-03-01', to='2008-03-10')

or
getSymbols("AAPL",src="yahoo", from='2008-03-01', to=Sys.Date())

yahoo dow:

getSymbols("^DJI", src="yahoo", from='2008-01-01', to=Sys.Date())

As for the other parts: commodities/dividends, etc... I haven't used the 
yhoo or goog feeds for those, perhaps someone can shed some light on 
those particular functions..

-cj
babel at centrum.sk wrote: