executionReport.getLastPrice()));
}
// If order is closed and all executions received and something was traded,
// then return a trade
Trade trade = null;
if (isClosed() &&
(this.cumQty.eq(getCumQtyOfExecutions())) &&
(this.cumQty.gt(DecimalQuantity.ZERO))) {
trade = new Trade(
new DateTime(),
this.side,
this.symbol,
this.getCumQty(),
this.getTotalPriceOfExecutions(),