T
- extends the OrderStrategy
which contains the base getters and responders for Orders.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 |
---|---|
T |
createOrderStrategy(com.caplin.trading.Trade trade)
Returns an instance of OrderStrategy for the specified trade.
|
void |
registerOrderSubmissionValidator(String strategyType,
OrderSubmissionValidator validator)
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 Ordersvoid registerOrderSubmissionValidator(String strategyType, OrderSubmissionValidator validator)
strategyType
- The strategy type for which the validator will be asked to validatevalidator
- The validator which will validate an OrderStrategyCopyright © 2015 Caplin Systems.