File Exchange

image thumbnail

Google Finance Historical Stock Data Downloader

version 1.4.0.0 (2.45 KB) by Alejandro Arrizabalaga
gathers historical stock information from Google Finance.

6 Downloads

Updated 18 Mar 2018

View Version History

View License

This program gathers the historical stock information from the Google Finance website. The data is gathered in a struct containing the date, open, high, low, close and volumes for the stock. The frequency, start and end dates can be specified by the user.
The format of the output struct can also be specified by the user: standard, matlab financial time series or the format compatible with hist_stock_data.m by Josiah Renfree.

Cite As

Alejandro Arrizabalaga (2020). Google Finance Historical Stock Data Downloader (https://www.mathworks.com/matlabcentral/fileexchange/25433-google-finance-historical-stock-data-downloader), MATLAB Central File Exchange. Retrieved .

Comments and Ratings (10)

Alex Falkenberg

Mehmet Seker

google starts to ban us. we can not retrive any financial data from them. I see this message

"sorry...but your computer or network may be sending automated queries. To protect our users, we can't process your request right now"

Brian Hodges

There is a minor fix for this function, the url needs to be changed
from
http://www.google.com/finance/historical
to
http://finance.google.com/finance/historical

Sushil

This function doesn't work. It used to work, now it seems to be broken.

Harry Smith

Darrell Thomas

Sunil

I had issues using it. I gave following command :
stocks = get_gf_histdata('NASDAQ:GOOG','01-Mar-2015','11-Sep-2015','daily','hist_stock_data');

and I got following error :
Error using get_gf_histdata (line 91)
no valid argument supplied. Type 'help get_gf_histdata' for info.

DAVID Torres

Can you change this line:
startdate=[endstr(1:2) '+' startstr(4:6) ',+' startstr(8:11)];

for this one
enddate=[endstr(1:2) '+' endstr(4:6) ',+' endstr(8:11)];

harsh

Hi, I am really green with Matlab and was wondering how this plugin works. Is there a tutorial anywhere?

Amit K

Works very well when called once or twice. But on third call of this function it scans incomplete data from google. For example -- called this function to gather data for 5 stocks with 5 years. On the third stock it gathers only 3 years worth of data and then halts.
Also, is there a site where I can get list ticker symbols that google uses for its website. I was unable to find ticker symbol for S&P500 index.

Thanks for this great file.

MATLAB Release Compatibility
Created with R2008a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!