I see that it is possible to 'setServerLogLevel()' and that there are some things in EClientSocket that
might be useful in finding out about what happened to an order.
Here is the disconnect method
A call of that replaces the block of code that is after "if (!pseudotrade)";
it is also called when RandomBot returns something other than OK, right before logger.fatal() is called.
might be useful in finding out about what happened to an order.
Here is the disconnect method
Code:
public void disconnect() {
try {
logger.log("disconnecting\n");
client.eDisconnect();
Thread.sleep(1000); // BUG? wait for disconnect?
} catch (Exception e0) {
//BUG? Is it something other than a socket closed exception?
//BUG? Is 'Exception' too broad?
logger.log("disconnect caught %s\n", e0);
//BUG: printStackTrace() untested
e0.printStackTrace();
}
}
it is also called when RandomBot returns something other than OK, right before logger.fatal() is called.
