A simple and easy configurable plugin for WordPress which allows you to insert inline stock quotes with stock price information to posts, pages, widgets or even to tempalte files. Insertion is mainly available by shortcode.
Please note, stock data has been provided by Alpha Vantage
Stock Quote is simplified, static inline variation of Stock Ticker plugin.
How to use?
Use simple shortcode [stock_quote]
without any parameter in post or page, to display quote with default (global) settings.
You can tune single shortcode with parameters:
symbol
– string with single stock symbolshow
– string that define how will company be represent in quote; can bename
for Company Name, orsymbol
for Stock Symboldecimals
– override default number of decimal places for values (default from settings page used if no custom set by shortcode). Valud values are:1
,2
,3
and4
number_format
– override default number format for values (default from this settings page used if no custom set by shortcode). Valid options are:cd
for 0.000,00;dc
for 0,000.00;sd
for 0 000.00 andsc
for 0 000,00template
– override default template string (default is:%company% %price% %change% %changep%
). You can use following template keywords:%company%
,%exch_symbol%
,%symbol%
,%price%
,%change%
,%changep%
and%volume%
class
– (optional) custom class name for quote item, if you wish some special styling
[stock_quote symbol="^DJI" show="symbol"]
or
[stock_quote symbol="MSFT" decimals=3 number_format=cd template="%symbol% %price% %change% %changep%"]
Download
Get latest version below, download from WordPress page or find and install in your Dashboard from Plugins → Add New
Stock Quote v0.2.1.1 54 KB
- Remove MCX from supported exchanges because AlphaVantage does not provide data for Moscow Stock Exchange
- Add support for AlphaVantage.co empty response {} reported for Australian Exchange by @blockathon
Download Downloaded 24 times
12 responses to “Stock Quote”
Do you have a program that will allow a profit & loss portfolio of 20 stocks displaying real time? I am looking to insert this portfolio on my website,
www.focusedstocktrader.com
. which is not on a Word Press platform.Unfortunately, at the moment obly WordPress is supported.
Good day, am I able link your stock ticker to something other than Google? Would like to link to:
www.tmxmoney.com
If so, how can I do so?
Thank you, love your product!
Hi Cheryl,
Thank you for contacting us!
Unfortunately, Stock Quote plug-in for WordPress can link only to Google Finance stock page because that website is used as a source of stock data.
Some custom Java Script can replace target URL, but that will not work perfect because symbols are different on Google Finance and TMX Money. Example for GOOG symbol:
https://www.google.com/finance?q=NASDAQ:GOOG
http://web.tmxmoney.com/quote.php?qm_symbol=GOOG:US
Restored a back up of our site but getting this now:
Unfortunately, we could not get stock quote SPNI this time
Do you still have same issue? That should be temporary (until plugin fetch new quotes from Google when cache expire)
Trying to use your plugin but getting
[] Stock Quote Fatal Error: There is no defined All Stock Symbols
I have double checked my API key and tried with your above group of stocks. Using WP 4.9.8.
Hi Dan,
Have you set symbols you with to use in “All Stock Symbols” field on Stock Quote plugin settings page?
Hi, on the plugin page it says Stock Quote has been tested up to WordPress version 4.9.9. We are running 5.0.3 on the site where I would like to use Stock Quote – is there a problem with this version, or is it just that it hasn’t been tested yet? Are there plans to test it soon?
Hi Richard,
I can confirm that Stock Quote v0.2.1 work fine on WordPress 5.0.3 and PHP 7.2.11
Unfortunately, due to lack of time, I’m not getting a chance to test all my free plugins and update supported WP versions.
Hi… very handy plugin, thanks for creating. Is there a way to remove the arrow and just present the price on its own?
Hi Matt,
Thank you for choosing Stock Quote.
To remove change indicator (arrow) from Stock Quote, you can simply add following custom CSS rule to your theme or to Additional CSS in Customizer: