Finding security name from yahoo finance using matlab

老子叫甜甜 提交于 2019-12-24 15:23:14

问题


If I type:

 txt=urlread('http://download.finance.yahoo.com/d/quotes.csv', 'get',{'s', 'AAPL', 'f', 'sl1d1t1c1ohgv', '', '.csv'} )

in matlab, I get the output:

"AAPL",430.195,"7/16/2013","4:00pm",+2.755,426.43,430.71,424.17,7616916

However I want to get the name of the security, in addition to the ticker symbol. I believe 'n' is the way to signify this but I haven't been able to get it to work. Is this possible?


回答1:


How about just adding 'n' to the 'f' parameter's value?:

txt=urlread('http://download.finance.yahoo.com/d/quotes.csv',...
            'get',{'s', 'AAPL', 'f', 'nsl1d1t1c1ohgv', 'e', '.csv'} )

which returns

txt = 

    "Apple Inc.","AAPL",430.195,"7/16/2013","4:00pm",+2.755,426.43,430.71,424.17,7624941

I found this page helpful. The list of all property names and their descriptions is here.



来源:https://stackoverflow.com/questions/17686427/finding-security-name-from-yahoo-finance-using-matlab

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!