Yahoo! Finance Historical Data

Yahoo! Finance Historical Data

This provider is obsolete. Use Yahoo! Finance Historical CSV instead.

Usage

Excel formula:

=RTD("gartle.rtd",,"YahooFinanceHistoricalData","<Ticker>",[<date>],"<Data Field>")

where <date> is a Microsoft Excel date value or a string value as "yyyy-mm-dd".
If <date> is empty or equal to 0 then the last trade date is used by default. It is useful to monitor the last trade date data.

Example:

=RTD("gartle.rtd",,"YahooFinanceHistoricalData","YHOO","2014-12-31","Close")
=RTD("gartle.rtd",,"YahooFinanceHistoricalData","YHOO",,"Close")

Use https://finance.yahoo.com/ to find tickers.

Important Notes

Do not request the Yahoo! website frequently. Otherwise, your IP can be banned by the Yahoo! website.

Historical data for one ticker symbol are downloaded by one request to a web service. This feature significantly reduces the amount of requests to the Yahoo! website.

The amount of data depends on the entire data period that is calculated for all stocks in opened workbooks.

Data Fields and Excel Formulas

Excel ColumnExcel Formula
Symbol 
Date
Open=RTD("gartle.rtd",,"YahooFinanceHistoricalData",[Symbol],[Date],"Open")
High=RTD("gartle.rtd",,"YahooFinanceHistoricalData",[Symbol],[Date],"High")
Low=RTD("gartle.rtd",,"YahooFinanceHistoricalData",[Symbol],[Date],"Low")
Close=RTD("gartle.rtd",,"YahooFinanceHistoricalData",[Symbol],[Date],"Close")
Change=RTD("gartle.rtd",,"YahooFinanceHistoricalData",[Symbol],[Date],"Change")
ChangeInPercent=RTD("gartle.rtd",,"YahooFinanceHistoricalData",[Symbol],[Date],"ChangeInPercent")
ChangePercent=RTD("gartle.rtd",,"YahooFinanceHistoricalData",[Symbol],[Date],"ChangePercent")
PercentChange=RTD("gartle.rtd",,"YahooFinanceHistoricalData",[Symbol],[Date],"PercentChange")
AdjClose=RTD("gartle.rtd",,"YahooFinanceHistoricalData",[Symbol],[Date],"AdjClose")
AdjChange=RTD("gartle.rtd",,"YahooFinanceHistoricalData",[Symbol],[Date],"AdjChange")
AdjChangeInPercent=RTD("gartle.rtd",,"YahooFinanceHistoricalData",[Symbol],[Date],"AdjChangeInPercent")
AdjChangePercent=RTD("gartle.rtd",,"YahooFinanceHistoricalData",[Symbol],[Date],"AdjChangePercent")
AdjPercentChange=RTD("gartle.rtd",,"YahooFinanceHistoricalData",[Symbol],[Date],"AdjPercentChange")
Volume=RTD("gartle.rtd",,"YahooFinanceHistoricalData",[Symbol],[Date],"Volume")
PrevDate=RTD("gartle.rtd",,"YahooFinanceHistoricalData",[Symbol],[Date],"PrevDate")
PrevOpen=RTD("gartle.rtd",,"YahooFinanceHistoricalData",[Symbol],[Date],"PrevOpen")
PrevHigh=RTD("gartle.rtd",,"YahooFinanceHistoricalData",[Symbol],[Date],"PrevHigh")
PrevLow=RTD("gartle.rtd",,"YahooFinanceHistoricalData",[Symbol],[Date],"PrevLow")
PrevClose=RTD("gartle.rtd",,"YahooFinanceHistoricalData",[Symbol],[Date],"PrevClose")
PrevAdjClose=RTD("gartle.rtd",,"YahooFinanceHistoricalData",[Symbol],[Date],"PrevAdjClose")
PrevVolume=RTD("gartle.rtd",,"YahooFinanceHistoricalData",[Symbol],[Date],"PrevVolume")
rtd_LastError=RTD("gartle.rtd",,"YahooFinanceHistoricalData",[Symbol],[Date],"rtd_LastError")
rtd_LastMessage=RTD("gartle.rtd",,"YahooFinanceHistoricalData",[Symbol],[Date],"rtd_LastMessage")
rtd_LastUpdate=RTD("gartle.rtd",,"YahooFinanceHistoricalData",[Symbol],[Date],"rtd_LastUpdate")
rtd_LastUpdateDate=RTD("gartle.rtd",,"YahooFinanceHistoricalData",[Symbol],[Date],"rtd_LastUpdateDate")
rtd_LastUpdateTime=RTD("gartle.rtd",,"YahooFinanceHistoricalData",[Symbol],[Date],"rtd_LastUpdateTime")

See Copying formulas about inserting formulas into Excel spreadsheets.

Change, ChangeInPercent, AdjChange, and AdjChangeInPercent calculated by RealTimeToExcel.

Aggregate Functions

Excel ColumnExcel Formula
Symbol 
Day 
Day=RTD("gartle.rtd",,"YahooFinanceHistoricalData",[Symbol],[Day],"Day")
Date=RTD("gartle.rtd",,"YahooFinanceHistoricalData",[Symbol],[Day],"Date")
AverageVolume=RTD("gartle.rtd",,"YahooFinanceHistoricalData",[Symbol],[Day],"AverageVolume")
rtd_LastError=RTD("gartle.rtd",,"YahooFinanceHistoricalData",[Symbol],[Day],"rtd_LastError")
rtd_LastMessage=RTD("gartle.rtd",,"YahooFinanceHistoricalData",[Symbol],[Day],"rtd_LastMessage")
rtd_LastUpdate=RTD("gartle.rtd",,"YahooFinanceHistoricalData",[Symbol],[Day],"rtd_LastUpdate")
rtd_LastUpdateDate=RTD("gartle.rtd",,"YahooFinanceHistoricalData",[Symbol],[Day],"rtd_LastUpdateDate")
rtd_LastUpdateTime=RTD("gartle.rtd",,"YahooFinanceHistoricalData",[Symbol],[Day],"rtd_LastUpdateTime")

If the stock history has no required number of days to calculate aggregates then the average volume is not calculated (= 0), and the Day and Date fields contain the last values of the period.

Trading Days

Excel ColumnExcel Formula
Symbol 
Date=RTD("gartle.rtd",,"YahooFinanceHistoricalData",[Symbol],"TradingDay",[Day])
rtd_LastError=RTD("gartle.rtd",,"YahooFinanceHistoricalData",[Symbol],"TradingDay","rtd_LastError")
rtd_LastMessage=RTD("gartle.rtd",,"YahooFinanceHistoricalData",[Symbol],"TradingDay","rtd_LastMessage")
rtd_LastUpdate=RTD("gartle.rtd",,"YahooFinanceHistoricalData",[Symbol],"TradingDay","rtd_LastUpdate")
rtd_LastUpdateDate=RTD("gartle.rtd",,"YahooFinanceHistoricalData",[Symbol],"TradingDay","rtd_LastUpdateDate")
rtd_LastUpdateTime=RTD("gartle.rtd",,"YahooFinanceHistoricalData",[Symbol],"TradingDay","rtd_LastUpdateTime")

All the trading days are loaded from one file, and the functions work very fast.

You can use the only one stock symbol to get the days for other tickers.

Data Provider Settings

The data provider is configured to loading data every 6 hours when the Excel workbook is open.

See Data provider settings.

ParameterValue
RefreshInterval06:00:00, six hours
NextRequestDelay1000, one second
DataStartTime00:00:00 -05:00
DataEndTime24:00:00 -05:00
LoadEndTime24:00:00 -05:00
LoadOnSaturday1, loading Friday's data once.
LoadOnSunday1, loading Friday's data once.

Data Source

http://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20yahoo.finance.historicaldata