Solved

C# - Google Finanace API, realtime data, efficiency of a muti-quote query

Posted on 2013-06-14
1
1,589 Views
Last Modified: 2013-06-20
Hi Ladies n' Gents,

Given the availability of real-time stock quotes from GOOGLE (not yahoo), (reference http://www.google.com/googlefinance/disclaimer/ ) and the ability to query current live stock quote via...

Single symbol Quote:
http://finance.google.com/finance/info?client=ig&q=NASDAQ:GOOG

More than one symbols quote:
http://finance.google.com/finance/info?client=ig&q=NASDAQ:GOOG,NASDAQ:YHOO

and the resulting data which looks like this...
// [ { "id": "694653" ,"t" : "GOOG" ,"e" : "NASDAQ" ,"l" : "877.89" ,"l_cur" : "877.89" ,"s": "0" ,"ltt":"11:27AM

EDT" ,"lt" : "Jun 12, 11:27AM EDT" ,"c" : "-1.92" ,"cp" : "-0.22" ,"ccol" : "chr" } ,{ "id": "658890" ,"t" :

"YHOO" ,"e" : "NASDAQ" ,"l" : "26.30" ,"l_cur" : "26.30" ,"s": "0" ,"ltt":"11:28AM EDT" ,"lt" : "Jun 12, 11:28AM

EDT" ,"c" : "-0.10" ,"cp" : "-0.38" ,"ccol" : "chr" } ]

Question, if the query was for hundreds or thousands of stock symbol prices at once, what is the fastest way to

get the symbol's quote from the page???  Does it have to be reading each line one by one looking for the "t" ->

ticker and the last price "l_cur" ???  or is there a speed and efficiency trick that can be used???

Also anyone know how to get the official time stamp of the last price?  Meaning not the computers time or the

server query time but the exchange time stamp for the stick price to either the second or mili-second.

FYI:  Just trying to update prices as quickly as possible in my code.

Let me share my gracious thank you in advance.

Best - Dyno
0
Comment
Question by:Dynotoe
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 15

Accepted Solution

by:
Minh Võ Công earned 500 total points
ID: 39253284
0

Featured Post

Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you don't have the right permissions set for your WordPress location in IIS, you won't be able to perform automatic updates. Here's how to fix the problem.
Lease-to-own eliminates the expenditure of hardware replacement and allows you to pay off the server over time. Usually, this is much cheaper than leasing servers. Think of lease-to-own as credit without interest.
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…

628 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question