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.00303100, volume=10239.018
  • Base:BitFinex, price=0.00302790, volume=1086.87131333
  • Base:Bittrex, price=0.00298711, volume=18.37804269
  • Base:Cex.io, price=0.00304000, volume=60.14626829
  • Base:Coinbase Pro, price=0.00303339, volume=689.79410426
  • Base:Exmo, price=0.00303248, volume=1529.80075609
  • Base:Kraken, price=0.00303000, volume=435.64158153
  • Base:Poloniex, price=0.00302458, volume=281.0841614
  • Base:YoBit, price=0.00307616, volume=442611.65572477