

![]() | Start a set with this search |
![]() | Include this search in one of my sets |
![]() | Exclude this search from one of my sets |
![]() | Permalink to these results Paste this link in email or IM: |
| Atom feed for tracking future search results Paste this URL into your reader: |
2 messages in com.googlegroups.google-finance-apis[Google Finance APIs] Re: Reading Sto...| From | Sent On | Attachments |
|---|---|---|
| nikon | Oct 28, 2008 9:07 pm | |
| Oscar Claros | Oct 31, 2008 8:03 am |

![]() | Permalink for this message Paste this link in email or IM: |
![]() | Permalink for this thread 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 libraries | Actions... |
|---|---|---|
| From: | Oscar Claros (ocla...@gmail.com) | |
| Date: | Oct 31, 2008 8:03:59 am | |
| List: | com.googlegroups.google-finance-apis | |
Hello,
I am using version 1.2.2.0 of the Data API.
I have included Google.GData.Client as a reference. I had included the namespace. I don't see a "finance" class. Do I need to create an System.Object type named "finance"? Or do I need to create a "finance" type? If I need to create a "finance" type, what do I base it on, is there a base class or an interface? If I create a System.Object named "finance", again, how do I parse the data? If it is xml based, again, how do I parse the data; is there a schema? Secondly, why do I need to provide credentials? I am not creating a portfolio, I just want a ticker.
In the FeedQuery, I can set the Uri property to " http://finance.google.com/finance" and the Query property to "GOOG". When I ran the debugger, I see that the that FeedQuery object's Uri is set to " http://finance.google.com/finance?q=GOOG"
If I set a browser to the above string , I get the information for Google. Additionally I do not need a User/Password key-value pair to see the data.
Thank you for responding to my posting,
Oscar
On Tue, Oct 28, 2008 at 11:07 PM, nikon <whol...@gmail.com> wrote:
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
Patrick
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Finance APIs and Tools" group.
To post to this group, send email to goog...@googlegroups.com
To unsubscribe from this group, send email to
google-finance-apis+unsu...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/google-finance-apis?hl=en
-~----------~----~----~----~------~----~------~--~---







