Historical Stock Data Download (alternate Method)

Retrieves historical stock data from Yahoo Finance by parsing html pages instead of .csv download.
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

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

fixed typo

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

Updated to handle new format of data from yahoo.