如何从雅虎财经获得完整的股票代码清单?
我已经无休止地搜索了通过http://finance.yahoo.com获取所有雅虎股票代码的完整(并且每日更新)列表的方法。
雅虎拥有全球许多交易所的股票,期货等信息,我想要通过它们获得的所有股票代码的综合列表。我已经尝试过YQL,但是他们有一个“where symbol =(或in)”子句限制,所以我不能从符号中选择*。
所以基本上,一次获取单个符号或几个符号的详细信息很容易,但我似乎无法找到如何获得所有可用代码的列表。
有人可以帮忙吗?
没有找到相关结果
已邀请:
9 个回复
末钉蹈泰唬
它在约4分钟内给了我一份约75,000份证券的清单。
玩翁文醚碱
疮痪徘弦漏
鞘垒飘
倾坞髓
,你可以使用 qmao包这样做。 (见这篇文章) 如果您在安装时遇到问题。
这不包括任何ETF,期货,期权,债券,外汇或共同基金。 你可以在这里从雅虎获得ETF列表:http://finance.yahoo.com/etf/browser/mkt 这只显示前20个。您需要在“显示全部”链接的URL 该页面的底部。你可以抓页面找出多少 有ETF,然后构建一个URL。
现在,您可以从该页面上的表中提取代码
这是我能提供的所有帮助,但你可以做类似的事情 通过抓取这些页面获得他们提供的一些期货 (这些只是美国期货) http://finance.yahoo.com/indices?e=futures, http://finance.yahoo.com/futures?t=energy, http://finance.yahoo.com/futures?t=metals, http://finance.yahoo.com/futures?t=grains, http://finance.yahoo.com/futures?t=livestock, http://finance.yahoo.com/futures?t=softs, http://finance.yahoo.com/futures?t=indices, 而且,对于美国和非美国指数,你可以刮掉这些页面 http://finance.yahoo.com/intlindices?e=americas, http://finance.yahoo.com/intlindices?e=asia, http://finance.yahoo.com/intlindices?e=europe, http://finance.yahoo.com/intlindices?e=africa, http://finance.yahoo.com/indices?e=dow_jones, http://finance.yahoo.com/indices?e=new_york, http://finance.yahoo.com/indices?e=nasdaq, http://finance.yahoo.com/indices?e=sp, http://finance.yahoo.com/indices?e=other, http://finance.yahoo.com/indices?e=treasury, http://finance.yahoo.com/indices?e=commodities
掸牛浓疗
枫湃揩乾纲
蓄荣糖些
弦砂牧扁
使用行业ID提取所有comanies及其符号:
连接hellper:
很抱歉,这是我的项目的第一个测试版本,我需要它非常快。我的应用程序有一些助手变量和其他东西,对不起。但我有疑问:你有很多符号吗?我有5500。