>My first thought is that it works as it should, because otherwise we
> would see a lot of NullPointerException on the line:
> traderAssistant.getStrategy(id).getMarketBook().getMarketDepth().reset();
Generally there should always be an equal amount or more strategies
than market books, hense why you don't see the problem.
> However, your understanding is correct in that error(int id, ...) is called
> back with the id that matches the one in the call socket.reqMktDepth(int id,
> ...), so I'll investigate.
Code should be, I believe:
if (errorCode == 317) {// Market depth data has been reset
traderAssistant.getMarketBook(id).getMarketDepth
().reset();
eventReport.report("Market depth data has been
reset.");
}