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!

Current Market Rate

dashed-slug.net Forums General discussion Current Market Rate

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #3369
    Anonymous
    Inactive

    Hello Alex,

    How do i display current market rate of a coin, in BTC or FIAT currency or may be both.

    Thanks

    #3372
    alexg
    Keymaster

    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

     

     

    #3375
    Anonymous
    Inactive

    Ok thanks Alex.

    #3897
    alexg
    Keymaster

    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

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.