Free Stock Quotes API

Would you like to offer stock quotes on your website? Are you tired of paying exhorbitant fees for quotes from reprehensible pyramid schemes like Bloomberg or Reuters? Magicspatula.com now offers stock quotes through a simple javascript API, all completely free.

Here's some example Javascript code showing how easy it is to add stock quotes to your web site (or "home page" as they call it in the tech lingo):
<script src="http://magicspatula.com/stock/quotes.js"></script>
<script>
  // Callback function for when the stock quote is received.
  gotStock = function(resp) {
        alert('Got stock quote: ' + resp);
  };
  showStockQuote = function() {
    getstockquote(
      'GOOG',  // Stock symbol.
      'gotStock');  // The name of the callback function
  };
</script>

showstockquote() demo:

Try our real-time quote stream

Also available in the API, Magicspatula.com offers a getlivestockquotes() function. To use this data stream, just change the function call:
<script src="http://magicspatula.com/stock/quotes.js"></script>
<script>
  // Callback function for when the stock quote is received.
  gotStock = function(resp) {
        alert('Got stock quote: ' + resp);
  };
  showStockQuote = function() {
    getlivestockquote(
      'GOOG',  // Stock symbol.
      'gotStock');  // The name of the callback function
  };
</script>

This provides an up-to-the-minute quote when you need it the most: now!

showlivestockquote() demo:

Patent Pending.

Project by Matt Casey and Jonathan Howard, with industry insights from Chris B.