The Mamak Stall Investor

Import stock quotes into Excel using web services

Friday, 3 November 2006, 9:10 pm · 20 Comments

Excel is a very useful portfolio and investment tracking tool. You can customize it to your heart content with formulas and macros. However, I find it troublesome to enter stock price and currency rate manually from the web. I thought it would be nice to automate this using web services but I am not aware of websites that provide such services.

Well, I have found a web services sample code that grabs stock quotes from Yahoo Finance web page. With this, I can run the web services on my PC, and then use Excel macro to call the web services to extract stock quotes. Ya, I could have rewritten the sample code to Excel macro, so that Excel can call it without running the web services. But I am not good at writing Excel macro, and I am lazy to rewrite it, hehe.

So what do I have here?

I have packaged the web services sample code (SOURCE) with a simple web server (SOURCE), written some Excel macros to consume the web services, and here I have: StockQuote – my little program that imports stock quotes and currency rates into Excel, with a click of a button :D

How to use StockQuote? Download the latest release below, extract the zip file and read the README.txt for the instruction to setup. After setting up, open ‘StockQuoteDemo.xls’ (see screenshot below) to test it. Have fun!

StockQuote Screenshot

PS: Besides using StockQuote, you can try the following two alternatives to import stock quotes and currency rates into Excel:

  1. Use Excel web queries. Follow this GUIDE.
  2. Use MSNStockQuote plug-in. Read this POST by Indexfundfan.

StockQuote Release History

  • StockQuote 1.0. Download (247KB .zip). Released Oct 24, 2006.
    • Import stock price from Yahoo Finance
  • StockQuote 2.0. Download (251KB .zip). Released Jan 14, 2007.
    • Added support for importing unit trust fund price from Fundsupermart.com
  • StockQuote 2.1. Download (251KB .zip). Released Sep 03, 2008.
    • Added support for importing SGS bond price from Fundsupermart.com
  • StockQuote 2.1.1. Download (251KB .zip). Released Dec 09, 2008.
    • Fixed price import error after Fundsupermart.com changed site layout.
  • StockQuote 2.1.2. Download (251KB .zip). Released Apr 05, 2009.
    • Fixed price import error after Yahoo Finance changed site layout.

Categories: Investing · Portfolio Management · Technology · Tools
Tagged: , , ,

20 responses so far ↓

Leave a Comment