BitfinexLevel lastLevel = levels[levels.length - 1];
assertEquals(lastLevel.getTimestamp().multiply(new BigDecimal(1000l)).longValue(), container.getTimestamp());
assertEquals(container.getLimitOrders().size(), levels.length);
for (int i = 0; i < levels.length; i++) {
LimitOrder order = container.getLimitOrders().get(i);
long expectedTimestampMillis = levels[i].getTimestamp().multiply(new BigDecimal(1000l)).longValue();
assertEquals(levels[i].getAmount(), order.getTradableAmount());
assertEquals(expectedTimestampMillis, order.getTimestamp().getTime());
assertEquals(levels[i].getPrice(), order.getLimitPrice());
}
}