Interface OrderSubmissionValidator
-
- All Known Implementing Classes:
DefaultIfDoneOCOValidator
,DefaultOCOValidator
@Deprecated public interface OrderSubmissionValidator
Deprecated.An interface for validating a list of orders representing an order strategy.
A class that is interested in validating the submission of an order strategy should implement this interface. It can be registered by calling
FXOrdersAdapter.registerOrderSubmissionValidator(String, OrderSubmissionValidator)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method 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.
-
-
-
Method Detail
-
validate
void validate(StrategyType type, OrderStrategy strategy, Map<String,String> fields) throws OrderConfigurationException
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. This method should throw anOrderConfigurationException
if the strategy is not valid.- Parameters:
type
- The StrategyType of the order.strategy
- The OrderStrategy object that represents the strategy.fields
- The raw field map that was used to create theOrderStrategy
object.- Throws:
OrderConfigurationException
- If the legs are not valid for this strategy.
-
-