Skip to content

Instantly share code, notes, and snippets.

@yuyasugano
Created October 28, 2021 04:12
Show Gist options
  • Save yuyasugano/e97b2b6b29803be02bcf90ca5b98542f to your computer and use it in GitHub Desktop.
Save yuyasugano/e97b2b6b29803be02bcf90ca5b98542f to your computer and use it in GitHub Desktop.
CoinMetrics Metrics
import json
import requests
headers = {'Content-Type': 'application/json'}
url = "https://community-api.coinmetrics.io/v2/metrics"
m = requests.get(url, headers=headers)
metrics = json.loads(m.text)['metrics']
print("Metrics: {}".format(len(metrics)))
Metrics: 145
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment