tags:

views:

88

answers:

0

When i am trying to buy shares using google finance api i am getting an exception. Please help

run: Enter user ID: **@gmail.com

Enter user password: **

Enter transaction type: Buy

Enter transaction date (yyyy-mm-dd): 2010-03-10

Enter number of shares (optional, e.g. 100.0):

Enter price (optional, e.g. 141.14): 12.0

Enter commission (optional, e.g. 20.0): 23.0

Enter currency (optional, e.g. USD, EUR, JPY): USD

Enter any notes: Notes

Enter portfolio ID: 1

Enter ticker (EXCHANGE:SYMBOL): NASDAQ:INFY

Inserting Entry at location: http://finance.google.com/finance/feeds/default/portfolios/1/positions/NASDAQ:INFY/transactions

The server had a problem handling your request. com.google.gdata.util.ServiceForbiddenException: Forbidden

Exception message unavailable

    at com.google.gdata.client.http.HttpGDataRequest.handleErrorResponse(HttpGDataRequest.java:561)
    at com.google.gdata.client.http.GoogleGDataRequest.handleErrorResponse(GoogleGDataRequest.java:563)
    at com.google.gdata.client.http.HttpGDataRequest.checkResponse(HttpGDataRequest.java:536)
    at com.google.gdata.client.http.HttpGDataRequest.execute(HttpGDataRequest.java:515)
    at com.google.gdata.client.http.GoogleGDataRequest.execute(GoogleGDataRequest.java:535)
    at com.google.gdata.client.Service.insert(Service.java:1347)
    at com.google.gdata.client.GoogleService.insert(GoogleService.java:599)
    at financetester.Main.insertTransactionEntry(Main.java:169)
    at financetester.Main.main(Main.java:81)

BUILD SUCCESSFUL (total time: 1 minute 4 seconds)