💱 Action required: Important changes to exchange rates system

in #wordpress6 years ago

Summary: You need to get a free API key for the fixer.io service and provide it to the plugin.

The Bitcoin and Altcoin Wallets free WordPress plugin lets you use a number of online service providers to compute exchange rates between fiat currencies and cryptocurrencies. To translate between fiat and crypto, the fixer.io service is used. Release 3.4.0 of the plugin addresses some recent changes to the fixer API and brings some more improvements to the exchange rates system.


API key


Previously the fixer.io API was publicly available to all, but now it can only be accessed with an API key. You can register for a free API key here. Once you do, paste the key into the plugin at WalletsExchange RatesFixer API key. The plugin will only request data once per hour, so the free plan of 1000 requests per month is sufficient for this plugin. The new fixer API also provides data for more fiat currencies than before.

Be advised that unless you do this, fiat amounts will not be displayed correctly on the frontend. Additionally, some extensions such as the payment gateways require correct exchange rates to function properly. So get your key today!

Fixed/custom rates


If you have written custom code to provide your own manual exchange rates, be aware that the way to do this has changed. Hooking to the filters is now a lot simpler. Example code is here:

https://gist.github.com/alex-georgiou/492196184f206002c864225180ca8fbb

Multiple exchange rate providers


The plugin's exchange rates system has been improved throughout. You can now mix and match multiple exchange rates providers if you need to. Most people should choose fixer for fiat rates, plus one more provider, such as coinmarketcap, for cryptocurrency exchange rates.

If you disable an exchange rate provider, its data is now retained on the DB, but is no longer updated. Data is updated for all the exchange rates that you have selected in the checkbox list. For performance reasons, do not enable all the providers, only enable the ones you need.