Author

Topic: Support for more currency exchanges (Read 1284 times)

legendary
Activity: 1708
Merit: 1066
January 30, 2013, 08:17:54 AM
#5
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).
legendary
Activity: 1708
Merit: 1066
January 29, 2013, 07:50:53 AM
#4
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.
newbie
Activity: 21
Merit: 0
January 29, 2013, 07:37:11 AM
#3
Looks great, Jim.
legendary
Activity: 1708
Merit: 1066
January 29, 2013, 06:44:50 AM
#2
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





legendary
Activity: 1708
Merit: 1066
January 28, 2013, 04:54:18 PM
#1
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:



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
Jump to: