Post
Topic
Board Project Development
Re: Bitcoin Windows gadget which displays BTC and currency amounts
by
Domchi
on 15/03/2014, 22:03:15 UTC
Thanks for that, it sort of works in the way you explained it, but the conversion via Yahoo finance is different, for example my current wallet balance is 0.03 BTC which off the BitPay ticker price/rate is about £12 run it through the yahoo conversion and it comes out at £7 and some change, so basically i have a £5 discrepancy Sad

Of course, that's because you're looking at two different exchange rates - Bitpay BTC-USD and then Yahoo! USD-GBP compared to BitPay BTC-GBP. Or if you're looking at Bitstamp and Bitpay, of course the two will have different rate - rate differences between BTC exchanges have been in the hundreds of dollars. As soon as you're not looking at a single currency pair on a single exchange, you're going to have differences.

Also the labels are tied to the currency selected, so i can't display BAL for wallet balance/Value without screwing up the secondary's conversion code, because they are not 100% seperate, but thanks for trying Smiley

Don't try to put too many things in one gadget instance, the idea behind it is to really display only a single number after all. Smiley Use more than one instance to look at several things at once.

Also, i've found that now via LocalBitcoins site i can trade in GBP Smiley

BTW do you know that LocalBitcoins has API as well? For example, you can use https://localbitcoins.com/bitcoinaverage/ticker-all-currencies/ as exchange URL and then perhaps json.GBP.rates.last as JSON key.