May
20
Embedded Stock Data Wordpress Plugin
May 20, 2007 | 36 Comments
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!!
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
[...] 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. [...]
[...] Embedded Stock Data integrierte Aktiendaten direkt in Beiträge. Die Daten kommen vom Yahoo Quote Server. [...]
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
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
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.
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
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.
Same problem here. Will check back for an update. I really like how this plugin enhances my blog.
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.
Fixed now.
BTW, I added a space after “Short Ratio” after seeing your site and noticing it was missing.
Cheers,
Todd
Hi Todd,
Thanks for this fix works great.
Brian
Great plugin!
Would be nice to be able to limit the number of significant figures after the decimal point to two.
Robert
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.
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
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?
v 2.0 returns:
Fatal error: Call to undefined function curl_init() in /mnt/www/minfin/wp-content/plugins/tickerData.php
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
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?
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
How are you doing that “Portfolio” table at top right?
That’s different from your plug-in, right?
I love the plugin with one exception. Can you make the symbol link of the stock picks open in a new window?
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
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
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?
How are you doing that “Portfolio” table at top right?
That’s different from your plug-in, right
Please one reponse
[...] Embedded Stock Data This plugin is my absolute favorite overall, very smart. Chances are, if you are writing with a [...]
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.
All is working now so please disregard the previous comment.
Does this plugin work on Pages as well as posts?
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
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
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?
Can you get this to work with canadian stocks. For example uw.v ?
Thanks!
Is there a way to make this plugin work in the sidebar (e.g. sidebar.php)?
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!
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.