2 messages in com.googlegroups.google-finance-apis[Google Finance APIs] Re: Reading Sto...
FromSent OnAttachments
nikonOct 28, 2008 9:07 pm 
Oscar ClarosOct 31, 2008 8:03 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:[Google Finance APIs] Re: Reading Stock Info from my portfolio with the Google .NET client librariesActions...
From:nikon (whol@gmail.com)
Date:Oct 28, 2008 9:07:05 pm
List:com.googlegroups.google-finance-apis

The below should work after referencing Google.GData.Client...

// Set the credentials this.finance = new Service("finance", "company- software-1.2"); this.finance.setUserCredentials("USERNAME", "PASSWORD");

// Setup the query query = new FeedQuery(); query.Uri = new Uri("http://finance.google.com/finance/ feeds/default/portfolios?returns=true");

// Perform the query feed = this.finance.Query(query); status = true;

// Dump to XML file XmlWriter writer = new XmlTextWriter("Portfolios.xml", Encoding.UTF8); feed.SaveToXml(writer); writer.Close();

On Oct 3, 7:59 pm, "rema@gmail.com" <rema@gmail.com> wrote:

I've download the Google Data Services SDK and I've just set up a portfolio in Google Finance. I've added a couple of stocks that I want to monitor to my portfolio.

Now, I'm interested in reading the entries in my portfolio from a C# application. I'm not sure where to begin. The Finance API docs have all HTML and XML code examples but I'm using the Google class libraries.

Can anyone provide a simple example of how to read data from my financial profile?

Thanks