Enum Class PricingSide

java.lang.Object
java.lang.Enum<PricingSide>
com.caplin.motif.fx.trading.PricingSide
All Implemented Interfaces:
Serializable, Comparable<PricingSide>, Constable

public enum PricingSide extends Enum<PricingSide>

The pricing side as requested by the frontend.

Generally for RFS trades, the frontend will wish to see a two way price. If they are not permissioned or opt to choose a side before they request a price, this enum will indicate the side that was requested.

  • Enum Constant Details

    • BUY

      public static final PricingSide BUY
      The client wishes to receive an ASK price only as they are interested in buying.
    • SELL

      public static final PricingSide SELL
      The client wishes to receive a BID price only as they are interested in selling.
    • TWO_WAY

      public static final PricingSide TWO_WAY
      The client is interested in seeing both sides of the quote.
  • Method Details

    • values

      public static PricingSide[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static PricingSide valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null