Application take rates from European Central Bank. Rates are updated every day around 16:00 CET.
Clone repository
git clone https://github.com/mato0036/CurrencyConverter.git
To run CLI application, firstly install requirements for application
pip install -r requirements.txt
Then run application
python -m CurrencyConverter --amount <amount> --input_currency <3 letter name> [--output_currency <3 letter name or symbol>]
For API application is provided Docker image for easier use.
To run API application build Docker image
docker build -t currency-converter-docker .
Then run image
docker run -p 8080:8080 currency-converter-docker
You can access application by opening in your browser
localhost:8080/currency_converter?amount=<amount>&input_currency=<3 letter name>&output_currency=<3letter name or symbol>
Parameter input_currency
is not supporting symbols of currencies, because symbols are not exclusive for currencies.
However when is symbol used for output_currency
application return all currencies, that have that symbol.
When output_currency
is not provided, application converts to all supported currencies.