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 27 times