Examples of JustcoinOrder


Examples of com.xeiam.xchange.justcoin.dto.trade.out.JustcoinOrder

      orderCreatedAt = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS").parse("2014-01-24T05:25:47.774Z");
    } catch (ParseException e) {
      e.printStackTrace();
    }
    justcoinOrder =
        new JustcoinOrder(id, JustcoinUtils.getApiMarket(tradableIdentifier, transactionCurrency), "ask", price, amount, BigDecimal.valueOf(0.02000), BigDecimal.ZERO, BigDecimal.ZERO, orderCreatedAt);
  }
View Full Code Here

Examples of com.xeiam.xchange.justcoin.dto.trade.out.JustcoinOrder

    final InputStream is = JustcoinOrdersTest.class.getResourceAsStream("/trade/example-orders-data.json");

    // Use Jackson to parse it
    final ObjectMapper mapper = new ObjectMapper();
    final JustcoinOrder[] justcoinOrders = mapper.readValue(is, new JustcoinOrder[0].getClass());
    final JustcoinOrder deserializedOrder = justcoinOrders[0];

    assertThat(deserializedOrder).isEqualTo(justcoinOrder);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.