API: api.cryptonator.com

Challenge: Get data from https://api.cryptonator.com/api/full/dash-btc. Unfortunaletly this API requests more than a simple and pure http-request.
Solution: Use curl.
Shortcode with twig:
[jsoncontentimporterpro url=https://api.cryptonator.com/api/full/dash-btc method=curlget convertjsonnumbers2strings=yes parser=twig] {{ticker.base}}
<ul>{% for m in ticker.markets %}
<li>Base:{{m.market}}: price={{m.price}}, volume={{m.volume}}</li>
{% endfor %}</ul> [/jsoncontentimporterpro]
In Action: DASH
  • Base:Binance, price=0.00391700, volume=19842.614
  • Base:BitFinex, price=0.00392590, volume=1340.67853556
  • Base:Cex.io, price=0.00397900, volume=18.3663457
  • Base:Coinbase Pro, price=0.00392227, volume=1066.55715955
  • Base:Exmo, price=0.00392685, volume=577.45907882
  • Base:Kraken, price=0.00392000, volume=491.00139457
  • Base:Poloniex, price=0.00392684, volume=214.63177591
  • Base:YoBit, price=0.00394196, volume=280863.67027618