hist_stock_data(start_date, end_date, varargin)
Used to retrieve historical stock data for a user-specified date range
You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
Cite As
Josiah Renfree (2026). hist_stock_data(start_date, end_date, varargin) (https://au.mathworks.com/matlabcentral/fileexchange/18458-hist_stock_data-start_date-end_date-varargin), MATLAB Central File Exchange. Retrieved .
Acknowledgements
Inspired: Download Yahoo Finance Stock Data GUI, Historical Stock Data Download (alternate Method)
General Information
- Version 1.7.0 (3.84 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
| Version | Published | Release Notes | Action |
|---|---|---|---|
| 1.7.0 | Fixes error resulting from update to Yahoo Finance service |
||
| 1.6.0 | - Volume and Adjusted Close values were swapped
|
||
| 1.5.0 | Changed date calculations to avoid using the posixtime function, since that is a relatively new function that some people might not have. Instead, it now calculates the posix time using Matlab datenums and converting to seconds. |
||
| 1.4.0 | Now allows for downloading of historical dividend data |
||
| 1.3.0 | Fixed error obtaining data from Yahoo Finance. Yahoo changed their service which now requires an account to access the data. |
||
| 1.2.0 | Updated program description to notify users that it currently doesn't work |
||
| 1.1.0 | Minor updates:
|
||
| 1.0.0 | Some users are experiencing problems with the urlread command, which I believe occurs because the program is accessing the ticker symbols as cell arrays not as strings. Changed command 'tickers(i)' to 'tickers{i}' in urlread command. |