InputStream is = KrakenAccountJSONTest.class.getResourceAsStream("/account/example-tradebalanceinfo-data.json");
// Use Jackson to parse it
ObjectMapper mapper = new ObjectMapper();
KrakenTradeBalanceInfoResult krakenResult = mapper.readValue(is, KrakenTradeBalanceInfoResult.class);
KrakenTradeBalanceInfo tradeBalanceInfo = krakenResult.getResult();
assertThat(tradeBalanceInfo.getTradeBalance()).isEqualTo("71.6310");
assertThat(tradeBalanceInfo.getMargin()).isEqualTo("0.0000");
assertThat(tradeBalanceInfo.getFreeMargin()).isEqualTo("71.6310");
assertThat(tradeBalanceInfo.getCostBasis()).isEqualTo("0.0000");
assertThat(tradeBalanceInfo.getEquity()).isEqualTo("71.6310");
assertThat(tradeBalanceInfo.getFloatingValuation()).isEqualTo("0.0000");
assertThat(tradeBalanceInfo.getUnrealizedGainsLosses()).isEqualTo("0.0000");
}