Bitcoin Forum
December 15, 2017, 05:37:40 AM *
News: Latest stable version of Bitcoin Core: 0.15.1  [Torrent].
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: Support for more currency exchanges  (Read 1240 times)
jim618
Legendary
*
Offline Offline

Activity: 1708



View Profile WWW
January 28, 2013, 09: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

MultiBit HD   Lightweight desktop client.                    Bitcoin Solutions Ltd   Bespoke software. Consultancy.
1513316260
Hero Member
*
Offline Offline

Posts: 1513316260

View Profile Personal Message (Offline)

Ignore
1513316260
Reply with quote  #2

1513316260
Report to moderator
1513316260
Hero Member
*
Offline Offline

Posts: 1513316260

View Profile Personal Message (Offline)

Ignore
1513316260
Reply with quote  #2

1513316260
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1513316260
Hero Member
*
Offline Offline

Posts: 1513316260

View Profile Personal Message (Offline)

Ignore
1513316260
Reply with quote  #2

1513316260
Report to moderator
1513316260
Hero Member
*
Offline Offline

Posts: 1513316260

View Profile Personal Message (Offline)

Ignore
1513316260
Reply with quote  #2

1513316260
Report to moderator
jim618
Legendary
*
Offline Offline

Activity: 1708



View Profile WWW
January 29, 2013, 11: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






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

Activity: 21



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

Looks great, Jim.

Bitrated user: TimMolter.
jim618
Legendary
*
Offline Offline

Activity: 1708



View Profile WWW
January 29, 2013, 12:50:53 PM
 #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
Legendary
*
Offline Offline

Activity: 1708



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:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!