qalculate-android icon indicating copy to clipboard operation
qalculate-android copied to clipboard

Support currency conversion rates

Open JJRcop opened this issue 3 years ago • 3 comments

Qalculate! supports fetching currency rates from the internet and permits queries like 1 USD to EUR, or even 1$/gallon to €/liter. It would be nice to have that function in this mobile app.

JJRcop avatar Apr 08 '22 15:04 JJRcop

Totally agree! For that, libcurl has to be built and support for fetching the exchange rates must be enabled when building libqalculate. I created an issue for that in libqalculate-android: https://github.com/mr-kenhoff/libqalculate-android/issues/4

jherkenhoff avatar Apr 10 '22 18:04 jherkenhoff

This is technically separate from including libcurl, but if possible I'd make sure the exratescommand works so you can refresh on demand

JJRcop avatar Apr 10 '22 21:04 JJRcop

In the interest of collaboration, here is the code in use by my own app: maculate: https://github.com/toastclub/maculate/blob/f3e6f840510c149fa1fea6f817a32842829687e8/libqalc/Qalculate/main.cpp#L116-L164

I know how hard it is to read the code of qalculate sometimes so I thought this could be a good starting point. (I'm toying with RIIR)

One oddity I've not figured out yet is that bitcoin is inversed but nothing else is as far as I can tell.

My next challenge is to figure out how to reimplement plotting...

boehs avatar Dec 02 '24 04:12 boehs