InputStream is = KrakenAccountJSONTest.class.getResourceAsStream("/account/example-tradevolume-data.json");
// Use Jackson to parse it
ObjectMapper mapper = new ObjectMapper();
KrakenTradeVolumeResult krakenResult = mapper.readValue(is, KrakenTradeVolumeResult.class);
KrakenTradeVolume tradeVolume = krakenResult.getResult();
assertThat(tradeVolume.getCurrency()).isEqualTo("ZUSD");
assertThat(tradeVolume.getVolume()).isEqualTo("451.3040");
Map<String, KrakenVolumeFee> fees = tradeVolume.getFees();
KrakenVolumeFee fee = fees.get("XXBTZUSD");
assertThat(fee.getFee()).isEqualTo("0.3000");
assertThat(fee.getMinFee()).isEqualTo("0.0500");
assertThat(fee.getMaxFee()).isEqualTo("0.3000");
assertThat(fee.getNextFee()).isEqualTo("0.2900");