Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
import requests
from datetime import datetime
url = ",likecoin&vs_currencies=usd"
res = requests.get(url)
data = res.json()
like_usd = data["likecoin"]["usd"]
osmo_usd = data["osmosis"]["usd"]
now =[:16].replace("T", " ")
result = f"LIKE: {like_usd}\nOSMO: {osmo_usd}\n({now})"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment