A question received recently, was how can one get exchange rates using Linx? https://linx.software
There are a lot of exchange rate API’s available, some free, some not. For this example, I’m using a free API from the European Central Bank. Because it is free, and no registration is required, I cannot vouch for the accuracy of the data. I expect that it might be a daily or hourly rate. https://exchangeratesapi.io/
As this is quite an easy API to use, one can simply use a single CallRESTWebService function (Documentation), and get the info you need. To make it a bit more interesting, I’ve also created the custom type for the response from API and used it to write the Exchange rate to a text file.
Download the solution here: FXRates.lsoz (7.3 KB)