Skip to content

Make FIAT rates source explicit and selectable (enable Cryptocompare) to fix ARS rate #640

@eloyesp

Description

@eloyesp

Currently it seems that the source used for exchange rates was set on #159 to the Spark API, that use BitcoinAverage as source, but that is not explicit on the application and there is no setting to select another source.

The problem is that BitcoinAverage (and most other rates APIs) does not work for currencies that do not have a simple exchange rate with USD, because they only use the DASH/USD exchange rate and cross that data with FIAT/FIAT that do not work for complex cases.

Current Behavior example

Currently, DASH price is 21_356 ARS on Spark (and bitcoinAverage and CoinGecko), while CryptoCompare does get 35_259 ARS. The most correct value is the later. As you can see, the difference is not minor and makes that exchange rate unusable on the current context.

The source of the problem is that the exchange rate calculated by bitcoin average is based on the dash price of 235 USD, using an exchange rate of USD/ARS of 90.87 (what is known as the official rate), but that price is not accessible on the market, so the real value is closer to 140 ARS. You can see those different values (there are 9 different exchange rates to see) on this newspaper.

CryptoCompare does get it right because it fallback to the exchange rate of BTC/ARS so it gets a good value.

Expected Behavior

Make CryptoCompare the default source for ARS (while there might be other cases when that is a better default) and make it possible for the user to:

  1. Know the source of the data used
  2. Select a different source

I've raised the same issue on https://github.com/bitcoin-wallet/bitcoin-wallet/issues/627 and I've already contacted BitcoinAverage and CoinGecko and they do not want to care about this issue.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions