Package com.xeiam.xchange.coinfloor.dto.streaming.account

Examples of com.xeiam.xchange.coinfloor.dto.streaming.account.CoinfloorBalances


  public Map<String, Object> adaptBalances(String data) throws ExchangeException {

    Map<String, Object> resultMap = new HashMap<String, Object>();

    CoinfloorBalances rawRetObj;
    try {
      rawRetObj = streamObjectMapper.readValue(data, CoinfloorBalances.class);
    } catch (IOException e) {
      throw new ExchangeException("JSON parse error", e);
    }
    resultMap.put("raw", rawRetObj);

    List<Wallet> wallets = new ArrayList<Wallet>();
    List<CoinfloorAssetBalance> funds = rawRetObj.getBalances();

    for (CoinfloorAssetBalance assetBalancePair : funds) {
      String currency = assetBalancePair.getAsset().toString();
      BigDecimal balance = assetBalancePair.getBalance();
View Full Code Here

TOP

Related Classes of com.xeiam.xchange.coinfloor.dto.streaming.account.CoinfloorBalances

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.