File Exchange

image thumbnail

View and add transaction to portfolios on Google Finance

version 1.2 (5.79 KB) by

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

3 Downloads

Updated

View License

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.

Comments and Ratings (8)

ted p teng

ted p teng (view profile)

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/

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

DMITRI

DMITRI (view profile)

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?

ted p teng

ted p teng (view profile)

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

Mirko

Mirko (view profile)

Ted, again a smart idea.

ted p teng

ted p teng (view profile)

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

ted p teng

ted p teng (view profile)

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.

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

1.2

updated function description.

1.1

Updated comments in the codes.

MATLAB Release
MATLAB 7.6 (R2008a)
Tags Add Tags

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video