Skip to content

Conversation

@cathaloc
Copy link

Closes #3

Adds support for currencies other than USD and EUR by using USD as an intermediary currency.

For example, if CAD is selected, the exchange rate will be calculated by multiplying the BTC->USD rate by the USD->CAD rate.

I've tested the result against my own account (currently have a balance of ~ CAD$70, and I can confirm that the amount reported in Home Assistant matches what's reported in the NiceHash UI, to the cent. So it's likely that NiceHash is using the exact same formula.

One downside of my implementation is that the USD currency icon will be used for all non-EUR currencies.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

alternative currencies were previously supported... weren't they?

1 participant