//
if (order instanceof LimitOrder) {
LimitOrder lo = (LimitOrder) order;
if (lo.getOpenQuantity() == 0) {
OrderTerminalEvent ote = new OrderTerminalEvent();
ote.setCreationTimeStamp(currentExchangeTime());
((VirtualOrderTracker) trck).getEvent().fire(ote);
// clean up the order tracker.
orderTrackers.remove(trck);
}
}