Interface OrderStrategyFactory<T extends OrderStrategy>
- Type Parameters:
T- extends theOrderStrategywhich contains the base getters and responders for Orders.
- All Known Implementing Classes:
MotifOrderStrategyFactory
Deprecated.
The factory that will be asked to create the OrderStrategy for the given trade.
-
Method Summary
Modifier and TypeMethodDescriptioncreateOrderStrategy(com.caplin.trading.Trade trade) Deprecated.Returns an instance of OrderStrategy for the specified trade.voidregisterOrderSubmissionValidator(String strategyType, 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 Details
-
createOrderStrategy
Deprecated.Returns an instance of OrderStrategy for the specified trade.- 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
Deprecated.Takes the strategy type as well as the validator; so for a particular strategy (e.g OCO) the validation can be overridden.- Parameters:
strategyType- The strategy type for which the validator will be asked to validatevalidator- The validator which will validate an OrderStrategy
-