ruanbekker
1/22/2018 - 6:32 PM

Checks the Last 1H and last 24H Data of Cardano on Coindata

Checks the Last 1H and last 24H Data of Cardano on Coindata

#!/usr/bin/python

import requests
import json

baseurl = 'https://coindata.co.za/api.php'
r = requests.get(baseurl).content
j = json.loads(r)

for crypto in j:
    if crypto["Name"] == "Cardano":
        print("1H: {}, 24H: {}".format(crypto["Change 1h"], crypto["Change 24h"]))