mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-06-09 00:05:04 +08:00
* bump * Initial function write * Delete this line from yaml * Changed all the main things - Need help on tests * pylint errors * Tests v0 * Tests v1 * Tests v2 --------- Co-authored-by: andrewkenreich <andrew.kenreich@gmail.com>
949 B
Vendored
949 B
Vendored
Update list of coins
Coingecko
-
File:
/data/coingecko_coins.json -
File:
/data/coingecko_categories.json -
Code:
new_categories = {}
for category in categories:
new_categories[category['category_id']] = category['name']
Coinpaprika
- File:
/data/coinpaprika_coins.json - Endpoint: https://api.coinpaprika.com/v1/coins
Defillama
- File:
/data/defillama_dapps.json - Endpoint: https://api.llama.fi/protocols
import request
API_URL = "https://api.llama.fi"
url = f"{API_URL}/protocols"
r = request(url)
data = r.json()
protocols = {}
for protocol in data:
protocols[protocol['slug']] = protocol['name']