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:
FXTradeAdapter.registerESPTradeListenerFactory(com.caplin.motif.fx.trading.esp.ESPTradeListenerFactory, TradeValidator)
FXTradeAdapter.registerRFSTradeListenerFactory(com.caplin.motif.fx.trading.rfs.RFSTradeListenerFactory, TradeValidator)
FXTradeAdapter.registerBlockTradeListenerFactory(com.caplin.motif.fx.trading.block.BlockTradeListenerFactory, TradeValidator)
Modifier and Type | Method and Description |
---|---|
void |
validate(com.caplin.trading.Trade trade)
Checks the validity of a Trade .
|
void validate(com.caplin.trading.Trade trade) throws ValidationException
ValidationException
if the
trade is not valid.trade
- The trade to be validatedValidationException
- If there was a problem validating the trade.Copyright © 2015 Caplin Systems.