public interface TradeValidator
An interface for validating a trade submission
A class that is interested in validating the submission of an FX trade should implement this interface. It can be registered by calling:
void validate(com.caplin.trading.Trade trade) throws ValidationExceptionChecks the validity of a Trade . This method should throw an
ValidationExceptionif the trade is not valid.
trade- The trade to be validated
ValidationException- If there was a problem validating the trade.