Bitcoin Forum
May 06, 2024, 04:46:15 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Support for more currency exchanges  (Read 1283 times)
jim618 (OP)
Legendary
*
Offline Offline

Activity: 1708
Merit: 1066



View Profile WWW
January 28, 2013, 09:54:18 PM
Last edit: January 29, 2013, 12:17:46 PM by jim618
 #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

MultiBit HD   Lightweight desktop client.                    Bitcoin Solutions Ltd   Bespoke software. Consultancy.
The grue lurks in the darkest places of the earth. Its favorite diet is adventurers, but its insatiable appetite is tempered by its fear of light. No grue has ever been seen by the light of day, and few have survived its fearsome jaws to tell the tale.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714970775
Hero Member
*
Offline Offline

Posts: 1714970775

View Profile Personal Message (Offline)

Ignore
1714970775
Reply with quote  #2

1714970775
Report to moderator
jim618 (OP)
Legendary
*
Offline Offline

Activity: 1708
Merit: 1066



View Profile WWW
January 29, 2013, 11:44:50 AM
Last edit: February 08, 2013, 09:50:59 PM by jim618
 #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






MultiBit HD   Lightweight desktop client.                    Bitcoin Solutions Ltd   Bespoke software. Consultancy.
timmolter
Newbie
*
Offline Offline

Activity: 21
Merit: 0



View Profile WWW
January 29, 2013, 12:37:11 PM
 #3

Looks great, Jim.
jim618 (OP)
Legendary
*
Offline Offline

Activity: 1708
Merit: 1066



View Profile WWW
January 29, 2013, 12:50:53 PM
Last edit: January 30, 2013, 09:52:40 PM by jim618
 #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.

MultiBit HD   Lightweight desktop client.                    Bitcoin Solutions Ltd   Bespoke software. Consultancy.
jim618 (OP)
Legendary
*
Offline Offline

Activity: 1708
Merit: 1066



View Profile WWW
January 30, 2013, 01:17:54 PM
 #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).

MultiBit HD   Lightweight desktop client.                    Bitcoin Solutions Ltd   Bespoke software. Consultancy.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!