Class StrategyType


  • @Deprecated
    public class StrategyType
    extends java.lang.Object
    Deprecated.
    The strategy type representing the strategy of a limit order
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static StrategyType IF_DONE
      Deprecated.
      Represents an If Done Then strategy which contains a parent order and one child order.
      static StrategyType IF_DONE_LOOP
      Deprecated.
       
      static java.lang.String IF_DONE_LOOP_NAME
      Deprecated.
       
      static java.lang.String IF_DONE_NAME
      Deprecated.
       
      static StrategyType IF_DONE_OCO
      Deprecated.
      Represents an If Done Then One Cancels the Other strategy which contains a parent order and an OCO child strategy.
      static java.lang.String IF_DONE_OCO_NAME
      Deprecated.
       
      static StrategyType IF_TIMEOUT
      Deprecated.
      Represents an If Timeout strategy which contains a parent order and one child order.
      static java.lang.String IF_TIMEOUT_NAME
      Deprecated.
       
      static StrategyType LOOP
      Deprecated.
       
      static java.lang.String LOOP_NAME
      Deprecated.
       
      static StrategyType OCO
      Deprecated.
      Represents a One Cancels the Other strategy which contains a take profit and stop loss order.
      static java.lang.String OCO_NAME
      Deprecated.
       
      static StrategyType SINGLE
      Deprecated.
      Represents a single order strategy that does not contain any contingent orders.
      static java.lang.String SINGLE_NAME
      Deprecated.
       
    • Constructor Summary

      Constructors 
      Constructor Description
      StrategyType​(java.lang.String name)
      Deprecated.
      Constructs the StrategyType with name
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)
      Deprecated.
       
      java.lang.String getName()
      Deprecated.
      Returns a printable name for the strategy type.
      static StrategyType getValue​(java.lang.String value)
      Deprecated.
      Returns the StrategyType corresponding to the passed in StrategyType
      int hashCode()
      Deprecated.
       
      java.lang.String toString()
      Deprecated.
       
      static java.util.Set<StrategyType> values()
      Deprecated.
      Returns a set containing the default StrategyTypes
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • SINGLE_NAME

        public static final java.lang.String SINGLE_NAME
        Deprecated.
        See Also:
        Constant Field Values
      • IF_DONE_OCO_NAME

        public static final java.lang.String IF_DONE_OCO_NAME
        Deprecated.
        See Also:
        Constant Field Values
      • IF_DONE_NAME

        public static final java.lang.String IF_DONE_NAME
        Deprecated.
        See Also:
        Constant Field Values
      • IF_TIMEOUT_NAME

        public static final java.lang.String IF_TIMEOUT_NAME
        Deprecated.
        See Also:
        Constant Field Values
      • IF_DONE_LOOP_NAME

        public static final java.lang.String IF_DONE_LOOP_NAME
        Deprecated.
        See Also:
        Constant Field Values
      • SINGLE

        public static final StrategyType SINGLE
        Deprecated.
        Represents a single order strategy that does not contain any contingent orders.
      • OCO

        public static final StrategyType OCO
        Deprecated.
        Represents a One Cancels the Other strategy which contains a take profit and stop loss order.
      • IF_DONE

        public static final StrategyType IF_DONE
        Deprecated.
        Represents an If Done Then strategy which contains a parent order and one child order.
      • IF_DONE_OCO

        public static final StrategyType IF_DONE_OCO
        Deprecated.
        Represents an If Done Then One Cancels the Other strategy which contains a parent order and an OCO child strategy.
      • IF_TIMEOUT

        public static final StrategyType IF_TIMEOUT
        Deprecated.
        Represents an If Timeout strategy which contains a parent order and one child order.
      • IF_DONE_LOOP

        public static final StrategyType IF_DONE_LOOP
        Deprecated.
    • Constructor Detail

      • StrategyType

        public StrategyType​(java.lang.String name)
        Deprecated.
        Constructs the StrategyType with name
        Parameters:
        name - The name of the StrategyType
    • Method Detail

      • getValue

        public static StrategyType getValue​(java.lang.String value)
        Deprecated.
        Returns the StrategyType corresponding to the passed in StrategyType
        Parameters:
        value - The string value of the StrategyType
        Returns:
        The StrategyType corresponding to the string value
      • values

        public static java.util.Set<StrategyType> values()
        Deprecated.
        Returns a set containing the default StrategyTypes
        Returns:
        A set of the default StrategyTypes
      • getName

        public java.lang.String getName()
        Deprecated.
        Returns a printable name for the strategy type.
        Returns:
        a printable name.
      • toString

        public java.lang.String toString()
        Deprecated.
        Overrides:
        toString in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Deprecated.
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Deprecated.
        Overrides:
        hashCode in class java.lang.Object