3 messages in com.googlegroups.google-finance-apis[Google Finance APIs] Re: Creating sy...
FromSent OnAttachments
BobbyMay 1, 2009 5:08 pm 
David LiuJun 14, 2009 2:22 pm 
David LiuJun 14, 2009 2:41 pm 
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: Creating symbolsActions...
From:David Liu (davi@gmail.com)
Date:Jun 14, 2009 2:22:30 pm
List:com.googlegroups.google-finance-apis

I got the same error.

On May 2, 1:08 am, Bobby <stoc@gmail.com> wrote:

Hi All,

I hope this is this is the correct place to post my question if not please transfer it to the correct place.

I am new to using the google finance api. I've been able to get most stuff working but when trying to add a position to my portfolios, I continuously get the following exception:

com.google.gdata.util.InvalidEntryException: Bad Request Invalid Transaction Type

My code looks like this:

String feedURL = "http://finance.google.com/finance/feeds/default/ portfolios/8/positions/NYSE:IMA/transactions" TransactionEntry entry = FinanceUtilities.makeTransactionEntry("BUY", "2009-01-13", "1000.0", "141.14", "200.0", "USD", "this is transaction4"); fs.insert(new URL(feedURL), entry);     // fs is the FinanceService

The error occurs at the insert.

I should also add that NYSE:IMA does not exist in that portfolio. I have seen things online that say i can add a symbol to the portfolio using this technique, however, i'm not positive so please correct me if i'm wrong (if so, is there a way to add a symbol).

Please help me in this regard so that i can rectify the error.

Thanks in Advance, Bobby