Interface OrderStrategyFactory<T extends OrderStrategy>
-
- Type Parameters:
T
- extends theOrderStrategy
which contains the base getters and responders for Orders.
- All Known Implementing Classes:
MotifOrderStrategyFactory
@Deprecated public interface OrderStrategyFactory<T extends OrderStrategy>
Deprecated.The factory that will be asked to create the OrderStrategy for the given trade.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description T
createOrderStrategy(com.caplin.trading.Trade trade)
Deprecated.Returns an instance of OrderStrategy for the specified trade.void
registerOrderSubmissionValidator(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 Detail
-
createOrderStrategy
T createOrderStrategy(com.caplin.trading.Trade trade) throws OrderConfigurationException
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
void registerOrderSubmissionValidator(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.- Parameters:
strategyType
- The strategy type for which the validator will be asked to validatevalidator
- The validator which will validate an OrderStrategy
-
-