使用Matlab从Yahoo Finance查找安全名称 [英] Finding security name from yahoo finance using matlab
本文介绍了使用Matlab从Yahoo Finance查找安全名称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如果我输入:
txt=urlread('http://download.finance.yahoo.com/d/quotes.csv', 'get',{'s', 'AAPL', 'f', 'sl1d1t1c1ohgv', '', '.csv'} )
在matlab中,我得到了输出:
in matlab, I get the output:
"AAPL",430.195,"7/16/2013","4:00pm",+2.755,426.43,430.71,424.17,7616916
但是,除了股票代码,我还想获取证券的名称.我相信'n'
是表示这一点的方法,但我无法使其正常工作.这可能吗?
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?
推荐答案
仅将'n'
添加到'f'
参数的值如何?
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'} )
返回
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.
这篇关于使用Matlab从Yahoo Finance查找安全名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文