mtotschnig / MyExpenses

GPL licenced Android Expense Tracking App
http://www.myexpenses.mobi/
GNU General Public License v3.0
805 stars 217 forks source link

Exchange rates for crypto currencies #893

Closed Farzat07 closed 1 year ago

Farzat07 commented 2 years ago

Currently it is possible to use cryptocurrency accounts by adding them as "custom" currencies. However, the automatic rate updates don't apply to these custom currencies, so it would be nice if this is supported.

This is especially important in the case of floating currencies such as BTC and XMR (the ones I use), as their prices fluctuate heavily everyday.

mtotschnig commented 2 years ago

I was just looking into the discussion about crypto currencies on https://github.com/Formicka/exchangerate.host/issues and there are reports that the reported values are incorrect. So I am wondering if simply fetching rates from exchangerate.host adds value to My Expenses.

Farzat07 commented 2 years ago

How about using a separate api for crypto, such as cryptowatch's api?

https://docs.cryptowat.ch/rest-api/

I didn't try it but seems decent. Also doesn't need an account or keys for simple usage. Might be even usable for fiat currencies?

If keys are not an issue, I recommend CoinAPI. I have been using it for a while and it works great both for crypto and fiat.

https://www.coinapi.io/

On 22/05/11 12:09am, Michael Totschnig wrote:

I was just looking into the discussion about crypto currencies on https://github.com/Formicka/exchangerate.host/issues and there are reports that the reported values are incorrect. So I am wondering if simply fetching rates from exchangerate.host adds value.

-- Reply to this email directly or view it on GitHub: https://github.com/mtotschnig/MyExpenses/issues/893#issuecomment-1123265031 You are receiving this because you authored the thread.

Message ID: @.***>

mtotschnig commented 2 years ago

Thank you for the pointers. I will look into them.

mtotschnig commented 1 year ago

I am adding CoinApi as exchange rate provider. Users will need to get their own API key, and add it in the app's settings, as is already the case for openexchangerates.