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. More…
Inherits from Wombat.MamdaMsgListener, Wombat.MamdaQuoteRecap, Wombat.MamdaQuoteUpdate, Wombat.MamdaQuoteGap, Wombat.MamdaQuoteClosing, Wombat.MamdaBasicRecap, Wombat.MamdaBasicEvent
Name | |
---|---|
MamdaQuoteListener() Create a specialized quote listener. This listener handles quote updates, quote recaps, and quote gap notifications. |
|
void | addHandler(MamdaQuoteHandler handler) Add a specialized quote handler. Currently, only one handler can (and must) be registered. |
string | getSymbol() Symbol. This is the “well-known” symbol for the security, including any symbology mapping performed by the publisher. |
string | getPartId() Participant ID. This may be an exchange identifier, a market maker ID, etc., or NULL (if this is not related to any specific participant). |
DateTime | getSrcTime() Returns the source time. |
DateTime | getActivityTime() |
DateTime | getLineTime() 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. |
DateTime | getSendTime() 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). See MAMA API: MamaDateTime::currentTime()). |
string | getPubId() |
MamaPrice | getBidPrice() Get the closing bid price. |
long | getBidSize() Get the closing bid size. |
long | getBidDepth() |
string | getBidPartId() Get the closing bid participant identifier. |
MamaPrice | getBidClosePrice() |
DateTime | getBidCloseDate() |
MamaPrice | getBidPrevClosePrice() |
DateTime | getBidPrevCloseDate() |
MamaPrice | getBidHigh() |
MamaPrice | getBidLow() |
MamaPrice | getAskPrice() Get the closing ask price. |
long | getAskSize() Get the closing ask size. |
long | getAskDepth() |
string | getAskPartId() Get the closing ask participant identifier. |
MamaPrice | getAskClosePrice() |
DateTime | getAskCloseDate() |
MamaPrice | getAskPrevClosePrice() |
DateTime | getAskPrevCloseDate() |
MamaPrice | getAskHigh() |
MamaPrice | getAskLow() |
MamaPrice | getQuoteMidPrice() Get the quote mid price. |
string | getQuoteQual() Get the normalized quote qualifier. |
string | getQuoteQualNative() MamdaQuoteUpdate.getQuoteQualNative() |
char | getShortSaleBidTick() MamdaQuoteUpdate.getShortSaleBidTick() |
char | getShortSaleCircuitBreaker() MamdaQuoteUpdate.getShortSaleCircuitBreaker() |
long | getQuoteCount() Get the quote count. |
long | getEventSeqNum() |
DateTime | getEventTime() |
DateTime | getQuoteDate() |
long | getBeginGapSeqNum() The starting sequence number of detected missing quotes based on the quote count. |
long | getEndGapSeqNum() The end sequence number of detected missing quotes based on the quote count. |
DateTime | getAskTime() |
DateTime | getBidTime() |
string | getAskIndicator() |
string | getBidIndicator() |
long | getAskUpdateCount() |
long | getBidUpdateCount() |
double | getAskYield() |
double | getBidYield() |
MamdaFieldState | getSymbolFieldState() Returns the field state. |
MamdaFieldState | getPartIdFieldState() Returns the field state. |
MamdaFieldState | getSrcTimeFieldState() Returns the field state. |
MamdaFieldState | getActivityTimeFieldState() Returns the field state. |
MamdaFieldState | getLineTimeFieldState() Returns the field state. |
MamdaFieldState | getSendTimeFieldState() Returns the field state. |
MamdaFieldState | getPubIdFieldState() |
MamdaFieldState | getBidPriceFieldState() Get the field state |
MamdaFieldState | getBidSizeFieldState() Get the field state |
MamdaFieldState | getBidDepthFieldState() |
MamdaFieldState | getBidPartIdFieldState() Get the field state |
MamdaFieldState | getBidClosePriceFieldState() |
MamdaFieldState | getBidCloseDateFieldState() |
MamdaFieldState | getBidPrevClosePriceFieldState() |
MamdaFieldState | getBidPrevCloseDateFieldState() |
MamdaFieldState | getBidHighFieldState() |
MamdaFieldState | getBidLowFieldState() |
MamdaFieldState | getAskPriceFieldState() Get the field state |
MamdaFieldState | getAskSizeFieldState() Get the field state |
MamdaFieldState | getAskDepthFieldState() |
MamdaFieldState | getAskPartIdFieldState() Get the field state |
MamdaFieldState | getAskClosePriceFieldState() |
MamdaFieldState | getAskCloseDateFieldState() |
MamdaFieldState | getAskPrevClosePriceFieldState() |
MamdaFieldState | getAskPrevCloseDateFieldState() |
MamdaFieldState | getAskHighFieldState() |
MamdaFieldState | getAskLowFieldState() |
MamdaFieldState | getQuoteQualFieldState() Get the field state |
MamdaFieldState | getQuoteQualNativeFieldState() Get the field state |
MamdaFieldState | getShortSaleBidTickFieldState() Get the field state |
MamdaFieldState | getShortSaleCircuitBreakerFieldState() Get the field state |
MamdaFieldState | getQuoteCountFieldState() Get the field state |
MamdaFieldState | getEventSeqNumFieldState() Returns the field state. |
MamdaFieldState | getEventTimeFieldState() Returns the field state. |
MamdaFieldState | getQuoteDateFieldState() |
MamdaFieldState | getBeginGapSeqNumFieldState() Get the field state |
MamdaFieldState | getEndGapSeqNumFieldState() Get the field state |
MamdaFieldState | getAskTimeFieldState() |
MamdaFieldState | getBidTimeFieldState() |
MamdaFieldState | getAskIndicatorFieldState() |
MamdaFieldState | getBidIndicatorFieldState() |
MamdaFieldState | getAskUpdateCountFieldState() |
MamdaFieldState | getBidUpdateCountFieldState() |
MamdaFieldState | getAskYieldFieldState() |
MamdaFieldState | getBidYieldFieldState() |
void | onMsg(MamdaSubscription subscription, MamaMsg msg, mamaMsgType msgType) Invoked for each message received for the subscription to which the Listener is registered. |
void | populateRecap(MamdaConcreteQuoteRecap recap) |
class Wombat::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.
MamdaQuoteListener()
Create a specialized quote listener. This listener handles quote updates, quote recaps, and quote gap notifications.
void addHandler(
MamdaQuoteHandler handler
)
Add a specialized quote handler. Currently, only one handler can (and must) be registered.
Parameters:
string getSymbol()
Symbol. This is the “well-known” symbol for the security, including any symbology mapping performed by the publisher.
Reimplements: Wombat::MamdaBasicRecap::getSymbol
string getPartId()
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: Wombat::MamdaBasicRecap::getPartId
DateTime getSrcTime()
Returns the source time.
Return: Source time. Typically, the exchange generated feed
Reimplements: Wombat::MamdaBasicEvent::getSrcTime
DateTime getActivityTime()
Return: Activity time. A feed handler generated time stamp representing when the data item was last updated.
Reimplements: Wombat::MamdaBasicEvent::getActivityTime
DateTime getLineTime()
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: Wombat::MamdaBasicRecap::getLineTime
DateTime getSendTime()
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). See MAMA API: MamaDateTime::currentTime()).
Reimplements: Wombat::MamdaBasicRecap::getSendTime
string getPubId()
MamaPrice getBidPrice()
Get the closing bid price.
Return: Today’s closing bid price, after the market has closed and the stock has traded today.
Reimplements: Wombat::MamdaQuoteClosing::getBidPrice
long getBidSize()
Get the closing bid size.
Return: Today’s closing bid size, after the market has closed and the stock has traded today.
Reimplements: Wombat::MamdaQuoteClosing::getBidSize
long getBidDepth()
string getBidPartId()
Get the closing bid participant identifier.
Return: Today’s closing bid participant identifier, after the market has closed and the stock has traded today.
Reimplements: Wombat::MamdaQuoteClosing::getBidPartId
MamaPrice getBidClosePrice()
DateTime getBidCloseDate()
MamaPrice getBidPrevClosePrice()
DateTime getBidPrevCloseDate()
MamaPrice getBidHigh()
MamaPrice getBidLow()
MamaPrice getAskPrice()
Get the closing ask price.
Return: Today’s closing ask price, after the market has closed and the stock has traded today.
Reimplements: Wombat::MamdaQuoteClosing::getAskPrice
long getAskSize()
Get the closing ask size.
Return: Today’s closing ask size, after the market has closed and the stock has traded today.
Reimplements: Wombat::MamdaQuoteClosing::getAskSize
long getAskDepth()
string getAskPartId()
Get the closing ask participant identifier.
Return: Today’s closing ask participant identifier, after the market has closed and the stock has traded today.
Reimplements: Wombat::MamdaQuoteClosing::getAskPartId
MamaPrice getAskClosePrice()
DateTime getAskCloseDate()
MamaPrice getAskPrevClosePrice()
DateTime getAskPrevCloseDate()
MamaPrice getAskHigh()
MamaPrice getAskLow()
MamaPrice getQuoteMidPrice()
Get the quote mid price.
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.
Reimplements: Wombat::MamdaQuoteRecap::getQuoteMidPrice
string getQuoteQual()
Get the normalized quote qualifier.
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. MamdaQuoteUpdate.getQuoteQual
Reimplements: Wombat::MamdaQuoteRecap::getQuoteQual
string getQuoteQualNative()
MamdaQuoteUpdate.getQuoteQualNative()
Return:
Reimplements: Wombat::MamdaQuoteRecap::getQuoteQualNative
char getShortSaleBidTick()
MamdaQuoteUpdate.getShortSaleBidTick()
Return:
Reimplements: Wombat::MamdaQuoteRecap::getShortSaleBidTick
char getShortSaleCircuitBreaker()
MamdaQuoteUpdate.getShortSaleCircuitBreaker()
Return:
Reimplements: Wombat::MamdaQuoteRecap::getShortSaleCircuitBreaker
long getQuoteCount()
Get the quote count.
Return: The number of quotes generated for this security during the current trading session.
Reimplements: Wombat::MamdaQuoteRecap::getQuoteCount
long getEventSeqNum()
Return: Source sequence number. The exchange generated sequence number.
Reimplements: Wombat::MamdaBasicEvent::getEventSeqNum
DateTime getEventTime()
Return: Event time. Typically, when the event actually occurred. This is often the same as the “source time”, because many feeds do not distinguish between the actual event time and when the exchange sent the message.
Reimplements: Wombat::MamdaBasicEvent::getEventTime
DateTime getQuoteDate()
Reimplements: Wombat::MamdaQuoteRecap::getQuoteDate
long getBeginGapSeqNum()
The starting sequence number of detected missing quotes based on the quote count.
Return:
Reimplements: Wombat::MamdaQuoteGap::getBeginGapSeqNum
long getEndGapSeqNum()
The end sequence number of detected missing quotes based on the quote count.
Return:
Reimplements: Wombat::MamdaQuoteGap::getEndGapSeqNum
DateTime getAskTime()
Reimplements: Wombat::MamdaQuoteRecap::getAskTime
DateTime getBidTime()
Reimplements: Wombat::MamdaQuoteRecap::getBidTime
string getAskIndicator()
Reimplements: Wombat::MamdaQuoteRecap::getAskIndicator
string getBidIndicator()
Reimplements: Wombat::MamdaQuoteRecap::getBidIndicator
long getAskUpdateCount()
Reimplements: Wombat::MamdaQuoteRecap::getAskUpdateCount
long getBidUpdateCount()
Reimplements: Wombat::MamdaQuoteRecap::getBidUpdateCount
double getAskYield()
Reimplements: Wombat::MamdaQuoteRecap::getAskYield
double getBidYield()
Reimplements: Wombat::MamdaQuoteRecap::getBidYield
MamdaFieldState getSymbolFieldState()
Returns the field state.
Return: Symbol Field State
Reimplements: Wombat::MamdaBasicRecap::getSymbolFieldState
MamdaFieldState getPartIdFieldState()
Returns the field state.
Return: Participant ID Field State
Reimplements: Wombat::MamdaBasicRecap::getPartIdFieldState
MamdaFieldState getSrcTimeFieldState()
Returns the field state.
Return: Source time Field State
Reimplements: Wombat::MamdaBasicEvent::getSrcTimeFieldState
MamdaFieldState getActivityTimeFieldState()
Returns the field state.
Return: Activity time Field State
Reimplements: Wombat::MamdaBasicEvent::getActivityTimeFieldState
MamdaFieldState getLineTimeFieldState()
Returns the field state.
Return: Line Time Field State
Reimplements: Wombat::MamdaBasicRecap::getLineTimeFieldState
MamdaFieldState getSendTimeFieldState()
Returns the field state.
Return: Send time Field State
Reimplements: Wombat::MamdaBasicRecap::getSendTimeFieldState
MamdaFieldState getPubIdFieldState()
MamdaFieldState getBidPriceFieldState()
Get the field state
Return: Field State
Reimplements: Wombat::MamdaQuoteClosing::getBidPriceFieldState
MamdaFieldState getBidSizeFieldState()
Get the field state
Return: Field State
Reimplements: Wombat::MamdaQuoteClosing::getBidSizeFieldState
MamdaFieldState getBidDepthFieldState()
MamdaFieldState getBidPartIdFieldState()
Get the field state
Return: Field State
Reimplements: Wombat::MamdaQuoteClosing::getBidPartIdFieldState
MamdaFieldState getBidClosePriceFieldState()
MamdaFieldState getBidCloseDateFieldState()
MamdaFieldState getBidPrevClosePriceFieldState()
MamdaFieldState getBidPrevCloseDateFieldState()
MamdaFieldState getBidHighFieldState()
MamdaFieldState getBidLowFieldState()
MamdaFieldState getAskPriceFieldState()
Get the field state
Return: Field State
Reimplements: Wombat::MamdaQuoteClosing::getAskPriceFieldState
MamdaFieldState getAskSizeFieldState()
Get the field state
Return: Field State
Reimplements: Wombat::MamdaQuoteClosing::getAskSizeFieldState
MamdaFieldState getAskDepthFieldState()
MamdaFieldState getAskPartIdFieldState()
Get the field state
Return: Field State
Reimplements: Wombat::MamdaQuoteClosing::getAskPartIdFieldState
MamdaFieldState getAskClosePriceFieldState()
MamdaFieldState getAskCloseDateFieldState()
MamdaFieldState getAskPrevClosePriceFieldState()
MamdaFieldState getAskPrevCloseDateFieldState()
MamdaFieldState getAskHighFieldState()
MamdaFieldState getAskLowFieldState()
MamdaFieldState getQuoteQualFieldState()
Get the field state
Return: Field State
Reimplements: Wombat::MamdaQuoteRecap::getQuoteQualFieldState
MamdaFieldState getQuoteQualNativeFieldState()
Get the field state
Return: Field State
Reimplements: Wombat::MamdaQuoteRecap::getQuoteQualNativeFieldState
MamdaFieldState getShortSaleBidTickFieldState()
Get the field state
Return: Field State
Reimplements: Wombat::MamdaQuoteRecap::getShortSaleBidTickFieldState
MamdaFieldState getShortSaleCircuitBreakerFieldState()
Get the field state
Return: Field State
Reimplements: Wombat::MamdaQuoteRecap::getShortSaleCircuitBreakerFieldState
MamdaFieldState getQuoteCountFieldState()
Get the field state
Return: Field State
Reimplements: Wombat::MamdaQuoteRecap::getQuoteCountFieldState
MamdaFieldState getEventSeqNumFieldState()
Returns the field state.
Return: Source sequence number Field State
Reimplements: Wombat::MamdaBasicEvent::getEventSeqNumFieldState
MamdaFieldState getEventTimeFieldState()
Returns the field state.
Return: Event Time Field State
Reimplements: Wombat::MamdaBasicEvent::getEventTimeFieldState
MamdaFieldState getQuoteDateFieldState()
Reimplements: Wombat::MamdaQuoteRecap::getQuoteDateFieldState
MamdaFieldState getBeginGapSeqNumFieldState()
Get the field state
Return: Field State
Reimplements: Wombat::MamdaQuoteGap::getBeginGapSeqNumFieldState
MamdaFieldState getEndGapSeqNumFieldState()
Get the field state
Return: Field State
Reimplements: Wombat::MamdaQuoteGap::getEndGapSeqNumFieldState
MamdaFieldState getAskTimeFieldState()
Reimplements: Wombat::MamdaQuoteRecap::getAskTimeFieldState
MamdaFieldState getBidTimeFieldState()
Reimplements: Wombat::MamdaQuoteRecap::getBidTimeFieldState
MamdaFieldState getAskIndicatorFieldState()
Reimplements: Wombat::MamdaQuoteRecap::getAskIndicatorFieldState
MamdaFieldState getBidIndicatorFieldState()
Reimplements: Wombat::MamdaQuoteRecap::getBidIndicatorFieldState
MamdaFieldState getAskUpdateCountFieldState()
Reimplements: Wombat::MamdaQuoteRecap::getAskUpdateCountFieldState
MamdaFieldState getBidUpdateCountFieldState()
Reimplements: Wombat::MamdaQuoteRecap::getBidUpdateCountFieldState
MamdaFieldState getAskYieldFieldState()
Reimplements: Wombat::MamdaQuoteRecap::getAskYieldFieldState
MamdaFieldState getBidYieldFieldState()
Reimplements: Wombat::MamdaQuoteRecap::getBidYieldFieldState
void onMsg(
MamdaSubscription subscription,
MamaMsg msg,
mamaMsgType msgType
)
Invoked for each message received for the subscription to which the Listener is registered.
Parameters:
Reimplements: Wombat::MamdaMsgListener::onMsg
void populateRecap(
MamdaConcreteQuoteRecap recap
)
Updated on 2023-03-31 at 15:30:13 +0100