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.00435900, volume=18759.388
  • Base:BitFinex, price=0.00436130, volume=1625.21164014
  • Base:Bittrex, price=0.00436572, volume=93.29456933
  • Base:Cex.io, price=0.00433000, volume=12.99838402
  • Base:Coinbase Pro, price=0.00435073, volume=994.10266408
  • Base:Exmo, price=0.00435783, volume=1023.00495338
  • Base:Kraken, price=0.00436000, volume=1460.28853548
  • Base:Poloniex, price=0.00436152, volume=420.74386395
  • Base:YoBit, price=0.00440281, volume=220673.16619842