Name | |
---|---|
String | toString() |
int | getValue() |
boolean | equals(MamaMdMsgType appDataType) |
MamaMdMsgType | typeForMsg(final MamaMsg msg) |
String | stringForMsg(final MamaMsg msg) |
short | compatMsgType(MamaMdMsgType mdMsgType) |
String | valueToString(int value) |
MamaMdMsgType | enumObjectForValue(int value) |
Name | |
---|---|
final int | CANCEL_VALUE |
final MamaMdMsgType | CANCEL |
final int | ERROR_VALUE |
final MamaMdMsgType | ERROR |
final int | CORRECTION_VALUE |
final MamaMdMsgType | CORRECTION |
final int | CLOSING_VALUE |
final MamaMdMsgType | CLOSING |
final int | SYMBOL_ACTION_VALUE |
final MamaMdMsgType | SYMBOL_ACTION |
final int | PREOPENING_VALUE |
final MamaMdMsgType | PREOPENING |
final int | QUOTE_VALUE |
final MamaMdMsgType | QUOTE |
final int | TRADE_VALUE |
final MamaMdMsgType | TRADE |
final int | BOOK_INITIAL_VALUE |
final MamaMdMsgType | BOOK_INITIAL |
final int | IMBALANCE_VALUE |
final MamaMdMsgType | IMBALANCE |
final int | SECURITY_STATUS_VALUE |
final MamaMdMsgType | SECURITY_STATUS |
final int | MISC_VALUE |
final MamaMdMsgType | MISC |
class com::wombat::mama::MamaMdMsgType;
This class provides an enumeration of types and methods for MAMA types related to market data applications.
It is intended that the types in this class will ultimately replace the MamaMsgType as an indicator of the type of market data message received by a subscribing application.
inline String toString()
Return: Name for the type.
Returns the stringified name for the enumerated type.
inline int getValue()
Return: The integer type.
Returns the integer value for the type. This value can be used in switch statements against the public XXX_VALUE static members of the class.
inline boolean equals(
MamaMdMsgType appDataType
)
Parameters:
Return: Whether the two objects are equal.
Compare the two types for equality. Returns true if the integer value of both types is equal. Otherwise returns false.
static inline MamaMdMsgType typeForMsg(
final MamaMsg msg
)
Parameters:
Return: An instance of a MamaMdMsgType
Get the md msg type from the specified MamaMsg. Returns null if no type was found in the message.
static inline String stringForMsg(
final MamaMsg msg
)
Parameters:
Return: The string name for the type.
The stringified name of the type based on the int value for the type in the specified message.
static inline short compatMsgType(
MamaMdMsgType mdMsgType
)
Parameters:
Return: The MamaMsgType corresponding to the specified MamaMdMsgType.
Return the corresponding MamaMsgType for the specified MamaMdMsgType. Mainly for backwards compatibility.
static inline String valueToString(
int value
)
Parameters:
Return: The string name value of the specified MamaMdMsgType integer value.
Utility method for mapping type integer values to corresponding string values.
Returns “UNKNOWN” is the int type value is not recognised.
static inline MamaMdMsgType enumObjectForValue(
int value
)
Parameters:
Return: Instance of a MamaMdMsgType if a mapping exists.
Return an instance of a MamaMdMsgType corresponding to the specified integer value. Returns null if the integer value is not recognised.
static final int CANCEL_VALUE = 2;
Trade Cancellation
static final MamaMdMsgType CANCEL = new MamaMdMsgType
(valueToString (CANCEL_VALUE),
CANCEL_VALUE);
static final int ERROR_VALUE = 3;
Trade Error
static final MamaMdMsgType ERROR = new MamaMdMsgType
(valueToString (ERROR_VALUE),
ERROR_VALUE);
static final int CORRECTION_VALUE = 4;
Trade correction
static final MamaMdMsgType CORRECTION = new MamaMdMsgType
(valueToString (CORRECTION_VALUE),
CORRECTION_VALUE);
static final int CLOSING_VALUE = 5;
Closing summary
static final MamaMdMsgType CLOSING = new MamaMdMsgType
(valueToString (CLOSING_VALUE),
CLOSING_VALUE);
static final int SYMBOL_ACTION_VALUE = 8;
Action related to this symbol, such as a name change or symbol deletion due to option/future expiration, etc.
static final MamaMdMsgType SYMBOL_ACTION = new MamaMdMsgType
(valueToString (SYMBOL_ACTION_VALUE),
SYMBOL_ACTION_VALUE);
static final int PREOPENING_VALUE = 12;
Pre-opening summary (e.g. morning roll)
static final MamaMdMsgType PREOPENING = new MamaMdMsgType
(valueToString (PREOPENING_VALUE),
PREOPENING_VALUE);
static final int QUOTE_VALUE = 13;
Quote update.
static final MamaMdMsgType QUOTE = new MamaMdMsgType
(valueToString (QUOTE_VALUE),
QUOTE_VALUE);
static final int TRADE_VALUE = 14;
Trade Update
static final MamaMdMsgType TRADE = new MamaMdMsgType
(valueToString (TRADE_VALUE),
TRADE_VALUE);
static final int BOOK_INITIAL_VALUE = 16;
Order book initial value
static final MamaMdMsgType BOOK_INITIAL = new MamaMdMsgType
(valueToString (BOOK_INITIAL_VALUE),
BOOK_INITIAL_VALUE);
static final int IMBALANCE_VALUE = 17;
Order imbalance or noimbalance update
static final MamaMdMsgType IMBALANCE = new MamaMdMsgType
(valueToString (IMBALANCE_VALUE),
IMBALANCE_VALUE);
static final int SECURITY_STATUS_VALUE = 18;
Security status update
static final MamaMdMsgType SECURITY_STATUS = new MamaMdMsgType
(valueToString (SECURITY_STATUS_VALUE),
SECURITY_STATUS_VALUE);
static final int MISC_VALUE = 100;
Miscellaneous.
static final MamaMdMsgType MISC = new MamaMdMsgType
(valueToString (MISC_VALUE),
MISC_VALUE);
Updated on 2023-03-31 at 15:29:43 +0100