Skip to content

Commit

Permalink
getOrderBook method now accepts an Integer for level of depth to return
Browse files Browse the repository at this point in the history
  • Loading branch information
ww3456 committed Jan 31, 2015
1 parent e2db314 commit 1221b93
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,10 @@ public OrderBook getOrderBook(CurrencyPair currencyPair, Object... args) throws
Object arg0 = args[0];
if (arg0 instanceof Long) {
count = (Long) arg0;
} else if (arg0 instanceof Integer) {
count = (Integer) arg0;
} else {
throw new ExchangeException("args[0] must be of type Long!");
throw new ExchangeException("args[0] must be of type Long or Integer");
}
}

Expand Down

0 comments on commit 1221b93

Please sign in to comment.