Inherits from com.wombat.mamda.MamdaMsgListener, com.wombat.mamda.MamdaQuoteRecap, com.wombat.mamda.MamdaQuoteUpdate, com.wombat.mamda.MamdaQuoteGap, com.wombat.mamda.MamdaQuoteClosing, com.wombat.mamda.MamdaBasicRecap, com.wombat.mamda.MamdaBasicEvent
Name | |
---|---|
MamdaFieldState | mGapBeginFieldState |
MamdaFieldState | mGapEndFieldState |
Name | |
---|---|
final MamdaQuoteCache | mQuoteCache |
class com::wombat::mamda::MamdaQuoteListener;
MamdaQuoteListener is a class that specializes in handling quote updates. Developers provide their own implementation of the MamdaQuoteHandler interface and will be delivered notifications for quotes and quote closing prices. An obvious application for this MAMDA class is any kind of quote tick capture application.
Note: The MamdaQuoteListener class caches quote-related field values. Among other reasons, caching of these fields makes it possible to provide complete quote-related callbacks, even when the publisher (e.g., feed handler) is only publishing deltas containing modified fields.
inline MamdaQuoteListener()
Create a specialized quote listener. This listener handles quote updates, quote recaps, and quote gap notifications.
inline void clearCache(
MamdaQuoteCache cache
)
inline void addHandler(
MamdaQuoteHandler handler
)
Add a specialized quote handler. Currently, only one handler can (and must) be registered.
inline String getSymbol()
Return: Symbol. This is the “well-known” symbol for the security, including any symbology mapping performed by the publisher.
Reimplements: com::wombat::mamda::MamdaBasicRecap::getSymbol
Get the string symbol for the instrument.
inline String getPartId()
Return: Participant ID. This may be an exchange identifier, a market maker ID, etc., or NULL (if this is not related to any specific participant).
Reimplements: com::wombat::mamda::MamdaBasicRecap::getPartId
Get the participant identifier.
inline MamaDateTime getSrcTime()
Return: Source time. Typically, the exchange generated feed time stamp. This is often the same as the “event time”, because many feeds do not distinguish between the actual event time and when the exchange sent the message.
Reimplements: com::wombat::mamda::MamdaBasicEvent::getSrcTime
inline MamaDateTime getActivityTime()
Return: Activity time. A feed handler generated time stamp representing when the data item was last updated.
Reimplements: com::wombat::mamda::MamdaBasicEvent::getActivityTime
inline MamaDateTime getLineTime()
Return: Line time. A feed handler (or similar publisher) time stamp representing the time that such publisher received the update message pertaining to the event. If clocks are properly synchronized and the source time (see above) is accurate enough, then the difference between the source time and line time is the latency between the data source and the feed handler.
Reimplements: com::wombat::mamda::MamdaBasicRecap::getLineTime
Get the line time of the update.
inline MamaDateTime getSendTime()
Return: Send time. A feed handler (or similar publisher) time stamp representing the time that such publisher sent the current message. The difference between the line time and send time is the latency within the feed handler itself. Also, if clocks are properly synchronized then the difference between the send time and current time is the latency within the market data distribution framework (i.e. MAMA and the underlying middleware).
Reimplements: com::wombat::mamda::MamdaBasicRecap::getSendTime
Get the send time of the update.
inline String getPubId()
inline MamaPrice getBidPrice()
Return: Today’s closing bid price, after the market has closed and the stock has traded today.
Reimplements: com::wombat::mamda::MamdaQuoteClosing::getBidPrice
Get the closing bid price.
inline double getBidSize()
Return: Today’s closing bid size, after the market has closed and the stock has traded today.
Reimplements: com::wombat::mamda::MamdaQuoteClosing::getBidSize
Get the closing bid size.
inline String getBidPartId()
Return: Today’s closing bid participant identifier, after the market has closed and the stock has traded today.
Reimplements: com::wombat::mamda::MamdaQuoteClosing::getBidPartId
Get the closing bid participant identifier.
inline MamaPrice getBidClosePrice()
inline MamaDateTime getBidCloseDate()
inline MamaPrice getBidPrevClosePrice()
inline MamaDateTime getBidPrevCloseDate()
inline MamaPrice getBidHigh()
inline MamaPrice getBidLow()
inline MamaPrice getAskPrice()
Return: Today’s closing ask price, after the market has closed and the stock has traded today.
Reimplements: com::wombat::mamda::MamdaQuoteClosing::getAskPrice
Get the closing ask price.
inline double getAskSize()
Return: Today’s closing ask size, after the market has closed and the stock has traded today.
Reimplements: com::wombat::mamda::MamdaQuoteClosing::getAskSize
Get the closing ask size.
inline String getAskPartId()
Return: Today’s closing ask participant identifier, after the market has closed and the stock has traded today.
Reimplements: com::wombat::mamda::MamdaQuoteClosing::getAskPartId
Get the closing ask participant identifier.
inline double getAskDepth()
Return: the quote bid depth
Reimplements: com::wombat::mamda::MamdaQuoteRecap::getAskDepth
inline double getBidDepth()
Return: the quote bid depth
Reimplements: com::wombat::mamda::MamdaQuoteRecap::getBidDepth
inline MamaPrice getAskClosePrice()
inline MamaDateTime getAskCloseDate()
inline MamaPrice getAskPrevClosePrice()
inline MamaDateTime getAskPrevCloseDate()
inline MamaPrice getAskHigh()
inline MamaPrice getAskLow()
inline MamaPrice getQuoteMidPrice()
Return: The mid price of the current quote. Usually, this is the average of the bid and ask prices, but some exchanges provide this field explicitly (e.g. LSE).
Reimplements: com::wombat::mamda::MamdaQuoteRecap::getQuoteMidPrice
Get the quote mid price.
inline String getQuoteQual()
See: MamdaQuoteUpdate::getQuoteQual
Return: A normalized set of qualifiers for the last quote for the security. This field may contain multiple string values, separated by the colon(:) character.
Reimplements: com::wombat::mamda::MamdaQuoteRecap::getQuoteQual
Get the normalized quote qualifier.
inline String getQuoteQualNative()
See: MamdaQuoteUpdate::getQuoteQualNative()
Reimplements: com::wombat::mamda::MamdaQuoteRecap::getQuoteQualNative
inline char getShortSaleBidTick()
See: MamdaQuoteUpdate::getShortSaleBidTick()
Reimplements: com::wombat::mamda::MamdaQuoteRecap::getShortSaleBidTick
inline char getShortSaleCircuitBreaker()
See: MamdaQuoteUpdate::getShortSaleCircuitBreaker()
Return: ShortSaleCircuitBreaker
Reimplements: com::wombat::mamda::MamdaQuoteRecap::getShortSaleCircuitBreaker
getShortSaleCircuitBreaker Returns the ShortSaleCircuitBreaker
inline MamaDateTime getAskTime()
Reimplements: com::wombat::mamda::MamdaQuoteRecap::getAskTime
inline MamaDateTime getBidTime()
Reimplements: com::wombat::mamda::MamdaQuoteRecap::getBidTime
inline String getAskIndicator()
Reimplements: com::wombat::mamda::MamdaQuoteRecap::getAskIndicator
inline String getBidIndicator()
Reimplements: com::wombat::mamda::MamdaQuoteRecap::getBidIndicator
inline long getAskUpdateCount()
Reimplements: com::wombat::mamda::MamdaQuoteRecap::getAskUpdateCount
inline long getBidUpdateCount()
Reimplements: com::wombat::mamda::MamdaQuoteRecap::getBidUpdateCount
inline double getAskYield()
Reimplements: com::wombat::mamda::MamdaQuoteRecap::getAskYield
inline double getBidYield()
Reimplements: com::wombat::mamda::MamdaQuoteRecap::getBidYield
inline long getQuoteCount()
Return: The number of quotes generated for this security during the current trading session.
Reimplements: com::wombat::mamda::MamdaQuoteRecap::getQuoteCount
Get the quote count.
inline long getEventSeqNum()
Return: Source sequence number. The exchange generated sequence number.
Reimplements: com::wombat::mamda::MamdaBasicEvent::getEventSeqNum
inline MamaDateTime getEventDate()
Reimplements: com::wombat::mamda::MamdaQuoteRecap::getEventDate
Date corresponding to the last quote, as reported by the feed.
inline MamaDateTime getEventTime()
Reimplements: com::wombat::mamda::MamdaQuoteRecap::getEventTime
Time corresponding to the last quote, as reported by the feed.
inline String getAskSizesList()
Reimplements: com::wombat::mamda::MamdaQuoteRecap::getAskSizesList
inline String getBidSizesList()
Reimplements: com::wombat::mamda::MamdaQuoteRecap::getBidSizesList
inline MamaDateTime getEventDateTime()
inline MamaDateTime getQuoteDate()
inline long getBeginGapSeqNum()
Reimplements: com::wombat::mamda::MamdaQuoteGap::getBeginGapSeqNum
The starting sequence number of detected missing quotes based on the quote count.
inline long getEndGapSeqNum()
Reimplements: com::wombat::mamda::MamdaQuoteGap::getEndGapSeqNum
The end sequence number of detected missing quotes based on the quote count.
inline short getSymbolFieldState()
Return: symbol Field State
Reimplements: com::wombat::mamda::MamdaBasicRecap::getSymbolFieldState
inline short getPartIdFieldState()
Return: participant ID Field State
Reimplements: com::wombat::mamda::MamdaBasicRecap::getPartIdFieldState
inline short getSrcTimeFieldState()
Reimplements: com::wombat::mamda::MamdaBasicEvent::getSrcTimeFieldState
return Source time Field State MODIFIED (2) value indicates the fied was updated in last tick NOT MODIFIED (1) value indicate that there was no change in the last tick NOT_INITIALISED (0) value indicates that the field has never been updated
inline short getActivityTimeFieldState()
Reimplements: com::wombat::mamda::MamdaBasicEvent::getActivityTimeFieldState
return Activity time Field State MODIFIED (2) value indicates the fied was updated in last tick NOT MODIFIED (1) value indicate that there was no change in the last tick NOT_INITIALISED (0) value indicates that the field has never been updated
inline short getLineTimeFieldState()
Return: line time Field State
Reimplements: com::wombat::mamda::MamdaBasicRecap::getLineTimeFieldState
inline short getSendTimeFieldState()
Return: send time Field State
Reimplements: com::wombat::mamda::MamdaBasicRecap::getSendTimeFieldState
inline short getPubIdFieldState()
inline short getBidPriceFieldState()
Return: the bid price Field State
Reimplements: com::wombat::mamda::MamdaQuoteClosing::getBidPriceFieldState
inline short getBidSizeFieldState()
Return: the bid size Field State
Reimplements: com::wombat::mamda::MamdaQuoteClosing::getBidSizeFieldState
inline short getBidPartIdFieldState()
Return: the bid part ID Field State
Reimplements: com::wombat::mamda::MamdaQuoteClosing::getBidPartIdFieldState
inline short getBidClosePriceFieldState()
inline short getBidCloseDateFieldState()
inline short getBidPrevClosePriceFieldState()
inline short getBidPrevCloseDateFieldState()
inline short getBidHighFieldState()
inline short getBidLowFieldState()
inline short getAskPriceFieldState()
Return: the ask price Field State
Reimplements: com::wombat::mamda::MamdaQuoteClosing::getAskPriceFieldState
inline short getAskSizeFieldState()
Return: the ask size Field State
Reimplements: com::wombat::mamda::MamdaQuoteClosing::getAskSizeFieldState
inline short getAskPartIdFieldState()
Return: the ask part ID Field State
Reimplements: com::wombat::mamda::MamdaQuoteClosing::getAskPartIdFieldState
inline short getAskClosePriceFieldState()
inline short getAskCloseDateFieldState()
inline short getAskPrevClosePriceFieldState()
inline short getAskPrevCloseDateFieldState()
inline short getAskHighFieldState()
inline short getAskLowFieldState()
inline short getAskDepthFieldState()
Return: the ask depth Field State
Reimplements: com::wombat::mamda::MamdaQuoteRecap::getAskDepthFieldState
inline short getBidDepthFieldState()
Return: the bid depth Field State
Reimplements: com::wombat::mamda::MamdaQuoteRecap::getBidDepthFieldState
inline short getQuoteMidPriceFieldState()
Return: the quote mid price Field State
Reimplements: com::wombat::mamda::MamdaQuoteRecap::getQuoteMidPriceFieldState
inline short getQuoteQualFieldState()
Return: the quote qual Field State
Reimplements: com::wombat::mamda::MamdaQuoteRecap::getQuoteQualFieldState
inline short getQuoteQualNativeFieldState()
Return: the quote qual native Field State
Reimplements: com::wombat::mamda::MamdaQuoteRecap::getQuoteQualNativeFieldState
inline short getShortSaleBidTickFieldState()
Return: the short sale bid tick Field State
Reimplements: com::wombat::mamda::MamdaQuoteRecap::getShortSaleBidTickFieldState
inline short getShortSaleCircuitBreakerFieldState()
Return: Returns the FieldState, always MODIFIED.
Reimplements: com::wombat::mamda::MamdaQuoteRecap::getShortSaleCircuitBreakerFieldState
inline short getAskTimeFieldState()
Return: the ask time Field State
Reimplements: com::wombat::mamda::MamdaQuoteRecap::getAskTimeFieldState
inline short getBidTimeFieldState()
Return: the bid time Field State
Reimplements: com::wombat::mamda::MamdaQuoteRecap::getBidTimeFieldState
inline short getAskIndicatorFieldState()
Return: the ask indicator Field State
Reimplements: com::wombat::mamda::MamdaQuoteRecap::getAskIndicatorFieldState
inline short getBidIndicatorFieldState()
Return: the bid indicator Field State
Reimplements: com::wombat::mamda::MamdaQuoteRecap::getBidIndicatorFieldState
inline short getAskUpdateCountFieldState()
Return: the ask update count Field State
Reimplements: com::wombat::mamda::MamdaQuoteRecap::getAskUpdateCountFieldState
inline short getBidUpdateCountFieldState()
Return: the bid update count Field State
Reimplements: com::wombat::mamda::MamdaQuoteRecap::getBidUpdateCountFieldState
inline short getAskYieldFieldState()
Return: the ask yield Field State
Reimplements: com::wombat::mamda::MamdaQuoteRecap::getAskYieldFieldState
inline short getBidYieldFieldState()
Return: the bid yield Field State
Reimplements: com::wombat::mamda::MamdaQuoteRecap::getBidYieldFieldState
inline short getQuoteCountFieldState()
Return: the quote count Field State
Reimplements: com::wombat::mamda::MamdaQuoteRecap::getQuoteCountFieldState
inline short getEventSeqNumFieldState()
Reimplements: com::wombat::mamda::MamdaBasicEvent::getEventSeqNumFieldState
return source sequence number Field State MODIFIED (2) value indicates the fied was updated in last tick NOT MODIFIED (1) value indicate that there was no change in the last tick NOT_INITIALISED (0) value indicates that the field has never been updated
inline short getEventDateFieldState()
Return: event date Field State
Reimplements: com::wombat::mamda::MamdaQuoteRecap::getEventDateFieldState
inline short getEventTimeFieldState()
Return: the event time Field State
Reimplements: com::wombat::mamda::MamdaQuoteRecap::getEventTimeFieldState
inline short getAskSizesListFieldState()
Return: the ask sizes list Field State
Reimplements: com::wombat::mamda::MamdaQuoteRecap::getAskSizesListFieldState
inline short getBidSizesListFieldState()
Return: the bid sizes list Field State
Reimplements: com::wombat::mamda::MamdaQuoteRecap::getBidSizesListFieldState
inline short getBeginGapSeqNumFieldState()
Return: the begin gap seq num Field State
Reimplements: com::wombat::mamda::MamdaQuoteGap::getBeginGapSeqNumFieldState
inline short getEndGapSeqNumFieldState()
Return: the end gap seq num Field State
Reimplements: com::wombat::mamda::MamdaQuoteGap::getEndGapSeqNumFieldState
inline void onMsg(
MamdaSubscription subscription,
MamaMsg msg,
short msgType
)
Reimplements: com::wombat::mamda::MamdaMsgListener::onMsg
Implementation of MamdaListener interface. NB! For internal use only.
MamdaFieldState mGapBeginFieldState = new MamdaFieldState();
MamdaFieldState mGapEndFieldState = new MamdaFieldState();
final MamdaQuoteCache mQuoteCache =
new MamdaQuoteCache ();
Updated on 2023-03-31 at 15:30:33 +0100