Solved

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

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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

759 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