Class MotifOrderStrategyFactory
java.lang.Object
com.caplin.motif.fx.trading.orders.submission.MotifOrderStrategyFactory
- All Implemented Interfaces:
OrderStrategyFactory<MotifOrderStrategy>
@Deprecated
public class MotifOrderStrategyFactory
extends Object
implements OrderStrategyFactory<MotifOrderStrategy>
Deprecated.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateOrderStrategy
(com.caplin.trading.Trade trade) Deprecated.Returns an instance of OrderStrategy for the specified trade.void
registerOrderSubmissionValidator
(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.
-
Constructor Details
-
MotifOrderStrategyFactory
public MotifOrderStrategyFactory()Deprecated.
-
-
Method Details
-
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(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
-