필터 지우기
필터 지우기

Yahoo Finance stock historical price query

조회 수: 8 (최근 30일)
Mark Kim
Mark Kim 2020년 8월 9일
댓글: Mark Kim 2020년 8월 13일
I've been trying to track my porfolio's progress manually by downloading historical stock prices for the duration that I own them.
It seemed to be easier to download stock price for single stock if I happen to own them for a particular date.
I think I got things to work mostly but when it comes to Netflix stocks, it won't retrieve the data.
For example:
[temp, status] = urlread(['https://query1.finance.yahoo.com/v7/finance/download/GOOG?'...
'period1=1568592000&period2=1568678400&interval=1d&events=history'],...
'post',{'matlabstockdata@yahoo.com', 'historical stocks'},'Timeout',10);
works great but
[temp, status] = urlread(['https://query1.finance.yahoo.com/v7/finance/download/NFLX?'...
'period1=1568592000&period2=1568678400&interval=1d&events=history'],...
'post',{'matlabstockdata@yahoo.com', 'historical stocks'},'Timeout',10);
does not work.
How can I make this work?

답변 (1개)

Rohit Pappu
Rohit Pappu 2020년 8월 13일
As per my understanding of the question, you are unable to fetch the stock historical price for a few companies like Netflix from Yahoo Finance using urlread. This anamolous behaviour has been observed when using yahoo to fetch the data and the proper usage can be found at hist_stock_data(start_date, end_date, varargin)
  댓글 수: 1
Mark Kim
Mark Kim 2020년 8월 13일
The code is from the mentioned function.
When I did the search on that function, I see there are few other posts mentioning the same error.

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

카테고리

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

태그

제품


릴리스

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by