Solved

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

Posted on 2013-06-14
1
1,361 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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Summary: Persistence is the capability of an application to store the state of objects and recover it when necessary. This article compares the two common types of serialization in aspects of data access, readability, and runtime cost. A ready-to…
Most ColdFusion developers get confused between the CFSet, Duplicate, and Structcopy methods of copying a Structure, especially which one to use when. This Article will explain the differences in the approaches with examples; therefore, after readin…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

744 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

15 Experts available now in Live!

Get 1:1 Help Now