INATrace / backend

GNU Affero General Public License v3.0
5 stars 3 forks source link

exchangeratesapi.io moved #3

Open carstenblt opened 1 year ago

carstenblt commented 1 year ago

You cannot register an account directly with exchangeratesapi.io anymore - apparently they moved to apilayer.com. They still offer a free version with 250 requests/month though: https://apilayer.com/marketplace/exchangerates_data-api

Unfortunately an API key from apilayer doesn't work on the old API endpoint. On first glance the API seems to be the same, though you have to pass the apikey in the request header.

I expect old API keys to not work with the new endpoint, so to not break it for everyone you'd have to add a switch to select between the two endpoints.

Right now this is unfortunately a blocker as even the initial db migrations fail to retrieve currency symbols.