Skip to content

spinov001-art/exchangerate-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

exchangerate-python 💱

Lightweight Python client for ExchangeRate API. Get real-time currency exchange rates for 160+ currencies. No API key needed.

Quick Start

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")

Features

  • 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 requests dependency

API Reference

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

Use Cases

  • E-commerce price conversion
  • Travel budget calculator
  • Financial dashboards
  • Invoice generation in multiple currencies
  • Salary comparison tools

Related Projects

License

MIT


Need a Custom Tool Built?

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.

🔧 Browse 78+ ready-made tools on Apify →

About

Python client for free currency exchange rates — 160+ currencies, conversion, no API key needed

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages