I reply to all queries on the forums and via email, once per day, Monday to Friday (not weekends).
If you are new here, please see some information on how to ask for support. Thank you!
-
AnonymousInactive
Hello Alex,
How do i display current market rate of a coin, in BTC or FIAT currency or may be both.
Thanks
This is not exactly possible at the moment.
There will be shortcodes in the future to display coin rates.
At the moment you can do the following in JavaScript on the frontend:
- The coin that exchange rates are given against is indicated by
walletsUserData.fiatSymbol
. This is normally the selection under Wallets > Exchange rates > Default fiat currency but can be overridden in a user’s profile.
- The exchange rate for e.g. Litecoin is accessible as
wp.wallets.viewModels.wallets.coins()['LTC'].rate
.
Hope this helps. Once the shortcodes are ready I will report it and there will also be a blog announcement.
kind regards
AnonymousInactive
Hello San,
In the latest version 3.6.0
you can now display exchange rates with the [wallets_rates]
shortcode or widget.
Please see the relevant blog announcement and the “Frontend” section of the accompanying documentation.
kind regards
- You must be logged in to reply to this topic.