Stocks Watchlist Wordpress Plugin
I finally got around to finishing my Stocks Watchlist Wordpress Plugin [download].
The Stocks Watchlist plugin allows you to store stock symbols in your Wordpress database and then output these symbols along with their live prices to your Wordpress blog. You should be able to see mine in the far right hand column here.
To add/edit/delete stocks to the watchlist database, go to Manage->Stocks Watchlist in the admin panel.
Here it is possible to add a description to the stock symbol and also enable it to be visible in the output.
To output your stocks watchlist, add the following code to your blog template:
<?php swl_output() ?>
When the stocks watchlist is output, it will retrieve the latest price for the stock from Yahoo Finance and also insert a link to the stocks news page at Yahoo Finance.
The plugin was developed with WP2.1, but should work on all versions. Also, it requires cURL to be enabled on your webserver.
If you would like to give it a go, I would really appreciate some feedback. Also, I would be keen to hear of any features that you would like to see added to the plugin.
Update v1.1 v1.0 has not been working for a while, but I have now fixed the bud.
Download - Stocks Watchlist Wordpress Plugin
Related Articles:
4 Useful Firefox Add-ons and Tips for Investors
Trader Mike’s September Watchlist
What Are Stocks and How do Stock Market Investments Work?
Doubling Stocks
Why Forex Is A Better Investment Idea Than Stocks or Commodities
Great plugin, thanks very much. It works with other stock exchanges if you change the yahoo URL. Mines working with Paris.
Comment by Andy — May 2, 2007 @ 1:43 am
First of all thanks for the plugin. However, I get an error message on the manage—> Stocks Watchlist page:
Warning: Invalid argument supplied for foreach() in /wp-content/plugins/stocks-watchlist.php on line 160
——————-
Fatal error: Call to undefined function: attribute_escape() in
wp-content/plugins/stocks-watchlist.php on line 196
Comment by Himanshu — May 3, 2007 @ 2:45 pm
I have the same problem with your plugin as I do with the SQ alternative. When I put your code in the sidebar, the page freezes at that point.
All other plugins seem fine.
Recently updated server to Apache 2.2.6, which also includes a reinstall of PHP 5.2.4. DId we miss something?
Peace,
Gene
Comment by Gene Steinberg — October 16, 2007 @ 5:01 am
It does not seem to working on your site?
not on mine either?
Comment by iMat — October 24, 2007 @ 7:56 am
I had an issue with the stock prices not displaying, and I notice your instance has the same issue. It only shows the symbols. I’m not much of a programmer, but playing around with the PHP code revealed the page pointer returned was a forward to “download.yahoo.com….. ”
Anyway… I added:
curl_setopt ($ch, CURLOPT_FOLLOWLOCATION, 1);
to the list of cURL options and that seems to do the trick.
Great plugin! Thanks!
Comment by Meta — December 21, 2007 @ 11:24 am
I love the plug-in, great job. I was wondering, is there some sort of way to code in an error message for when yahoo goes down? If it goes down , the plug-in spits out a 404 error code.
I don’t know much about coding so I’m not sure how to go about fixing this in the event it happens again. It would be nice if when the feed went down, you just got a nice little error message on your page.
Comment by Kenya Ziegenhagen — February 29, 2008 @ 10:37 am
OK everybody. I have just fixed the plugin.
I would be keen to get some feedback on how it is working now.
thanks
Dominic.
Comment by Administrator — March 31, 2008 @ 12:40 pm
Any way to put this in a sidebar widget?
Comment by wristshot — April 4, 2008 @ 12:27 pm
@wristshot - I shall try and make it into a sidebar widget soon
Comment by Administrator — April 7, 2008 @ 9:20 am
[…] Stocks Watchlist 1.0.0 ยป Dominic Foster (url) Manage and share your stocks watchlist in Wordpress. Use Manage->Stocks Watchlist to set options. Use <?php swl_output() ?> to output your Watchlist. […]
Pingback by The Best Blogging Software (WordPress) + The Top 60 WordPress Plugins | Midas Oracle .ORG — April 14, 2008 @ 1:44 am