public class MotifOrderStrategyFactory extends Object implements OrderStrategyFactory<MotifOrderStrategy>
Constructor and Description |
---|
MotifOrderStrategyFactory() |
Modifier and Type | Method and Description |
---|---|
MotifOrderStrategy |
createOrderStrategy(com.caplin.trading.Trade trade)
Returns an instance of OrderStrategy for the specified trade.
|
void |
registerOrderSubmissionValidator(String strategyTypeName,
OrderSubmissionValidator validator)
Takes the strategy type as well as the validator; so for a particular strategy (e.g OCO)
the validation can be overridden.
|
public MotifOrderStrategy createOrderStrategy(com.caplin.trading.Trade trade) throws OrderConfigurationException
OrderStrategyFactory
createOrderStrategy
in interface OrderStrategyFactory<MotifOrderStrategy>
trade
- The order trade containing all the legs of the order strategy.OrderConfigurationException
- If there was a problem with the configuration of the Orderspublic void registerOrderSubmissionValidator(String strategyTypeName, OrderSubmissionValidator validator)
OrderStrategyFactory
registerOrderSubmissionValidator
in interface OrderStrategyFactory<MotifOrderStrategy>
strategyTypeName
- The strategy type for which the validator will be asked to validatevalidator
- The validator which will validate an OrderStrategyCopyright © 2015 Caplin Systems.