private void validateOrder(Message order) throws IncorrectTagValue, FieldNotFound {
OrdType ordType = new OrdType(order.getChar(OrdType.FIELD));
if (!validOrderTypes.contains(Character.toString(ordType.getValue()))) {
LOG.error("Order type not in ValidOrderTypes setting");
throw new IncorrectTagValue(ordType.getField());
}
if (ordType.getValue() == OrdType.MARKET && marketQuoteProvider == null) {
LOG.error("DefaultMarketPrice setting not specified for market order");
throw new IncorrectTagValue(ordType.getField());
}
}