Fetch and store data from Yahoo finance
5 次查看(过去 30 天)
显示 更早的评论
Hello!
I have created script to download data form yahoo finance for several stocks.
function fetchDataFromYahoo
ticker={'ABFS','DCG.L','TCB','NE','FGP','IMO','CAJ','CAG','GMCR','HSH','HAIN','SIM'};
C=yahoo;
for i=1:size(ticker)
Price.(ticker{i})=fetch(C,ticker(i),'Adj Close','Jan 1 00','Apr 19 13','d');
temp=Price.(ticker{i});
% would like to store in this variable fetched data
ClosePrice(:,i)=temp(:,2);
end
fetchDataFromYahoo=0;
end
However, when I run this script, I don't see the obtained quotes in the variabel ClosePrice. Would you be so kind to suggest me how can I store fetched data in the variable ClosePrice?
0 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Datafeed Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!