Class DefaultIfDoneOCOValidator

  • All Implemented Interfaces:
    OrderSubmissionValidator

    @Deprecated
    public class DefaultIfDoneOCOValidator
    extends java.lang.Object
    implements OrderSubmissionValidator
    Deprecated.

    The default implementation of OrderSubmissionValidator for IfDoneOCO submissions.

    Checks that the first leg is either STOP-LOSS, TAKE-PROFIT or MARKET

    Checks that the second leg is TAKE-PROFIT and the third leg is STOP-LOSS

    • Constructor Summary

      Constructors 
      Constructor Description
      DefaultIfDoneOCOValidator()
      Deprecated.
      Constructs the default validator for IF-DONE-OCO orders.
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      void validate​(StrategyType type, OrderStrategy strategy, java.util.Map<java.lang.String,​java.lang.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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DefaultIfDoneOCOValidator

        public DefaultIfDoneOCOValidator()
        Deprecated.
        Constructs the default validator for IF-DONE-OCO orders.