Files
OpenBB/openbb_terminal/cryptocurrency/data
2022-03-28 21:41:00 -04:00
..
2022-03-28 21:41:00 -04:00
2022-03-28 21:41:00 -04:00
2022-03-28 21:41:00 -04:00
2022-03-28 21:41:00 -04:00
2022-03-28 21:41:00 -04:00
2022-03-28 21:41:00 -04:00
2022-03-28 21:29:23 -04:00
2022-03-28 21:41:00 -04:00
2022-03-28 21:29:23 -04:00

Update list of coins

Coingecko

new_categories = {}
for category in categories:
    new_categories[category['category_id']] = category['name']

Coinpaprika

Defillama

import requests
API_URL = "https://api.llama.fi"
url = f"{API_URL}/protocols"
r = requests.get(url)
data = r.json()
protocols = {}
for protocol in data:
    protocols[protocol['slug']] = protocol['name']