Task: Display data from https://api.bitvalor.com/v1/ticker.json
Local stored JSON: https://api.json-content-importer.com/extra/json/bitvalorticker.json
Free JCI-Plugin Shortcode:
[jsoncontentimporter url=https://api.bitvalor.com/v1/ticker.json basenode=ticker_24h] total.last: {subloop:total:-1}{total.last}{/subloop:total} [/jsoncontentimporter]
twig-template:
total.last: {{ticker_24h.total.last}}<br> {% for key, val in ticker_24h.exchanges %} {{key}}: {{val.high}}<br> {% endfor %} <br> Mercado Bitcoin = R$ {{ticker_1h.exchanges.MBT.last}}
Shortcode (convertjsonnumbers2strings=yes needed here, as numbers are extra-long):
[jsoncontentimporterpro nameoftemplate="bitvalor" convertjsonnumbers2strings=yes]
PRO in Action:
total.last: 205343.02338294176MBT: 208000
BSQ: 211282.882
Mercado Bitcoin = R$ 205333.33