Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How does Google Finance update stock prices?

Tags:

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

like image 826
KingKongFrog Avatar asked Oct 31 '25 00:10

KingKongFrog


1 Answers

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:

https://www.google.com/finance/qs/channel?VER=8&RID=rpc&SID=628A5B4C83473350&CI=0&AID=0&TYPE=xmlhttp&zx=dcad1i8o61q8&t=1

Connections

like image 102
Tchoupi Avatar answered Nov 04 '25 20:11

Tchoupi



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!