File Exchange

image thumbnail

View and add transaction to portfolios on Google Finance

version 1.2.0.0 (5.79 KB) by pangyuteng
View and add transactions to portfolios on Google Finance. A Google account will be required.

0 Downloads

Updated 03 Sep 2011

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.

Cite As

pangyuteng (2019). View and add transaction to portfolios on Google Finance (https://www.mathworks.com/matlabcentral/fileexchange/32167-view-and-add-transaction-to-portfolios-on-google-finance), MATLAB Central File Exchange. Retrieved .

Comments and Ratings (8)

pangyuteng

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

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?

pangyuteng

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

Mirko

Ted, again a smart idea.

pangyuteng

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

pangyuteng

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.0.0

updated function description.

1.1.0.0

Updated comments in the codes.

MATLAB Release Compatibility
Created with R2008a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Tags Add Tags