UnitfulForex.jl — foreign exchange rates as Unitful.jl units

https://github.com/spatil47/UnitfulForex.jl

This is a tiny script which automatically creates Unitful.jl units from foreign exchange rates published at http://exchangeratesapi.io/.

I’m still quite new to Julia. I’d like to turn this script into an actual package, with more options for exchange rate data sources, historical rate selection, etc. A while back, I discovered the UnitfulCurrency.jl package, and much more recently discovered the JuliaFinance package—it might be worth it to rewrite the script/package around these packages.

Anyway, I hope someone finds this useful.

5 Likes

I made a small package for calculations with currency amounts and exchange rates which goes into a similar direction - maybe this is helpful for you:

https://github.com/lungben/CurrencyAmounts.jl

3 Likes