}
}
public BittrexTrade[] getBittrexTrades(String pair, int count) throws IOException {
BittrexTradesResponse response = bittrex.getTrades(pair, count);
if (response.getSuccess()) {
BittrexTrade[] bittrexTrades = response.getTrades();
return bittrexTrades;
}
else {
throw new ExchangeException(response.getMessage());
}
}