Lightweight Python client for ExchangeRate API. Get real-time currency exchange rates for 160+ currencies. No API key needed.
from exchangerate import ExchangeRateClient
client = ExchangeRateClient()
# Get all rates based on USD
rates = client.latest("USD")
print(f"1 USD = {rates['EUR']:.4f} EUR")
print(f"1 USD = {rates['GBP']:.4f} GBP")
print(f"1 USD = {rates['JPY']:.2f} JPY")
# Convert amount
amount = client.convert("USD", "EUR", 100)
print(f"$100 = €{amount:.2f}")
# Get supported currencies
currencies = client.currencies()
print(f"{len(currencies)} currencies supported")- 160+ currencies — all major and many exotic currencies
- Real-time rates — updated daily from central banks
- Currency conversion — built-in convert method
- No API key — completely free tier with generous limits
- Lightweight — only
requestsdependency
| Method | Description |
|---|---|
latest(base="USD") |
Get latest rates for base currency |
convert(from_cur, to_cur, amount) |
Convert amount between currencies |
currencies() |
List all supported currency codes |
historical(base, date) |
Get rates for a specific date |
- E-commerce price conversion
- Travel budget calculator
- Financial dashboards
- Invoice generation in multiple currencies
- Salary comparison tools
- coingecko-python — Crypto prices
- alpha-vantage-python — Stock data
- awesome-no-auth-apis — 50+ free APIs
MIT
I build production-ready scrapers, APIs, and data tools — 78+ deployed on Apify, 270+ open-source repos.
📧 spinov001@gmail.com — $250 flat rate, 48h delivery. Describe your project, get a free estimate in 2 hours.