While working on umsatz I had to build a tiny currency exchange rates api in go.
While the original API works fine, it clocks in at more than 400 lines of code. Let’s write a shorter version!
In this post we’ll re-build the api, in three steps:
download, parse & cache the EUR exchange rates history xml, provided by the ECB 1 add a tiny HTTP JSON API to request rates periodically update the cache with new data This will leave use with a tiny, HTTP currency exchange rates api.
Read more