Historical Stock Data Download (alternate Method)

Retrieves historical stock data from Yahoo Finance by parsing html pages instead of .csv download.

You are now following this Submission

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 (2026). Historical Stock Data Download (alternate Method) (https://uk.mathworks.com/matlabcentral/fileexchange/37502-historical-stock-data-download-alternate-method), MATLAB Central File Exchange. Retrieved .

Acknowledgements

Inspired by: hist_stock_data(start_date, end_date, varargin)

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
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