Class MotifOrderStrategyFactory
- java.lang.Object
-
- com.caplin.motif.fx.trading.orders.submission.MotifOrderStrategyFactory
-
- All Implemented Interfaces:
OrderStrategyFactory<MotifOrderStrategy>
@Deprecated public class MotifOrderStrategyFactory extends java.lang.Object implements OrderStrategyFactory<MotifOrderStrategy>
Deprecated.
-
-
Constructor Summary
Constructors Constructor Description MotifOrderStrategyFactory()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description MotifOrderStrategy
createOrderStrategy(com.caplin.trading.Trade trade)
Deprecated.Returns an instance of OrderStrategy for the specified trade.void
registerOrderSubmissionValidator(java.lang.String strategyTypeName, OrderSubmissionValidator validator)
Deprecated.Takes the strategy type as well as the validator; so for a particular strategy (e.g OCO) the validation can be overridden.
-
-
-
Method Detail
-
createOrderStrategy
public MotifOrderStrategy createOrderStrategy(com.caplin.trading.Trade trade) throws OrderConfigurationException
Deprecated.Description copied from interface:OrderStrategyFactory
Returns an instance of OrderStrategy for the specified trade.- Specified by:
createOrderStrategy
in interfaceOrderStrategyFactory<MotifOrderStrategy>
- Parameters:
trade
- The order trade containing all the legs of the order strategy.- Returns:
- The OrderStrategy object representing the order trade.
- Throws:
OrderConfigurationException
- If there was a problem with the configuration of the Orders
-
registerOrderSubmissionValidator
public void registerOrderSubmissionValidator(java.lang.String strategyTypeName, OrderSubmissionValidator validator)
Deprecated.Description copied from interface:OrderStrategyFactory
Takes the strategy type as well as the validator; so for a particular strategy (e.g OCO) the validation can be overridden.- Specified by:
registerOrderSubmissionValidator
in interfaceOrderStrategyFactory<MotifOrderStrategy>
- Parameters:
strategyTypeName
- The strategy type for which the validator will be asked to validatevalidator
- The validator which will validate an OrderStrategy
-
-