Package com.xeiam.xchange.cexio.dto.trade.CexIOOrder

Examples of com.xeiam.xchange.cexio.dto.trade.CexIOOrder.Type


      final List<CexIOOrder> openOrders = new ArrayList<CexIOOrder>();
      if (openOrdersNode.isArray()) {
        for (JsonNode openOrderNode : openOrdersNode) {
          final long id = openOrderNode.path("id").asLong();
          final long time = openOrderNode.path("time").asLong();
          final Type type = Type.valueOf(openOrderNode.path("type").asText());
          final BigDecimal price = new BigDecimal(openOrderNode.path("price").asText());
          final BigDecimal amount = new BigDecimal(openOrderNode.path("amount").asText());
          final BigDecimal pending = new BigDecimal(openOrderNode.path("pending").asText());

          openOrders.add(new CexIOOrder(id, time, type, price, amount, pending, null));
View Full Code Here

TOP

Related Classes of com.xeiam.xchange.cexio.dto.trade.CexIOOrder.Type

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.