IOrderTracker trck = getOrderTracker(order);
if (trck == null)
return;
// can only handle our own virtual trackers.
if (trck instanceof VirtualOrderTracker) {
OrderFillEvent ofe = new OrderFillEvent();
ofe.setCreationTimeStamp(currentExchangeTime());
ofe.setFillAmount(quantity);
ofe.setFillPrice(price);
((VirtualOrderTracker) trck).getEvent().fire(ofe);
//
if (order instanceof LimitOrder) {
LimitOrder lo = (LimitOrder) order;