필터 지우기
필터 지우기

Unable to return historical data for given security.

조회 수: 2 (최근 30일)
Adhish Aggarwal
Adhish Aggarwal 2017년 5월 17일
편집: Cam Salzberger 2017년 6월 20일
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
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
Cam Salzberger 2017년 5월 17일
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
Cam Salzberger
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
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.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Financial Data에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by