Linux 软件免费装
Banner图

Stock Ticker

开发者 urkekg
techwebux
更新时间 2026年3月4日 17:09
捐献地址: 去捐款
PHP版本: 7.3 及以上
WordPress版本: 6.9.1
版权: GPLv3
版权网址: 版权信息

标签

forex ticker stock trading stock ticker

下载

3.23.5 3.1 3.2.0 3.2.1 3.2.2 3.23.0 3.23.2 3.23.4 3.1.0.1 3.23.1 3.24.4 3.24.6 3.26.2 3.23.3

详情介绍:

A simple and easy configurable plugin for WordPress that allows you to insert a stock ticker with stock price information to posts, pages, widgets, or even to template files. Insertion is enabled by a shortcode or multi-instance widget. Stock data is fetched by the API from Alpha Vantage. You'll need an AlphaVantage.co API Key. Stock Ticker is an advanced variation of the Stock Quote plugin. Multisite WordPress is not supported yet. IMPORTANT: Stock Ticker does not have its Gutenberg Block. You can use Shortcode Block or Common Block to insert the Stock Ticker within the post/page content.

安装:

To install Stock Ticker and make initial settings to work, please follow the instructions below. https://youtu.be/_tSQ5-ODVfs
  1. Go to Plugins > Add New.
  2. Search for the Stock Ticker plugin.
  3. Install and activate Stock Ticker.
  4. Get a free API Key from AlphaVantage.co.
  5. In the WordPress Dashboard, navigate to Settings > Stock Ticker.
  6. Enter the Alpha Vantage API Key you received in the previous step in the field AlphaVantage.co API Key (check this screenshot).
  7. Enter all stock symbols you'll use on the whole website in various widgets and shortcodes to the field All Stock Symbols, separated by a comma. This field is used to fetch stock data from AlphaVantage.co API by AJAX in the background. Because AV's free tier only offers an API to retrieve data for a single symbol, it can take some time to get. Please note that, for default shortcode symbols, a field remains in the Default Settings section of the plugin.
    1. Save the settings and click the Fetch Stock Data Now! button to initially fetch stock data into the database. Wait for a while until we receive all symbols from AlphaVantage.co for the first time.
  8. Insert shortcode [stock_ticker] to a page or post, or the Stock Ticker Widget to the preferred Widget Area.

屏幕截图:

  • Widget settings
  • Stock ticker in action
  • Stock ticker in Customizer > top Widgets top
  • Stock ticker in Customizer > sidebar Widgets
  • Stock ticker through Gutenberg Shortcode block

升级注意事项:

3.0.0 Switch to AlphaVantage.co free API for stock data.

常见问题:

How to know which stock symbols to use?

You can use standard symbols from stock exchanges supported by AlphaVantage.co, such as AAPL, MSFT, IBM, CSCO, GOOG, YHOO, and AMZN (Apple Inc., Microsoft Corporation, International Business Machines Corporation, Cisco Systems, Inc., Google Inc., Yahoo! Inc., Amazon.com). To check if AlphaVantage.co supports your preferred symbol(s), you can use the Symbol Search & Test tool on the plugin settings page to search for keywords and symbols on AlphaVantage.co directly from your WordPress dashboard.

The stock exchange or symbol I need does not work!

Try to find the correct symbol on AlphaVantage.co by looking for it in the Symbol Search & Test tool. Even try alternatives or the company name. If that does not help, you can search the Alpha Vantage community forum www.alpha-vantage.community or contact Alpha Vantage support.

How to get Dow Jones Industrial Average or other Indexes?

AlphaVantage.co does not support indexes since mid-2020.

How to get Crude Oil, Gold and other commodities?

Commodities are not supported by the Stock Ticker.

How to obtain a currency exchange rate?

Forex is not supported by the Stock Ticker.

How to get the proper stock price from a proper stock exchange?

Enter symbol in format EXCHANGE:SYMBOL, like LON:LLOY or SYMBOL.EXCHANGE like LLOY.LON for Lloyds Banking Group Plc from the London Stock Exchange market. Please note that AlphaVantage.co does not always provide stock data for all existing stocks.

How to get a descriptive title for currency exchange rates?

Add to Custom Names legend currency exchange symbol w/o =X part, like: EURGBP;Euro (€) ⇨ British Pound Sterling (£)

How to add Stock Ticker to the header theme file?

Add this to your template file (you can also add custom parameters for the shortcode): <?php echo do_shortcode('[stock_ticker]'); ?>

How to customise quote output?

On the Settings page for the plugin, you can set a custom Value template. You can use macro keywords %exch_symbol%, %symbol%, %company%, %price%, %volume%, %change%, %changep% and %ltrade% mixed with HTML tags <span> (allowed class and style attribute), <em> and/or <strong>. Default template is %company% %price% %change% %changep% but you can format it like: <span style="color:#333">%company%</span> <em>%price%</em> <strong>%change%</strong> %changep%

I set to show %company% but symbol is displayed instead

Please note that Alpha Vantage does not provide the company name in retrieved feeds. You'll need to set the company name in the Custom Names field on the plugin settings page.

How to resolve the error Unfortunately, we could not get stock quotes this time?

This can be a temporary issue. First, try running Fetch Stock Data Now! on the plugin settings page. Then try increasing the Fetch Timeout option in the general plugin settings and run Fetch Stock Data Now!. If you continue to experience issues, please contact us through the community support forum.

Can I get stock data for my custom code?

Since version 3.1 of Stock Ticker, you can get stock data in custom functions. For example: ` That will return the associated array for the requested symbols:array(2) { ["AAPL"]=> array(11) { ["symbol"]=> string(4) "AAPL" ["tz"]=> string(10) "US/Eastern" ["last_refreshed"]=> string(19) "2018-09-14 00:00:00" ["last_open"]=> string(8) "225.7500" ["last_high"]=> string(8) "226.8400" ["last_low"]=> string(8) "222.5220" ["last_close"]=> string(8) "223.8400" ["last_volume"]=> string(8) "31999289" ["change"]=> string(7) "-2.5700" ["changep"]=> string(7) "-1.1351" ["range"]=> string(19) "222.5220 - 226.8400" } ["MSFT"]=> array(11) { ["symbol"]=> string(4) "MSFT" ["tz"]=> string(10) "US/Eastern" ["last_refreshed"]=> string(19) "2018-09-14 00:00:00" ["last_open"]=> string(8) "113.3600" ["last_high"]=> string(8) "113.7300" ["last_low"]=> string(8) "112.4400" ["last_close"]=> string(8) "113.3700" ["last_volume"]=> string(8) "19122349" ["change"]=> string(6) "0.4600" ["changep"]=> string(6) "0.4074" ["range"]=> string(19) "112.4400 - 113.7300" } }`

更新日志:

3.26.2 (20260226) 3.24.6 (20240628) 3.24.4 (20240420) 3.23.5 (20231216) 3.23.4 (20230810) 3.23.3 (20230717) 3.23.2 (20230622) 3.23.1 (20230223) 3.23.0 (20230223) 3.2.2 (20220102) 3.2.1 (20211113) 3.2.0 (20201107) 3.1.0.1 (20200810) 3.1 (20190328) 3.0.5.4 (20180823) 3.0.5.3 (20180228) 3.0.5.2 (20180228) 3.0.5.1 (20180204) 3.0.5 (20180204) 3.0.4 (20171212) 3.0.3 (20171211) 3.0.2 (20171205) 3.0.1 (20171204) 3.0.0 (20171203)