criado ficheiro 'constants.py' para isolar chave API para CoinGecko
This commit is contained in:
@ -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/'
|
||||
|
||||
Reference in New Issue
Block a user