Files
OpenBB/openbb_terminal/cryptocurrency/data
minhhoang1023 e59a30b188 Add crypto DD commands (#1710)
* Add github activity over time

* Create tests

* Update default days in chart command

* Add san package to poetry

* Fix tests failed

* Generate fixtures

* Fix tests failed

* Remove sanpy package and use requests instead

* Adjust index

* Add hugo server

* Fix datetime

* Update tests

* Revert "Update tests"

This reverts commit ffe03a7224.

* Fix tests

* Regenerate cassettes & filter api tokens

* Fix windows issues

* Fix PR comments

* Pass tests & fix comments
2022-04-27 19:49:30 +07:00
..
2022-04-25 18:55:40 +07:00
2022-03-29 09:46:26 -04:00
2022-03-29 09:46:26 -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']