Exchange rates service is a simple free REST API service extension of api.exchangerate.host and api.exchangeratesapi.io APIs. This service exposes a pair of endpoints for each service extension. Responses are similar but not exact due to API restrictions:
- Api.exchangeratesapi.io timeseries is not a free service so HistoricalRates was used - a date per request with fixed base currency so relative rates had to be calculated aterwards.
- Api.exchangerate.host timeseries is a free service so it was used as alternative althoug this API was not a Take-Home Assignement requirement.
- Download and open solution in Visual Studio 2019.
- Build the solution and run the project.
- Use in browser with links:
https://localhost:5001/swagger/index.html
for Kestrel orhttps://localhost:44385/swagger/index.html
for IIS Express.