通过某些数据源检索库存编号
是否有任何数据源、xml 或 api 可以让您检索所有股票(可能仅限于美国)及其当前价格(非实时)。我知道我可以通过谷歌或雅虎获取一只股票的价格,但我想获取所有股票的价格。
而且它必须是免费的。
Is there any data feed, xml or api that will allow you to retrieve all the stocks (maybe limited to USA) and their current prices (not realtime). I know I can hit google or yahoo to get the price of one stock but I would like to get all of them.
and it has to be free.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为没有一项服务可以提供“所有股票”的价格,因为很难定义“所有”。您想收到所有上市股票吗?纽约证券交易所将是 2000+,纳斯达克将是 2000+。
据我所知,最接近的是来自 Yahoo! 的多股票请求,但您需要在查询中提供代码。 (注意 Yahoo! Web Services 限制)
第二种解决方案是使用 Google API,构建具有所需仓位(股票代码)的投资组合并通过它查询数据。虽然听起来更简单,但您必须知道 Google Finance API 是 已弃用(但尚未关闭)。
I don't think there is a service which provides prices for "all the stocks" as it is hard to define "all". Do you want to receive all listed stocks? It would be 2000+ for NYSE and another 2000+ for NASDAQ.
The closest I am aware it mutli-ticker request from Yahoo!, but you need to provide tickers in the query. (Beware of the Yahoo! Web Services limits)
Second solution is to use Google API, build a portfolio with required positions (tickers) and query data through it. Although sounds simpler, you must be aware that Google Finance API is deprecated (but not shut down yet).