Solved

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

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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

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

Introduction This article explores the design of a cache system that can improve the performance of a web site or web application.  The assumption is that the web site has many more “read” operations than “write” operations (this is commonly the ca…
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

821 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