totalPrice = totalPrice.plus(
execution.getPrice().times(execution.getQuantity()));
totalQuantity = totalQuantity.plus(execution.getQuantity());
}
totalPrice = totalPrice.scaleToCurrency();
return totalPrice.div(totalQuantity, Constants.PRICE_SCALE);
}
/** Returns true if this order is filled */
@Transient
public boolean isFilled() {