timmolter/XChange — pull request #744 by rafalkrupinski (2014-11-03 18:30:25+00:00)
Title: Introduce extension interfaces for PollingTradeService#getTradeHistory

Resolve #718 by adding 2 interfaces to be optionally implemented by PollinaTradeService implementations.

Clients can monitor trade history with code similar to this:

if(pts instanceof SinceTradeHistoryProvider)
userTrades = ((SinceTradeHistoryProvider)pts).getTradeHostory(lastTrade);
else if(pts instanceof LimitedTradeHistoryProvider)
userTrades = ((LimitedTradeHistoryProvider)pts).getTradeHistory(count);
else
userTrades = pts.getTradeHistory()