Info
此问题已关闭。 请重新打开它进行编辑或回答。
Problem getting data from yahoo using fetch
1 次查看(过去 30 天)
显示 更早的评论
When i run the following line: DataSet = fetch(c,'SPY','1900-01-04', '2099-11-13');
I get the error message: Error using yahoo/fetch (line 387) Unable to return historical data for given security.
It use to work but not any more, so what can i do to getting things to work again?
1 个评论
Shubham Srivastava
2017-5-22
编辑:Shubham Srivastava
2017-5-22
It seems that the Yahoo Finance API feature has been discontinued by Yahoo and they won't be reintroducing it again.
More information on the same can be gathered from Yahoo Help Community.
Regards,
Shubham
回答(1 个)
Christopher Reeves
2017-5-24
Seems that yahoo finance has changed its API You can use this code to get the OHLC daily bar data from google finance instead
Cheers!
-Chris Reeves (Bayes Quant)
0 个评论
此问题已关闭。
另请参阅
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!