criado ficheiro 'constants.py' para isolar chave API para CoinGecko

This commit is contained in:
2024-06-26 10:56:24 +01:00
parent f7fb66c356
commit dbe9a8c68c
6 changed files with 13 additions and 12 deletions

View File

@ -1,13 +1,6 @@
import modulos.coingecko_api as cgapi
import time
APY_KEY = "CG-K5RS5VXsdFDip2UvY3z8VjQP"
cgapi.headers = {
'accept': 'application/json',
'x-cg-demo-api-key': APY_KEY,
}
criptomoeda: str = 'bitcoin'
vs_currency: str = 'eur'
dias: str = '30'