public static AccountInfo adaptAccountInfo ( BitcoindeAccountWrapper bitcoindeAccount ) { // This adapter is not complete yet BitcoindeBalance btc = bitcoindeAccount . getData ( ) . getBalances ( ) . getBtc ( ) ; BitcoindeBalance eth = bitcoindeAccount . getData ( ) . getBalances ( ) . getEth ( ) ; BigDecimal eur = bitcoindeAccount . getData ( ) . getFidorReservation ( ) . getAvailableAmount ( ) ; Balance btcBalance = new Balance ( Currency . BTC , btc . getAvailableAmount ( ) ) ; Balance ethBalance = new Balance ( Currency . ETH , eth . getAvailableAmount ( ) ) ; Balance eurBalance = new Balance ( Currency . EUR , eur ) ; Wallet wallet = new Wallet ( btcBalance , ethBalance , eurBalance ) ; return new AccountInfo ( wallet ) ; }
Adapt a org . knowm . xchange . bitcoinde . dto . marketdata . BitcoindeAccount object to an AccountInfo object .