Package com.caplin.motif.fx.trading
Enum Class PricingSide
- All Implemented Interfaces:
Serializable
,Comparable<PricingSide>
,Constable
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.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic PricingSide
Returns the enum constant of this class with the specified name.static PricingSide[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
BUY
The client wishes to receive an ASK price only as they are interested in buying. -
SELL
The client wishes to receive a BID price only as they are interested in selling. -
TWO_WAY
The client is interested in seeing both sides of the quote.
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-