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

@ -3,11 +3,11 @@
import requests
from typing import Any
from modulos.constantes import CHAVE_API_DEMO
CHAVE_API = 'CG-K5RS5VXsdFDip2UvY3z8VjQP'
headers = {
'accept': 'application/json',
'x-cg-demo-api-key': CHAVE_API
'x-cg-demo-api-key': CHAVE_API_DEMO
}
url_raiz_API = 'https://api.coingecko.com/api/v3/'