Package com.xeiam.xchange.hitbtc.dto.account

Examples of com.xeiam.xchange.hitbtc.dto.account.HitbtcBalance


  public static AccountInfo adaptAccountInfo(HitbtcBalance[] accountInfoRaw) {

    List<Wallet> wallets = new ArrayList<Wallet>(accountInfoRaw.length);

    for (int i = 0; i < accountInfoRaw.length; i++) {
      HitbtcBalance balance = accountInfoRaw[i];

      Wallet wallet = new Wallet(balance.getCurrencyCode(), balance.getCash().add(balance.getReserved()), balance.getCurrencyCode());
      wallets.add(wallet);

    }
    return new AccountInfo(null, wallets);
  }
View Full Code Here

TOP

Related Classes of com.xeiam.xchange.hitbtc.dto.account.HitbtcBalance

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.