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