// Use Jackson to parse it
ObjectMapper mapper = new ObjectMapper();
CryptoTradeOrders orderHistory = mapper.readValue(is, CryptoTradeOrders.class);
OpenOrders orders = CryptoTradeAdapters.adaptOpenOrders(orderHistory);
assertThat(orders.getOpenOrders()).hasSize(1);
LimitOrder order = orders.getOpenOrders().get(0);
assertThat(order.getId()).isEqualTo("5");
assertThat(order.getLimitPrice()).isEqualTo("300");
assertThat(order.getTradableAmount()).isEqualTo("1");
assertThat(order.getCurrencyPair().baseSymbol).isEqualTo(Currencies.BTC);
assertThat(order.getCurrencyPair().counterSymbol).isEqualTo(Currencies.USD);