There's a whole API for managing portfolios. Here is the Developer's Guide.
There's a whole API for managing portfolios. Here is the Developer's Guide. Getting stock quotes is a little harder.
I found one article where someone got stock quotes using Google Spreadsheets. Here is another example of that. You can also use the gadgets but I guess that's not what you're after.
The API you mention is interesting but doesn't seem to be documented (as far as I've been able to find anyway). Here is some information on historical prices, just for reference sake.
1 There is an undocumented API from google you can use to get stock info much easier as it's REST based and doesn't require authentication. Here is a C# example jarloo.com/google-stock-api – Kelly Oct 6 '11 at 15:28.
I found this site helpful. benjisimon.blogspot.com/2009/01/truly-si... It links to an API yahoo seems to offer that is very simple and useful. For instance: finance.yahoo.com/d/quotes.csv?s=GOOG+AA... Full details here: gummy-stuff.org/Yahoo-data.htm.
You can parse the JSON response directly from google ajax call. For example the below url gives live quotes for Google on NASDAQ finance.google.com/finance/info?client=i... Check google-finance-get-stock-quote-realtime for the complete code in python.
The Finance API is a bit heavy since you need to create portfolio's. If you want a quote for any random symbol your users enter I would suggest using the undocumented Google Stock API.
Perhaps of interest, the Google Finance API documentaton includes a section detailing how to access different parameters via JavaScript. I suppose the JavaScript API might be a wrapper to the JSON request you mention above... perhaps you could check which HTTP requests are being sent.
Here is an example that you can use. Havent got Google Finance yet, but Here is the Yahoo Example. You will need the HTMLAgilityPack , Which is awesome.
Happy Symbol Hunting. Call the procedure by using YahooStockRequest(string Symbols); Where Symbols = a comma-delimited string of symbols, or just one symbol public string YahooStockRequest(string Symbols,bool UseYahoo=true) { { string StockQuoteUrl = string. Empty; try { // Use Yahoo finance service to download stock data from Yahoo if (UseYahoo) { string YahooSymbolString = Symbols.
Replace(",","+"); StockQuoteUrl = @"http://finance.yahoo.com/q?s=" + YahooSymbolString + "&ql=1"; } else { //Going to Put Google Finance here when I Figure it out. } // Initialize a new WebRequest. HttpWebRequest webreq = (HttpWebRequest)WebRequest.
Create(StockQuoteUrl); // Get the response from the Internet resource. HttpWebResponse webresp = (HttpWebResponse)webreq.GetResponse(); // Read the body of the response from the server. HtmlAgilityPack.
HtmlDocument doc = new HtmlAgilityPack.HtmlDocument(); string pageSource; using (StreamReader sr = new StreamReader(webresp. GetResponseStream())) { pageSource = sr.ReadToEnd(); } doc. LoadHtml(pageSource.ToString()); if (UseYahoo) { string Results=string.
Empty; //loop through each Symbol that you provided with a "," delimiter foreach (string SplitSymbol in Symbols. Split(new char { ',' })) { Results+=SplitSymbol + " : " + doc. GetElementbyId("yfs_l10_" + SplitSymbol).
InnerText + Environment. NewLine; } return (Results); } else { return (doc. GetElementbyId("ref_14135_l").
InnerText); } } catch (WebException Webex) { return("SYSTEM ERROR DOWNLOADING SYMBOL: " + Webex.ToString()); } } }.
Urls of the form: google.com/ig/api?stock=GOOG where you replace GOOG with the ticker symbol of your choice. It returns a tidy xml doc that you can parse pretty easily, including charts and such. It's not officially supported, but it works!
jarloo.com/tutorials/google-stock-api/ Warning: Possible malware.
You can access Google stock quotes using Yahoo's YQL service. Here is a sample: link The service can return either XML or JSON data.
Building upon the shoulders of giants...here's a one-liner I wrote to zap all of Google's current stock data into local Bash shell variables: stock=$1 # Fetch from Google Finance API, put into local variables eval $(curl -s "google.com/ig/api?stock=$stock&output=cs... 's//; /g; s/ etc.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.