Linux 软件免费装
Banner图

Cryptocurrency Portfolio Tracker

开发者 matstars
statenweb
更新时间 2018年5月6日 03:51
捐献地址: 去捐款
PHP版本: 5.5 及以上
WordPress版本: 4.9.5
版权: GPLv2 or later
版权网址: 版权信息

标签

bitcoin ethereum cryptocurrency litecoin bitcoin cash ripple

下载

0.0.11 0.0.12 0.0.13 0.0.14 0.0.15 0.0.16 0.0.17

详情介绍:

Adds an admin screen to enter in your cryptocurrency purchases and then exposes a simple to use shortcode and simple API to output your cryptocurrency portfolio's performance on the frontend. Please note that this plugin makes use of a 3rd party service to retrieve cryptocurrency prices. This means that a request is made to third party servers (coinmarketcap.com) requesting current cryptocurrency prices. See https://coinmarketcap.com/api/ for more information. Simple usage: Adding your portfolio Outputting the data Shortcode [cryptocurrency_table] PHP API cryptocurrency_table(); Filters For the sake of brevity, by default, the table outputs (1) the current price of each currency and does NOT output the last time the price was retrieved (see API section below), both of which can be toggled by adding the following: Hiding the current price: add_filter( 'cryptocurrency/show_current_price', '__return_false’ ); Showing the last updated: add_filter( 'cryptocurrency/show_last_updated', '__return_true' ); Changing how currency is displayed: If you are using Euro as your fiat currency it defaults to outputting the € symbol after the amount, you can easily switch it to show the € symbol before by doing the following ``` add_filter('cryptocurrency/currency_symbol_before', function(){ return '€'; } ); add_filter('cryptocurrency/currency_symbol_after', '__return_null' ); ``` API This plugin uses the public API made available by coinmarketcap.com. It is built to cache responses for 60 seconds so as to not flood the API. The plugin injects the last updated date/time as part of the response object which can be exposed via a filter (see Filters above). Please make sure to follow their API rules. See https://coinmarketcap.com/api/ for more information. Release Notes Roadmap Things I'd like to add in the future - Ability to set and display data based on a specific currency (currently only supports USD). - Translations, feel free to translate this into your own language, cryptocurrency is the text domain.

安装:

This section describes how to install the plugin and get it working.
  1. Upload the plugin files to the /wp-content/plugins/cryptocurrency directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the 'Plugins' screen in WordPress
  3. Use the Settings->Cryptocurrency screen to add your cryptocurrency portfolio
  4. Use the shortcode or API (examples for both above) to output your portfolio data