A simple Python-based currency converter that uses the ExchangeRate API to:
- Fetch live exchange rates for all currencies
- Convert specific currency pairs (e.g., EUR → GBP)
- Retrieve historical exchange rate data for a given date
This tool uses the following libraries:-
- python-dotenv
- requests
1. Install Python from python.org if you don't have it.
2.1 navigate to directory
cd "#1567_CURRENCY_CONVERTER"2.2 then install the requirements
pip install -r requirements.txtcreate a .env file by copying .env.example and substituting your api key
cp .env.example .envpython currency_converter.py- list all live exchange rates for a currency
- conversion between currencies using live exchange rate
- list historical exchange rates for a currency