xe
xe copied to clipboard
Realtime currency conversion for Elixir
After https://github.com/paulodiniz/xe/pull/11 is merged, it's necessary to update to documentation as well release a new version on hex.
Simple enough. Fetch the historical rate table by making a `GET` request in the form of `http://www.xe.com/currencytables/?from=&date=`, for example: [EUR on 2010-02-01](http://www.xe.com/currencytables/?from=EUR&date=2010-02-01). Find the relevant row by looking at `.//tr/td[1]/a/text()`...
Specifically, when you request the conversion rate to a non-existent currency like `ZWL`. As of 8f2af6f389f5904e73e00c3af7621520eaa43204, it returns `{:ok, [0.0, 0.0]}`. As of my decimal improvements it fails with a...