An easy to use currency converter, uses ECB data as source, able to convert from\to EUR.
Available on DockerHub:
docker pull gdassori/mcc:latest
docker run -t -p=8080:8080 gdassori/mcc
Or can be executed from sources, requires Python >= 3.6 and pip. Virtualenv is optional.
git clone https://github.com/gdassori/currencyconverter.git
cd currencyconverter
virtualenv -p python3.6 venv # optional
. venv/bin/activate # optional
pip install -r requirements.txt
python -m src.app
- Method:
GET
- Endpoint:
/convert
- Arguments:
amount
: 10src_currency
: EURdest_currency
: USDreference_date
: 2019-11-08
With curl
curl "http://localhost:8080/convert?amount=10&\
&dest_currency=USD&src_currency=EUR&reference_date=2019-11-08"
would return:
{"amount": "11.03", "currency": "USD"}