Description
Wordpress plugin for placing stock data directly into posts. Data comes from Yahoo Quote Server, and is refreshed when browser is refreshed.

>Download v0.2
Fixed Yahoo URL change. Many thanks to those who left comments about this error!!

>Download v0.1


Usage
Simply place double brackets around a ticker symbol, and the symbol is replaced by the stock data.

(AAPL: 194.12 -0.69%) Apple
(GOOG: 533.47 +0.41%) Google
(DIVX: 5.39 -3.23%) Divx
(CPSS: 1.3399 +3.07%) CPS
(BBY: 35.47 -0.98%) Best Buy
(BA: 57.89 -0.87%) Boeing

Fields which can be displayed: symbol, price, price change, percent price change, volume, average volume, 50 day moving average, 200 day moving average, yield, market cap, short ratio, 52 week range, and 1 yr price target.

Todo

  • Finer grain control over fields displayed, rather than site-wide
  • More fields
  • More color coding
  • Embedded charts (sparklines)

Comments

36 Comments so far

  1. Weblog Tools Collection » Blog Archive » WordPress Plugin Releases for 05/22 on May 22, 2007 7:25 am

    [...] Embedded Stock Data is a WordPress plugin for placing stock data directly into posts. Data comes from Yahoo Quote Server, and is refreshed when browser is refreshed. [...]

  2. WeblogToolsCollection DE » Blog Archive » Neue Wordpress Plugins 22.05 on May 23, 2007 1:24 am

    [...] Embedded Stock Data integrierte Aktiendaten direkt in Beiträge. Die Daten kommen vom Yahoo Quote Server. [...]

  3. Andy So on August 28, 2007 12:41 am

    Great plugin. Can I have my designer, an ex-IBM designer, contribute to the development of this plugin? I’d like to have her design a few images and templates for how the information can be presented in a table format.

    You could also use this to present an entire portfolio and track the accurateness of a person’s price targets if it were developed in that direction.

    Let me know if I can help at all. Your plugin works great on my blog.

    Andy

  4. Andy So on September 5, 2007 3:02 am

    Your plug-in is producing a result that says, the document has moved here. Any ideas? The results are both on your page hosting the plug-in and on my own where I have integrated it.

    Let me know if you are interested in the above at all too.

    Thanks,

    Andy

  5. Andy So on September 5, 2007 10:44 am

    It looks like the location of the Yahoo Quote server changed. Other plug-ins are reporting this issue. Sorry to bother you with this. I thought I would inform you so you might be able to update it for myself and other users of the plug-in.

  6. Geek on September 5, 2007 11:01 am

    Andy, thanks for your posts! I’ll take a look at the changes to the quote server tonight. And I’m open to collaboration. I’ll email you directly about it this evening as well.

    Cheers,
    Todd

  7. Andy So on September 5, 2007 11:18 am

    Thanks Todd. I use two plugins on my blog, the author of one that generates a stock portfolio in the sidebar updated his plugin this morning. The update notes say:

    “Version 1.3 fixes the issue caused by Yahoo changing the URL for stock data downloads.”

    This tipped me off on the probable cause of your plugin malfunctioning.

  8. Tim on September 5, 2007 7:51 pm

    Same problem here. Will check back for an update. I really like how this plugin enhances my blog.

  9. Brian on September 5, 2007 9:13 pm

    There is still a bug when you click on the ticker it does not send you to Yahoo Finance. It’s a internal loop. Try clicking on AAPL above.

  10. Geek on September 5, 2007 9:24 pm

    Fixed now.

    BTW, I added a space after “Short Ratio” after seeing your site and noticing it was missing.

    Cheers,
    Todd

  11. Brian on September 6, 2007 2:01 am

    Hi Todd,

    Thanks for this fix works great.

    Brian

  12. Robert on October 13, 2007 4:12 am

    Great plugin!

    Would be nice to be able to limit the number of significant figures after the decimal point to two.

    Robert

  13. microcap speculator on October 17, 2007 12:55 am

    Is there a way to use this tool to get quotes for OTC BB or pink sheets stocks? It works great with listed and Nasdaq stocks, but for some reason I can’t get it to work with the bulletins and pinks, even using the .OB or .PK format used by yahoo! finance. Thanks.

  14. Jose Paul Martin on December 22, 2007 7:10 am

    Todd,

    Is it possible to use this plugin with finance.google.com rather than yahoo? Google Finance is catching on and I feel will be a success.

    Cheers
    Jose

  15. Jib on January 7, 2008 1:26 am

    Excellent plugin but I can’t get it to work… it gives me an error message saying:

    (The document has moved here.

    I guess it’s coming from Yahoo… can you please help?

  16. MinFin on January 19, 2008 9:13 am

    v 2.0 returns:

    Fatal error: Call to undefined function curl_init() in /mnt/www/minfin/wp-content/plugins/tickerData.php

  17. jd on January 21, 2008 12:07 pm

    I downloaded and installed the plugin but am getting a number of errors when it tries to function and they start with the below, any idea how to fix it? Thanks in advance.

    Warning: fopen(): SAFE MODE Restriction in effect. The script whose uid is 505 is not allowed to access /tmp/tickerDataThPyAN owned by uid 48 in /home/virtual/site11/fst/var/www/html/wordpress/wp-content/plugins/tickerData.php on line 18

    Warning: fopen(/tmp/tickerDataThPyAN): failed to open stream: Permission denied in /home/virtual/site11/fst/var/www/html/wordpress/wp-content/plugins/tickerData.php on line 18

  18. iomega on February 13, 2008 12:35 pm

    Todd,
    I activated the plugin and for some reason the quotes do not show up. The post displays the ticker along with the brackets. Anything that i’m missing here?

  19. Angus on April 3, 2008 2:31 pm

    I love your plugin. I am wondering if it is possible to change the code that the result won’t have blanket around the quote? like instead of (SBUX) change to just SBUX

  20. Jerry Pettit on April 19, 2008 12:31 am

    How are you doing that “Portfolio” table at top right?

    That’s different from your plug-in, right?

  21. scott on May 16, 2008 1:10 pm

    I love the plugin with one exception. Can you make the symbol link of the stock picks open in a new window?

  22. Alessandro on June 5, 2008 11:01 am

    Hi! i have a littel problem with the plugin.
    I wanna see the italian title quote, but the symbol is xxx.mi for all. if i do [[xxx.mi]] it don’t go bcause it can’t support the . i suppose…. can you help me pls?

    i think tath’s only a small editing on the php page

  23. Andrew Hill on June 27, 2008 7:10 pm

    Todd,

    I have a patch for your plugin that will make it unnecessary to write anything to the server file system, which fixes problems some users have had. I’ll explain more if you shoot me an e-mail, but since you’re using my original code snippet to do the downloads, you are vulnerable to the same issue, albeit rare. A user contacted me having the same issue with both plugins, that’s how I found your page. Anyway, you’re welcome to incorporate the changes.

    Andy

  24. Robert on July 24, 2008 12:13 pm

    The root folder on my server is filled with tickerdata files from this plugin. Everyday, there is new batch of them.

    Is there anyway to prevent this from happening?

  25. Chatarra on July 28, 2008 7:48 pm

    How are you doing that “Portfolio” table at top right?

    That’s different from your plug-in, right

    Please one reponse

  26. Top WordPress Plugins For Every Type of Blog! - The Best Blogging Upgrades Available | The Net Fool on September 10, 2008 4:21 am

    [...] Embedded Stock Data This plugin is my absolute favorite overall, very smart. Chances are, if you are writing with a [...]

  27. Tim Plaehn on October 10, 2008 7:31 am

    The plugin is not pulling stock data this morning. Has Yahoo changed again? I will check back later to see if you have any insight. Thanks.

  28. Tim Plaehn on October 10, 2008 8:25 am

    All is working now so please disregard the previous comment.

  29. Sod on November 4, 2008 3:02 pm

    Does this plugin work on Pages as well as posts?

  30. Kyle on December 18, 2008 11:05 am

    Please email with any help you can offer..

    I use this plugin, however I am trying to display the [[ticker]] quote information on a member profile page using the profiler plugin
    (member enters stock quotes into their profile, then when they view the profile/member page the quote data would show up)
    problem is, I’m only getting “[[ticker]]”…

    this makes me think the plugin will only work on posts or pages. is there a way to add some PHP to make the plugin display the data in any page? even a page I have custom created?

    or must this plugin be used “inside the loop” (whatever that means)

    what php code must I add to a page to get this plugin to translate [[goog]] into the data?

    thanks thanks thanks for any help

  31. Michael on March 28, 2009 9:25 pm

    Andy,

    Will you please post or email me the patch that avoids the files being generated on the server?

    Michael

    Andrew Hill on June 27, 2008 7:10 pm
    Todd,

    I have a patch for your plugin that will make it unnecessary to write anything to the server file system, which fixes problems some users have had. I’ll explain more if you shoot me an e-mail, but since you’re using my original code snippet to do the downloads, you are vulnerable to the same issue, albeit rare. A user contacted me having the same issue with both plugins, that’s how I found your page. Anyway, you’re welcome to incorporate the changes.

    Andy

  32. Frank MacDonald on June 17, 2009 4:37 pm

    Hi mate,

    Good plugin but it has a serious flaw which needs to be fixed. Many of Yahoos stock symbols use the characters . and ^. e.g. ^FTSE or BARC.L

    Any idea how we can get this working?

  33. paolo on July 3, 2009 2:46 am

    Can you get this to work with canadian stocks. For example uw.v ?

    Thanks!

  34. Ben on August 14, 2009 1:39 pm

    Is there a way to make this plugin work in the sidebar (e.g. sidebar.php)?

  35. Ben on September 1, 2009 4:22 pm

    Also, is there any way to pull the 100-day moving average? And maybe the price difference between the stock and the moving averages?

    Thanks for a wonderful plugin!

  36. ben on November 17, 2009 12:52 pm

    Can someone explain to me how to actually make the ticker show up on sidebar?
    1. I activated the plugin
    2. I modified settings in the Setting page
    3. Do I need to somehow include the file in the sidebar? There are serious documentation missing. I have no idea how to properly install your use this ticker. One line of “usage” explanation, doesnt tell me anything.

Name (required)

Email (required)

Website

Speak your mind