Unable to return historical data for given security.
古いコメントを表示
c = yahoo;
fetch(c,'IBM','Close','01/01/2012','06/30/2012');
Error using yahoo/fetch (line 387) Unable to return historical data for given security.
回答 (2 件)
Rodrigo de Francisco
2017 年 5 月 19 日
Hello,
I've already applied that patch and have the following behaviour:
d = fetch(c,'IBM','2/1/2000','2/20/2000')
Error using yahoo/fetch (line 387)
Unable to return historical data for given security.
d = fetch(c,'IBM','1/1/2000','1/10/2000')
Error using yahoo/fetch (line 387)
Unable to return historical data for given security.
d = fetch(c,'IBM','1/1/2017','2/2/2017')
Error using yahoo/fetch (line 387)
Unable to return historical data for given security.
Thank you
Cam Salzberger
2017 年 5 月 17 日
0 投票
Hello Adhish,
I'd suggest trying the workaround listed in this bug report. Yahoo recently changed their API, and a changed had to be made to MATLAB's functions to match it.
-Cam
7 件のコメント
Adhish Aggarwal
2017 年 5 月 17 日
Cam Salzberger
2017 年 5 月 17 日
Which release of MATLAB are you using? The patch should resolve this issue for R2012b through R2017a, based on the name. Though there are other reasons that you may get this error...
Vladimir spirito
2017 年 5 月 17 日
not working
Alec Jeffery
2017 年 5 月 20 日
Hello, I have the same error and the work around isn't working currently. The work around worked for a period of time, but it seems that the yahoo API is still in flux... waa waa
Chulong chen
2017 年 5 月 21 日
編集済み: Chulong chen
2017 年 5 月 21 日
agree with @Alec Jeffery. I applied the patch about a week ago and worked for 3 days. seems yahoo changed the API again after the release of the patch
Cam Salzberger
2017 年 5 月 22 日
Hey guys,
It looks like there has been a change to Yahoo's API again. At least based on the suggestions posts I have found.
-Cam
Cam Salzberger
2017 年 6 月 20 日
編集済み: Cam Salzberger
2017 年 6 月 20 日
It looks like due to the API changes, Yahoo will no longer be supported by the Datafeed Toolbox. The bug report I linked previously has now been updated to reflect this.
カテゴリ
ヘルプ センター および File Exchange で Call Web Services from MATLAB Using HTTP についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!