>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.");
            }

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"JBookTrader" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/jbooktrader?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to