필터 지우기
필터 지우기

Hello guys, how to fetch only adj close price from Yahoo! Finance.

조회 수: 2 (최근 30일)
Majid Bilandi
Majid Bilandi 2014년 4월 22일
편집: Walter Roberson 2016년 11월 2일
Hello guys, how to fetch only adj close price from Yahoo! Finance.
  댓글 수: 2
Majid Bilandi
Majid Bilandi 2014년 4월 22일
data = fetch(c,{'^GSPTSE','^FCHI','^GDAXI','^N225','^FTSE','^GSPC'},'Adj I applied below code for downloading daily data of a few stock indices, i faced with this error. does it mean that i'm not able to get all of them in one sheet or my code is wrong?
Close','01/01/2000','31/03/2014','d') Warning: Historical data fetch does not support multiple security input. ^GSPTSE data returned. > In yahoo.fetch at 328
Majid Bilandi
Majid Bilandi 2014년 4월 22일
편집: Walter Roberson 2016년 11월 2일
sorry to all, this is the correct code
data = fetch(c,{'^GSPTSE','^FCHI','^GDAXI','^N225','^FTSE','^GSPC'},'Adj
Close','01/01/2000','31/03/2014','d')
Warning: Historical data fetch does not support multiple security input. ^GSPTSE
data returned.
> In yahoo.fetch at 328

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

답변 (1개)

Kawee Numpacharoen
Kawee Numpacharoen 2016년 11월 2일
You can do it using for loop
c = yahoo;
ticker = {'^GSPTSE','^FCHI','^GDAXI','^N225','^FTSE','^GSPC'}
for i = 1:numel(ticker)
data{i} = fetch(c,ticker{i},'Adj Close','01/01/2000','31/03/2014','d')
end

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by