import requests class CoinAPI: def __init__(self, api_key): self.api_key = api_key self.base_url = 'https://rest.coinapi.io/v1/'