stack_wallet icon indicating copy to clipboard operation
stack_wallet copied to clipboard

Add custom exchange rate for BCH in ARS

Open ianblas opened this issue 2 years ago • 2 comments

Hello!

I have been working in the Bitcoin Cash Argentina community to promote the adoption of Bitcoin Cash as a medium of exchange. We are focusing mainly in brick and mortar shops, but we have plans to reach more users. We promote the usage of various tools, including Stack Wallet.

Due to problems in the exchange rates caused by local restrictions, we had to develop a custom system to enable users (both customers and merchants) to use the Argentine peso as a reference. The price displayed by most websites is incorrect and not the price a normal user would have to pay to acquire Bitcoin Cash.

The rule is the following: We take the US dollar value in ARS from https://yadio.io/simple.html API and then multiply it by the Bitcoin Cash value in dollars. Essentially:

BCH price (in USD) × USD price (in ARS) = BCH price (in ARS)

I know that adding a custom exchange just for Argentina might be not standard. We try to deal with the restrictions the best that we can, and I hope this change might help in the work we are doing.

Thanks in advance!

ianblas avatar May 21 '23 03:05 ianblas

From Electron Cash:

https://github.com/Electron-Cash/Electron-Cash/pull/2326/files

sandakersmann avatar Nov 01 '23 21:11 sandakersmann

Another alternative is use the CryptoCompare API, that get the right value, and also have other advantages:

  • That endpoint it's free to use and they said it will keep that way.
  • They do not use cloudflare.
  • Get a better price for any FIAT (including ARS), because it does not use USD as intermediary coin.
  • It's not owned by a big corporation with unknown interests.

eloyesp avatar Jun 07 '24 23:06 eloyesp