Bitcoin Forum

Other => MultiBit => Topic started by: jim618 on January 28, 2013, 09:54:18 PM



Title: Support for more currency exchanges
Post by: jim618 on January 28, 2013, 09:54:18 PM
I have started the integration work with Tim Molter's XChange v1.4.0 which adds more currency exchanges.

Here is a screen shot with USD rates from CampBX and MtGox:

https://multibit.org/postImages/exchange1.png

For the currency conversions used in the rest of MultiBit the 'Last' rate is used from the top most exchange. (There is a reminder about this on the Preferences page). Hence in the screen shot above it would be the CampBX rate of 18.5 USD = 1 BTC.

XChange now has support for half a dozen exchanges but I will probably only get a few added in this first pass. Some of the others need a bit more work to support in MultiBit and there are other things more pressing to do.
This code will be added to the test code base first.


MtGox is the biggest exchange and the de facto standard for rates but it is good to be a bit more decentralised.

edit: oh I notice it should be CampBX, not CampBx.  I will fix that. Done


Title: Re: Support for more currency exchanges
Post by: jim618 on January 29, 2013, 11:44:50 AM
So far I have got working:

MtGox:
   USD, EUR, GBP, AUD, CAD, CHF, JPY, CNY, DKK, HKD, NZD, PLN, RUB, SEK, SGD, THB

BitcoinCentral:
   EUR

Bitstamp:
   USD

BTC-E:
   USD, EUR, RUR, LTC, NMC

RUR are Old Russian Rubles where 1000 RUR = 1 RUB. BTC-E drops the 1,000 scale factor.
Note that the LTC and NMC figures are exchanges rates - you are still sending BTC at the end of the day.


CampBX:
   USD

VirtEx
   CAD







Title: Re: Support for more currency exchanges
Post by: timmolter on January 29, 2013, 12:37:11 PM
Looks great, Jim.


Title: Re: Support for more currency exchanges
Post by: jim618 on January 29, 2013, 12:50:53 PM
Cheers Tim,

For BitcoinCharts and OpenExchangeRates I think I will add a 'Provider' column to split them out from the exchange info. They are aggregators rather than actual exchanges.  You'll be able to switch it off like the other columns.

That way:
BitcoinCharts = provider, the exchange prefix = exchange, 3 character currency code = currency

OpenExchangeRates = provider, 3 char currency code = currency

I'll leave these two for now.


Title: Re: Support for more currency exchanges
Post by: jim618 on January 30, 2013, 01:17:54 PM
I have now put the multiple exchanges code into the live MultiBit code as it appears to be working fine.

It will thus be in the next live release.

The next releases will be after bitcoinj 0.7 comes out (which is being tested at the moment).