Created
October 28, 2021 04:12
-
-
Save yuyasugano/e97b2b6b29803be02bcf90ca5b98542f to your computer and use it in GitHub Desktop.
CoinMetrics Metrics
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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