How Do You Use Nomics to a Retrieve Cryptocurrency Prices?

Problem scenario
You want to use Nomics to retrieve cryptocurrency prices. What do you do?

Prerequisite
Get an API key. It is free here: https://p.nomics.com/pricing#free-plan
(You do not need to provided credit card information to obtain one.)

Procedures
Run this Python program but replace YOUR_KEY_HERE with the key:

import requests
resp = requests.get("https://api.nomics.com/v1/prices?key=YOUR_KEY_HERE&format=json")
for item in resp.json():
if item['currency'] in ["BTC", "ETH", "XRP", "LTC", "XLM", "XMR"]:
print(item)

If you want to earn cryptocurrency by just learning more, try Coinbase; it is ideal for Americans. For Europeans, this company Iconomi.com can allow you to buy crypto or learn more.

Leave a comment

Your email address will not be published. Required fields are marked *