Download historical financial data from Yahoo!

版本 1.3.0.0 (4.2 KB) 作者: Aitor Roca
Retrieve historical stock data from Yahoo! Finance
1.5K 次下载
更新时间 2018/1/28

查看许可证

Retrieves historical stock data for the ticker symbols in Asset cell array (ticker symbol and yahoo stock exchange symbol), between the dates specified by Date1 (beginning) and Date2 (end) in the Matlab datenums format. The program returns the stock data in xls at '/Data' folder, giving the Date, Open, High, Low, Close, Volume, and Adjusted Close price adjusted for dividends and splits.

For PERSONAL, INFORMATIONAL use ONLY.

-------------------------------------------------------------------------------------------------------------------------------------

Example:

Asset = {
'AAPL','';
'ANA','MC';
'BKIA','MC';
'CDR','MC';
'ENG','MC';
'GLD','';
'IAG','MC';
'LYXIB','MC';
'MT','AS';
'OHL','MC';
'ITX','MC';
'SAN','MC';
'TEF','MC'
};
Asset = table(Asset(:,1), Asset(:,2), 'VariableNames', {'Symbol', 'SE'});
Date1 = '26-Jan-2017';
Date2 = '27-Jan-2018';
interval = '1d';

downloadStocksData(Asset,Date1,Date2,interval)

引用格式

Aitor Roca (2024). Download historical financial data from Yahoo! (https://www.mathworks.com/matlabcentral/fileexchange/64218-download-historical-financial-data-from-yahoo), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2017a
兼容任何版本
平台兼容性
Windows macOS Linux
致谢

启发作品: Yahoo! Finance Data Loader

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.3.0.0

Bugs fixed.

1.2.0.0

Now creates 'Data' folder and then add to the path

1.1.0.0

Now checks if data is numeric.

1.0.0.0