有什么方法可以像谷歌或雅虎一样实时获取股票报价吗?
有谁知道谷歌或雅虎如何获得股票报价,因为纳斯达克或纽约证券交易所不提供任何API?我们真的可以复制他们的做法吗?他们是使用爬行方法本身,还是爬行实际上可以实时获取此类数据?
does anyone know how Google or Yahoo get the stock quotes as NASDAQ or NYSE is not providing any APIs? Can we actually replicate what they do? are they using the crawl method itself or rather is crawling actually possible to get such data realtime?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
在@金融软件公司工作,我可以建议您这些服务是付费的。我不
知道实际数字,但我从未遇到过免费的实时报价。
为了获得这些实时提要,您将获得凭据和信息。连接参数,您将使用这些参数连接到提供商的服务器(通过 FIX 或专有协议)。因此,根本没有“免费”来源,只有付费来源。
反过来,报价提供商正在向最终的信息源——交易所付费。您可以随时联系纽约证券交易所协商获取报价。如果您愿意,请在此处发布协商价格(或者至少是其大小)。
Working @financial software company I can advice you that these services are paid for. I don't
know actual figures, but I never encountered realtime quotes available free of charge.
To get those real-time feeds you are given with credentials & connection parameters which you will use to connect to provider's server (over FIX or propietary protocol). So, there's simply no 'free' source, only paid ones.
Quote providers, in turn, are paying to ultimate source of feeds -- exchanges. You can always contact NYSE to negotiate getting quotes. If you will do, please, post here negotiated price (or, at least, it's magnitude).
查看彭博社和路透社的产品。
顺便说一句,这些东西要花掉手臂和肝脏。
Check bloomberg and reuters products.
By the ways, those things cost an arm and a liver.
这是可以使用正确的雅虎代码进行实时修改的代码。
http://riticstocks.tumblr.com/post/732137771/ perl-stock-quotes-from-yahoo
最后交易(实时)与时间
k1 出价(实时) b3
询问(实时)b2
变动百分比(实时) k2 变动(实时) c6 持仓价值(实时) v7 当日价值变动(实时) w4 持仓收益百分比(实时) g5 持仓收益(实时) g6 当日价值范围(实时) m2 市值(实时) j3 市盈率(实时) r2 盘后变化(实时) c8 订单簿(实时) i5
This is the code which can be modified with the correct Yahoo code for realtime.
http://criticalstocks.tumblr.com/post/732137771/perl-stock-quotes-from-yahoo
Last Trade (Real-time) with Time
k1 Bid (Real-time) b3
Ask (Real-time) b2
Change Percent (Real-time) k2 Change (Real-time) c6 Holdings Value (Real-time) v7 Day's Value Change (Real-time) w4 Holdings Gain Pct (Real-time) g5 Holdings Gain (Real-time) g6 Day's Range (Real-time) m2 Market Cap (Real-time) j3 P/E (Real-time) r2 After Hours Change (Real-time) c8 Order Book (Real-time) i5
Google 和 Yahoo 提供 API 来获取报价,但有 20 分钟的延迟。据我所知,如果你想要实时,你几乎需要付费。
至于延迟的,我发现Google的API更容易使用,但雅虎也提供国际索引。
Both Google and Yahoo offer an API to get quotes, but they have a 20 minute delay. If you want real time, you pretty much need to pay, as far as I know.
As for the delayed ones, I find Google's API easier to use, but Yahoo provides also international indexes.