Class ExecutionType

java.lang.Object
com.caplin.motif.fx.trading.orders.submission.ExecutionType

@Deprecated public class ExecutionType extends Object
Deprecated.

The ExecutionType determines how order should be executed.

The common execution types can be accessed as public constants.

  • Field Details

    • CALL_ORDER

      public static final ExecutionType CALL_ORDER
      Deprecated.
      The "Call Order" execution type
    • TAKE_PROFIT

      public static final ExecutionType TAKE_PROFIT
      Deprecated.
      The "Take Profit" execution type
    • STOP_LOSS

      public static final ExecutionType STOP_LOSS
      Deprecated.
      The "Stop Loss" execution type
    • MARKET

      public static final ExecutionType MARKET
      Deprecated.
      The "Market" execution type
    • BENCHMARK

      public static final ExecutionType BENCHMARK
      Deprecated.
      The "Benchmark" execution type
    • PEGGED

      public static final ExecutionType PEGGED
      Deprecated.
      The "Pegged" execution type
  • Constructor Details

    • ExecutionType

      public ExecutionType(String name)
      Deprecated.
      Constructs an ExecutionType for the specified name.
      Parameters:
      name - The name of the ExecutionType.
  • Method Details

    • getValue

      public static ExecutionType getValue(String name)
      Deprecated.
      Returns the ExecutionType for the specified field name. This will either be one of the constants defined in this class, or a new instance of ExecutionType created with the name specified.
      Parameters:
      name - The name of the ExecutionType
      Returns:
      The ExecutionType
    • getName

      public String getName()
      Deprecated.
      Returns the name of the execution type. This will be the field value as sent down from the frontend.
      Returns:
      The execution type name.
    • toString

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

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

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