Historical Stock Data Download (alternate Method)

Retrieves historical stock data from Yahoo Finance by parsing html pages instead of .csv download.
3.3K Downloads
Updated 19 Mar 2020

View License

Editor's Note: This file was selected as MATLAB Central Pick of the Week

This is an updated function to retrieve historical data from Yahoo Finance.
Apparently they changed things around May 2017 and previous versions of these types of functions stopped working. This is a completely new version that should now work (as of November 2017).

Cite As

Captain Awesome (2024). Historical Stock Data Download (alternate Method) (https://www.mathworks.com/matlabcentral/fileexchange/37502-historical-stock-data-download-alternate-method), MATLAB Central File Exchange. Retrieved .

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

Inspired by: hist_stock_data(start_date, end_date, varargin)

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
6.0.0.1

fixed typo

6.0.0.0

Cleaned it up and fixed a few bugs noted by people in the comments.

3.0.0.0

Updated to handle new format of data from yahoo.

1.0.0.0