开发者

Trouble with Google Finance API

When i am trying to buy shares using google finance api I am getting an exception:

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(GoogleServi开发者_运维技巧ce.java:599)
        at financetester.Main.insertTransactionEntry(Main.java:169)
        at financetester.Main.main(Main.java:81)
BUILD SUCCESSFUL (total time: 1 minute 4 seconds)
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜