Skip to content

Instantly share code, notes, and snippets.

@nrese
Created June 5, 2020 16:54
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save nrese/4224fd0f97c5391248cccafb09e57252 to your computer and use it in GitHub Desktop.
Save nrese/4224fd0f97c5391248cccafb09e57252 to your computer and use it in GitHub Desktop.
import urllib.request
url = "https://api.nomics.com/v1/currencies/ticker?key=demo-26240835858194712a4f8cc0dc635c7a&ids=BTC,ETH,XRP&interval=1d,30d&convert=EUR"
print(urllib.request.urlopen(url).read())
[
{
"currency": "BTC",
"id": "BTC",
"price": "8451.36516421",
"price_date": "2019-06-14T00:00:00Z",
"price_timestamp": "2019-06-14T12:35:00Z",
"symbol": "BTC",
"circulating_supply": "17758462",
"max_supply": "21000000",
"name": "Bitcoin",
"logo_url": "https://s3.us-east-2.amazonaws.com/nomics-api/static/images/currencies/btc.svg",
"market_cap": "150083247116.70",
"transparent_market_cap": "150003247116.70",
"rank": "1",
"high": "19404.81116899",
"high_timestamp": "2017-12-16",
"1d": {
"price_change": "269.75208019",
"price_change_pct": "0.03297053",
"volume": "1110989572.04",
"volume_change": "-24130098.49",
"volume_change_pct": "-0.02",
"market_cap_change": "4805518049.63",
"market_cap_change_pct": "0.03",
"transparent_market_cap_change": "4800518049.00",
"transparent_market_cap_change_pct": "0.0430"
{
"grade": "B",
"volume": "15856762.85",
"volume_change": "-6854329.88",
"volume_change_pct": "-0.30"
}
]
}
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment