Linux 软件免费装
Banner图

Stock Quote

开发者 urkekg
techwebux
更新时间 2021年2月27日 17:54
捐献地址: 去捐款
PHP版本: 5.6 及以上
WordPress版本: 5.6
版权: GPLv3 or later
版权网址: 版权信息

标签

stock exchange finance trading stock quote

下载

0.1.0 0.1.1 0.1.2 0.1.3 0.1.4 0.1.5 0.1.6 0.1.7 0.1.7.1 0.2.0 0.2.0.1 0.2.0.2 0.2.0.3 0.2.0.4 0.2.1 0.2.1.1 0.2.2 0.2.3

详情介绍:

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 template 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. Multisite WordPress is not supported yet IMPORTANT Stock Quote does not have own Gutenberg Block, so you can add [stock_quote] shortcode inline to Paragraph Block or Common Block to insert Stock Quote within the post/page content.

安装:

Easy install Stock Quote as any other ordinary WordPress plugin https://youtu.be/bi9S8mG3Hz0
  1. Go to Plugins -> Add New
  2. Search for Stock Quote plugin
  3. Install and activate Stock Quote
  4. Get a free API Key from AlphaVantage.co
  5. In WordPress Dashboard go to Settings -> Stock Quote
  6. Enter to field AlphaVantage.co API Key Alpha Vantage API Key you received in previous step
  7. Enter to field All Stock Symbols all stock symbols you’ll use on whole website in various 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 symbol there is still 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_quote] to page or post as usual.

屏幕截图:

  • Global plugin settings page
  • Stock Quote in action

升级注意事项:

0.2.1 Alphavantage.co API endpoint change to GLOBAL_QUOTE for more precize data 0.2.0 Broken functionality fix 0.1.1 Bugfix release 0.1.0 This is initial version of plugin.

常见问题:

How to know which stock symbols to use?

For start you can try with AAPL (Apple). If you need some specific symbol, check you'll need to figure out by your self.

How to get Dow Jones Industrial Average?

To get quote for this exchange, simply add symbol .DJI or ^DJI.

How to get currency exchange rate?

Use Currency symbols like EURGBP to get rate of 1 Euro = ? British Pounds

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 get proper stock price from proper stock exchange?

Enter symbol in format EXCHANGE:SYMBOL like LON:AVST

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]'); ?>

I set to show company name but symbol is displayed instead

You'll need to set company name to Custom Names field on plugin settings page.

My quote do not update or have large delay

There is couple possible causes for this issue:

  1. Your website do not have enough visits to fetch each symbol from All Stock Symbols field. Solution: We are working on cron driven updates, but we do not have ETA for that release.
  2. You have set too short Cache Timeout value so plugin do not have enough time to fetch updated quote for each symbol in All Stock Symbols. Solution: Increase Cache Timeout value.
  3. You have too long Cache Timeout value so plugin skip fetching of updated quotes. Solution: decrease Cache Timeout value below 600 (that means below 10 minutes).
  4. You have set too short Fetch Timeout so plugin do not have enough time to successfully retrieve symbol from AlphaVantage.co. Solution: Increase Fetch Timeout by 2-3 second than you have set already. If that still does not work, try with another 2-3 seconds.
  5. When you hover over quote on front-end, you should see last trade date. If date is older than expected (including last trade day), it's possible that something stuck in plugin. Solution: Enable debugging in WordPress as explained in official article https://codex.wordpress.org/Debugging_in_WordPress#Example_wp-config.php_for_Debugging and after couple of hours disable debugging, upload wp-content/stock-quote.log to DropBox/Google Drive/etc and provide link to log in email sent throug our contact form at https://urosevic.net/c/

更新日志:

0.2.3 (20210227) 0.2.2 (20200811) 0.2.1.1 (20200520) 0.2.1 (20180923) 0.2.0.5 (20180901) 0.2.0.4 (20180604) 0.2.0.3 (20180219) 0.2.0.2 (20180204) 0.2.0.1 (20171229) 0.2.0 (20171222) 0.1.7.1 (20170524) 0.1.7 (20170521) 0.1.6 (20170118) 0.1.5 (20160523) 0.1.4 (20151016) 0.1.3 (20150809) 0.1.2 (20150723) 0.1.1 (20150607) 0.1.0 (20150408)