}
public BittrexDepth getBittrexOrderBook(String pair, int depth) throws IOException {
BittrexDepthResponse response = bittrex.getBook(pair, "both", depth);
if (response.getSuccess()) {
BittrexDepth bittrexDepth = response.getDepth();
return bittrexDepth;
}
else {
throw new ExchangeException(response.getMessage());
}
}