curl -X "GET" "http://localhost:8000/api/rates?from=EUR&to=RUB&value=5000"{"value": 400000}- OpenExchangerRates — API for currency rates
- FastAPI - Web framework
- AioHttp - Library for async requests
- Attrs - Like python dataclasses, works better with cattrs
- Cattrs - library for structuring and unstructuring data
Clone repository
git clone git@github.com:didhatLab/currency_api.git
cd currency_apiAfter build and run docker container
docker build -t currency_api .
docker run -e open_exchange_app_id='your_open_exchange_app_id' -p 8000:8000 currency_api- Add request caching in
Redisfrom open exchanger - Add e2e tests