Google财经如何更新股票价格? [英] How does Google Finance update stock prices?

查看:99
本文介绍了Google财经如何更新股票价格?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果您使用Google财经,则会实时查看股价更新.但是,我看不到每个价格变化的ajax请求.它到底如何接收数据?Ajax调用确实经常发生,但并非每次更改价格都发生.

If you use Google Finance, you see the stock price update in real time. However, I do not see ajax requests for each price change. How exactly is it receiving it's data? The ajax calls do happen every so often but not for every price change.

https://www.google.com/finance?q=aapl

推荐答案

图表确实是由Flash提供的,但是股票的价格是HTML格式,并且是实时更新的.

It is true that the graph is supplied by flash, but the price of the stock is in HTML and updated in real time.

通过查看连接,您会注意到其中一个连接保持打开状态.我的猜测是它提供了数据:

By looking at the connections, you'll notice that one of the connection stays open. My guess is that it provides the data:

这篇关于Google财经如何更新股票价格?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆