Fixed adapters in BitVC and HitBTC

Ok that looks like it will work fine.
On Sep 23, 2014 6:40 PM, "Jonathan Heusser" <notifications@github.com>
wrote:

> In xchange-bitvc/src/main/java/com/xeiam/xchange/bitvc/BitVcAdapters.java:
>
> > @@ -102,15 +103,43 @@ private static Trade adaptTrade(BitVcTradeObject trade, CurrencyPair currencyPai
> >
> >    public static AccountInfo adaptAccountInfo(BitVcAccountInfo a) {
> >
> > -    Wallet cny = new Wallet(CNY, a.getAvailableCnyDisplay().add(a.getFrozenCnyDisplay()).subtract(a.getLoanCnyDisplay()), "available");
> > -    Wallet btc = new Wallet(BTC, a.getAvailableBtcDisplay().add(a.getFrozenBtcDisplay()).subtract(a.getLoanBtcDisplay()), "available");
> > -    Wallet ltc = new Wallet(LTC, a.getAvailableLtcDisplay().add(a.getFrozenLtcDisplay()).subtract(a.getLoanLtcDisplay()), "available");
> > -
> > +    if (a.getAvailableCny() == null) {
>
> It's possible to borrow LTC though. Perhaps we can do the following in the
> constructor
>
> ....@JsonProperty("loan_ltc", required=false) BigDecimal loanLtc....
>
> if(loanLtc == null) {
>    this.loanLtc = BigDecimal.ZERO;
> }
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/timmolter/XChange/pull/659/files#r17944312>.
>