bikas
Currency Converter
20c801a
raw
history blame contribute delete
312 Bytes
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")