import requests BASE_URL = "https://api.frankfurter.app" def get_currencies(): response = requests.get(f"{BASE_URL}/currencies") if response.status_code == 200: currencies = response.json() return list(currencies.keys()) else: raise Exception("Failed to fetch currencies")