Code covered by the BSD License  

Highlights from
View and add transaction to portfolios on Google Finance

3.5

3.5 | 2 ratings Rate this file 11 Downloads (last 30 days) File Size: 5.79 KB File ID: #32167
image thumbnail

View and add transaction to portfolios on Google Finance

by

 

10 Jul 2011 (Updated )

View and add transactions to portfolios on Google Finance. A Google account will be required.

| Watch this File

File Information
Description

Attached are two very simple functions demonstrating how you can view and add transactions to portfolios on Google Finance from Matlab.

Update: I can only get these functions to work on Matlab 2008b 32-bit version, the 64-bit version does not work on my PC.

Acknowledgements

Matlab To Google Spreadsheets and Create Google Calendar Event With Sms And Email Notification inspired this file.

MATLAB release MATLAB 7.6 (R2008a)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (8)
04 Mar 2014 ted p teng

Hi Emad. Unfortunately, Google no longer offers this service.* See the following link for alternative methods. Please do share your solutions on the FEX! :)
http://stackoverflow.com/questions/16509443/way-to-access-users-google-finance-portfolio

*https://developers.google.com/finance/

03 Mar 2014 Emad Hasan

Hi, Does this code still work? I just tried it on a 32-bit 2013b but did not work. Got the following error.

Java exception occurred:
java.io.IOException: Server returned HTTP response code: 403 for URL: http://finance.google.com/finance/feeds/default/portfolios/10/positions/NASDAQ:GOOG/transactions/

at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)

from line: 73

22 Jul 2013 DMITRI

I am trying googlePortfolioHoldingsExample and getting Java exception:

Java exception occurred:
java.io.IOException: Server returned HTTP response code: 403 for URL: http://finance.google.com/finance/feeds/default/portfolios/42/positions/NASDAQ:GOOG/transactions/

at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)

from line: 73

Is this API still working?

22 Apr 2013 ted p teng

glad you liked it! thanks for the 5 star rating. :)

21 Apr 2013 Mirko

Ted, again a smart idea.

06 Sep 2011 ted p teng

Please note that this function will not work on the 64-bit version of Matlab.

22 Jul 2011 ted p teng

I got that error in my other computer too.
http://www.mathworks.de/matlabcentral/newsreader/view_thread/290639
The above link may provide a solution to our encountered error.

22 Jul 2011 Emad Hasan

Great Idea, but I am getting the following error. Please advise.

??? Error using ==> connectAndAuthorize at 49
Java exception occurred:
java.io.IOException: The issuer can not be found in the trusted CA list.

at ice.ssl.SSLSocket.processEvent(OEAB)

at ice.ssl.SSLSocket.certCallback(OEAB)

Updates
16 Jul 2011

Updated comments in the codes.

03 Sep 2011

updated function description.

Contact us