hist_stock_data(sta​rt_date, end_date, varargin)

버전 1.7.0.0 (3.7 KB) 작성자: Josiah Renfree
Used to retrieve historical stock data for a user-specified date range
다운로드 수: 25.7K
업데이트 날짜: 2021/3/15

라이선스 보기

This program uses the Yahoo! Finance website to download and sort historical stock prices or dividend data for a user-specified time period. The user can either supply the program with individual ticker symbols or with a text file containing a list of ticker symbols. The program returns a structure array that holds information on the date and either historical price or dividend data. The user must specify the date range for the desired information, and has the option of specifying a sample frequency of daily, weekly, or monthly. Refer to the help section in the m-file for data formats and options.

인용 양식

Josiah Renfree (2024). hist_stock_data(start_date, end_date, varargin) (https://www.mathworks.com/matlabcentral/fileexchange/18458-hist_stock_data-start_date-end_date-varargin), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2019a
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Price and Analyze Financial Instruments에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!
버전 게시됨 릴리스 정보
1.7.0.0

Fixes error resulting from update to Yahoo Finance service

1.6.0.0

- Volume and Adjusted Close values were swapped
- Now allows for passing ticker symbols into function as a cell array of ticker symbol strings
- Date inputs can now be expressed as Matlab datenums

1.5.0.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.0

Now allows for downloading of historical dividend data

1.3.0.0

Fixed error obtaining data from Yahoo Finance. Yahoo changed their service which now requires an account to access the data.

1.2.0.0

Change url for stock data to use https instead of http
Updated program description to notify users that it currently doesn't work

1.1.0.0

Minor updates:
1. Changed textread comand to use textscan, as textread may eventually be removed.
2. Changed how results are put into the data structure by using the deal command.

1.0.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.