@Deprecated public class DefaultOCOValidator extends Object implements OrderSubmissionValidator
The default implementation of OrderSubmissionValidator for OCO submissions
Checks that the first leg is a STOP-LOSS and the second leg is a TAKE-PROFIT
Constructor and Description |
---|
DefaultOCOValidator()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
validate(StrategyType type,
OrderStrategy strategy,
Map<String,String> fields)
Deprecated.
Checks the validity of a strategy based on its type, the strategy object itself, and
the raw field map that the strategy was derived from.
|
public void validate(StrategyType type, OrderStrategy strategy, Map<String,String> fields) throws OrderConfigurationException
OrderSubmissionValidator
OrderConfigurationException
if the strategy is not valid.validate
in interface OrderSubmissionValidator
type
- The StrategyType of the order.strategy
- The OrderStrategy object that represents the strategy.fields
- The raw field map that was used to create the OrderStrategy
object.OrderConfigurationException
- If the legs are not valid for this strategy.Copyright © 2018 Caplin Systems.