Interface OrderSubmissionValidator

    • Method Detail

      • validate

        void validate​(StrategyType type,
                      OrderStrategy strategy,
                      java.util.Map<java.lang.String,​java.lang.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 an OrderConfigurationException 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 the OrderStrategy object.
        Throws:
        OrderConfigurationException - If the legs are not valid for this strategy.