Interface TradeValidator

All Known Implementing Classes:
BlockTradeValidator, RequiredTradeFieldsValidator

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:

  • Method Summary

    Modifier and Type
    Method
    Description
    void
    validate(com.caplin.trading.Trade trade)
    Checks the validity of a Trade .
  • Method Details

    • validate

      void validate(com.caplin.trading.Trade trade) throws ValidationException
      Checks the validity of a Trade . This method should throw an ValidationException if the trade is not valid.
      Parameters:
      trade - The trade to be validated
      Throws:
      ValidationException - If there was a problem validating the trade.