Unable to return historical data for given security.

조회 수: 1 (최근 30일)
Chris
Chris 2011년 8월 18일
I am working on a project for class and am getting this message when trying to pull data from Yahoo. When I run a script that just pulls the data it works, but when I try pulling the data of two symbols I get this error
Is there a way to have matlab ignore this error and continue the script if it can't find the data. Right now it halts running with this red error message
  댓글 수: 1
Oleg Komarov
Oleg Komarov 2011년 8월 18일
We need code and error message: http://www.mathworks.com/matlabcentral/answers/6200-tutorial-how-to-ask-a-question-on-answers-and-get-a-fast-answer
Also, please format them: http://www.mathworks.com/matlabcentral/answers/13205-tutorial-how-to-format-your-question-with-markup#answer_18099

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

채택된 답변

Oleg Komarov
Oleg Komarov 2011년 8월 18일
The note on yahoo.fetch says: "Retrieving historical data for multiple securities at one time is not supported for Yahoo. You can fetch historical data for only a single security at a time."
You should build a loop assigning the result to a cell array or structure.

추가 답변 (1개)

Chris
Chris 2011년 8월 24일
I have the Yahoo fetch in a loop but I still get this. It seems to only happen after hours perhaps the system is down or you can only grab during market hours?
  댓글 수: 1
Oleg Komarov
Oleg Komarov 2011년 8월 24일
The connection could be lost during the retrieval or you could be asking for a stock which exist but not a that point in time.

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

카테고리

Help CenterFile 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!

Translated by