Ok, I looked at the documentation and still have no clue.
All I want to do is create a simple stock ticker via Google Finance
using C#. I see what I need to do in JavaScript, but want to do it in
C#.
I looked at the java doc, ok, I get it, but I do not see any Finance
class or subclass equivalents in C#. Does this not exist? Am I not
including the correct references?
If I just want a ticker, (yes I know it is delayed data, I don't
care), why would I need to create a portfolio? It does not seem that I
would need one in JavaScript example to get a stock quote. So, why
can't I do the same in C#? I assume that I need to cast the data
returned into an object, but what object? I tried to use
GData.Data.Service object's Query function and tried casting it to an
AtomFeed, but got a parsing exception.
Here is something simple I wrote
try
{
FeedQuery query = new FeedQuery();
query.Uri = new Uri("http://finance.google.com/finance");
query.Query = "GOOG";
Service s = new Service("Testing123");
AtomFeed feed = s.Query(query);
}
catch (Exception ex)
{
Console.WriteLine(ex.Message);
}