T- extends the
OrderStrategywhich contains the base getters and responders for Orders.
@Deprecated public interface OrderStrategyFactory<T extends OrderStrategy>
The factory that will be asked to create the OrderStrategy for the given trade.
|Modifier and Type||Method and Description|
Returns an instance of OrderStrategy for the specified trade.
Takes the strategy type as well as the validator; so for a particular strategy (e.g OCO) the validation can be overridden.
T createOrderStrategy(com.caplin.trading.Trade trade) throws OrderConfigurationException
trade- The order trade containing all the legs of the order strategy.
OrderConfigurationException- If there was a problem with the configuration of the Orders
void registerOrderSubmissionValidator(String strategyType, OrderSubmissionValidator validator)
strategyType- The strategy type for which the validator will be asked to validate
validator- The validator which will validate an OrderStrategy
Copyright © 2020 Caplin Systems.