Solved

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

Posted on 2013-06-14
1
1,387 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
1 Comment
 
LVL 15

Accepted Solution

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

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Application launch issue with Apache Tomcat 5 19
IO.FileSystemWatcher dies when used in Powershell 1 44
Allow space in this pattern 2 46
Syntax error 9 45
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.
Concerto provides fully managed cloud services and the expertise to provide an easy and reliable route to the cloud. Our best-in-class solutions help you address the toughest IT challenges, find new efficiencies and deliver the best application expe…

914 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now