Package com.xeiam.xchange.justcoin.dto.trade.out

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


    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

Related Classes of com.xeiam.xchange.justcoin.dto.trade.out.JustcoinOrder

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.