Linux 软件免费装
Banner图

Stock Ticker

开发者 urkekg
techwebux
更新时间 2024年6月28日 07:14
捐献地址: 去捐款
PHP版本: 5.6 及以上
WordPress版本: 6.5.5
版权: GPLv3
版权网址: 版权信息

标签

forex ticker stock trading stock ticker sotck quote

下载

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.23.3 3.24.4 3.24.6

详情介绍:

A simple and easy configurable plugin for WordPress that allows you to insert stock ticker with stock price information to posts, pages, widgets or even to template files. Insertion is enabled by shortcode or multi instance widget. Please note, stock data has been provided by Alpha Vantage which does not support indexes since mid-2020! Stock Ticker is advanced variation of Stock Quote plugin. Multisite WordPress is not supported yet IMPORTANT Stock Ticker does not have own Gutenberg Block, so you can use 代码 Block or Common Block to insert Stock Ticker within the post/page content.

安装:

To install Stock Ticker and make initial setting to work, please follow instructions below https://youtu.be/_tSQ5-ODVfs
  1. Go to Plugins -> Add New
  2. Search for Stock Ticker plugin
  3. Install and activate Stock Ticker
  4. Get a free API Key from AlphaVantage.co
  5. In WordPress Dashboard go to Settings -> Stock Ticker
  6. Enter to field AlphaVantage.co API Key Alpha Vantage API Key you received in previous step (check this screenshot)
  7. Enter to field All Stock Symbols all stock symbols you’ll use on whole website in various widgets and shortcodes, separated by comma. This field is used to fetch stock data from AlphaVantage.co API by AJAX in background. Because AV have only API to get data for single symbol, that can take a while to get. Please note, for default shortcode symbols there is still have field in Default Settings section of plugin.
  8. Save settings and click button Fetch Stock Data Now! to initially fetch stock data to database and wait for a while until we get all symbols from AlphaVantage.co for the very first time.
  9. Insert shortcode [stock_ticker] to page or post, or Stock Ticker Widget to 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. For example, you can try with AAPL, MSFT, IBM, CSCO, GOOG, YHOO, AMZN (Apple Inc; Microsoft Corporation; International Business Machines Corporation; Cisco Systems, Inc.; Google Inc; Yahoo! Inc; Amazon.com, Inc.) To check if AlphaVantage.co support your preferred symbol(s), you can use Symbol Search & Test tool on plugin settings page to search for keysords and symbols on AlphaVantage.co directly from your WordPress dashboard.

Stock Exchange or Symbol I need does not work!

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

How to get Dow Jones Industrial Average or other Indexes?

Unfortunately, AlphaVantage.co no longer supports indexes (mid-2020). That is why Stock Ticker no longer provide quotes for them.

How to get Crude Oil, Gold and other commodities?

Unfortunately, AlphaVantage.co does not support commodities (metals, energies, grains, meats, softs). That is why Stock Ticker can't provide quotes for them.

How to get currency exchange rate?

Use Currency exchange symbols like EURGBP to get rate of 1 Euro = ? British Pounds Please note, since mid-2020 AlphaVantage.co does not support anymore format EURGBP=X so use syntax without =X.

How to get proper stock price from proper stock exchange?

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

How to get 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 header theme file?

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

How to customize quote output?

On Settings page for plugin you can set custom Value template. You can use macro keywords %exch_symbol%, %symbol%, %company%, %price%, %volume%, %change%, %changep% and %ltrade% mixed with HTML tags <span>, <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 company name in retrieved feeds. You'll need to set company name in Custom Names field on plugin settings page.

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

This can be temporary issue. First try to run Fetch Stock Data Now! on plugin settings page. If that does not help, next try to increase Fetch Timeout option on general plugin settings and then run Fetch Stock Data Now!. If you still experiencing issue, please contact us through 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. Fore example: ` That will return associated array for 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.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)