wallet icon indicating copy to clipboard operation
wallet copied to clipboard

Add setting to choose bitcoin exchange rate source (from a list of exchanges)

Open KeyJockey opened this issue 11 years ago • 7 comments

I can't figure out exactly where Copay is getting its current fiat-price value for bitcoin - doesn't seem to exactly correspond with any of the main index prices (like preev.com, bitcoinaverage, winkdex etc).

This is a problem when trading BTC person-to-person as the dollar-value a customer is using isn't always exactly the same dollar value as entered in Copay's SEND box: it is very convenient having the choice of switching between dollar value and bitcoin amount, but it would be very helpful too if Copay had an option to allow user-choice from a list of specific bitcoin price indexes.

KeyJockey avatar Nov 02 '15 15:11 KeyJockey

+1

xbtdev avatar Nov 05 '15 06:11 xbtdev

+1

isocolsky avatar Nov 05 '15 13:11 isocolsky

+1

Jacobbubble avatar Mar 04 '16 09:03 Jacobbubble

In the meantime, until this is done (?) can the devs here explain exactly how Copay currently is calculating dollar value from wallet bitcoin balance? It'd be helpful just as a reference to which index or whatever the number is coming from...

KeyJockey avatar Mar 04 '16 16:03 KeyJockey

Copay currently uses Bitpay's API for exchange rates:

https://bitpay.com/bitcoin-exchange-rates

The rates are refreshed every hour or so.

Note that the rats are only meant as gross reference. Using it precisely will require a different approach (for example storing the exact rate for each transaction).

matiu avatar Mar 04 '16 20:03 matiu

@matiu Can we add the option to choose what exchange the fiat value is pulled from? I realize that some exchanges are fiat specific like USD/BTC, EUR/BTC, MXN/BTC, but if it was pulled from a user selected exchange then it could be more in line with what the user's expectations are.

Jacobbubble avatar Mar 04 '16 23:03 Jacobbubble

Sure you can. Just make sure you use a exchange rate API that provides historical data. PR are always welcomed.

On Fri, Mar 4, 2016 at 8:43 PM Jacob J Burrell [email protected] wrote:

@matiu https://github.com/matiu Can we add the option to choose what exchange the fiat value is pulled from? I realize that some exchanges are fiat specific like USD/BTC, EUR/BTC, MXN/BTC, but if it was pulled from a user selected exchange then it could be more in line with what the user's expectations are.

— Reply to this email directly or view it on GitHub https://github.com/bitpay/copay/issues/3382#issuecomment-192526064.

matiu avatar Mar 05 '16 00:03 matiu