image thumbnail

Historical Stock Data Download (alternate Method)

version 6.0.0.1 (4.1 KB) by Captain Awesome
Retrieves historical stock data from Yahoo Finance by parsing html pages instead of .csv download.

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 (2021). 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!