OpenOrders openOrders = BTCTradeAdapters.adaptOpenOrders(btcTradeOrders);
List<LimitOrder> openOrderList = openOrders.getOpenOrders();
assertEquals(2, openOrderList.size());
LimitOrder order = openOrderList.get(0);
assertEquals(CurrencyPair.LTC_CNY, order.getCurrencyPair());
assertEquals("16636810", order.getId());
assertEquals(new BigDecimal("1.01"), order.getLimitPrice());
// 2014-09-14 12:48:53 Asia/Shanghai
assertEquals(1410670133000L, order.getTimestamp().getTime());
assertEquals(new BigDecimal("0.1"), order.getTradableAmount());
assertEquals(OrderType.BID, order.getType());
order = openOrderList.get(1);
assertEquals(CurrencyPair.BTC_CNY, order.getCurrencyPair());
assertEquals("16634460", order.getId());
assertEquals(new BigDecimal("10.01"), order.getLimitPrice());
// 2014-09-14 12:31:46 Asia/Shanghai
assertEquals(1410669106000L, order.getTimestamp().getTime());
assertEquals(new BigDecimal("0.01"), order.getTradableAmount());
assertEquals(OrderType.BID, order.getType());
}