MamdaAuctionListener is a class that specializes in handling Auction updates. Developers provide their own implementation of the MamdaAuctionHandler interface and will be delivered notifications for Auctions and Auction closing prices. An obvious application for this MAMDA class is any kind of Auction tick capture application. More…
Inherits from Wombat.MamdaMsgListener, Wombat.MamdaAuctionRecap, Wombat.MamdaAuctionUpdate, Wombat.MamdaBasicRecap, Wombat.MamdaBasicEvent
Name | |
---|---|
MamdaAuctionListener() Create a specialized Auction listener. This listener handles Auction updates, quote recaps, and Auction gap notifications. |
|
void | addHandler(MamdaAuctionHandler handler) Add a specialized Auction 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()). |
DateTime | getEventTime() |
long | getEventSeqNum() |
MamaPrice | getUncrossPrice() Get the uncross price. |
double | getUncrossVolume() Get the uncross Volume. |
long | getUncrossPriceInd() Get the uncross price indicator. |
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 | getEventTimeFieldState() Returns the field state. |
MamdaFieldState | getEventSeqNumFieldState() Returns the field state. |
MamdaFieldState | getUncrossPriceFieldState() Get the field state |
MamdaFieldState | getUncrossVolumeFieldState() Get the field state |
MamdaFieldState | getUncrossPriceIndFieldState() Get the field state |
void | onMsg(MamdaSubscription subscription, MamaMsg msg, mamaMsgType msgType) Invoked for each message received for the subscription to which the Listener is registered. |
string | getFieldAsString(MamaMsgField field) |
class Wombat::MamdaAuctionListener;
MamdaAuctionListener is a class that specializes in handling Auction updates. Developers provide their own implementation of the MamdaAuctionHandler interface and will be delivered notifications for Auctions and Auction closing prices. An obvious application for this MAMDA class is any kind of Auction tick capture application.
Note: The MamdaAuctionListener class caches Auction-related field values. Among other reasons, caching of these fields makes it possible to provide complete Auction-related callbacks, even when the publisher (e.g., feed handler) is only publishing deltas containing modified fields.
MamdaAuctionListener()
Create a specialized Auction listener. This listener handles Auction updates, quote recaps, and Auction gap notifications.
void addHandler(
MamdaAuctionHandler handler
)
Add a specialized Auction 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
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
long getEventSeqNum()
Return: Source sequence number. The exchange generated sequence number.
Reimplements: Wombat::MamdaBasicEvent::getEventSeqNum
MamaPrice getUncrossPrice()
Get the uncross price.
Return: Indicative or firm auction price.
Reimplements: Wombat::MamdaAuctionRecap::getUncrossPrice
double getUncrossVolume()
Get the uncross Volume.
Return: Indicative Volume or the volume turned over in the auction
Reimplements: Wombat::MamdaAuctionRecap::getUncrossVolume
long getUncrossPriceInd()
Get the uncross price indicator.
Return: The uncross price ind - indicates whether the price and volume is indicative of the current state of the auction or whether its the firm auction price and volume
Reimplements: Wombat::MamdaAuctionRecap::getUncrossPriceInd
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 getEventTimeFieldState()
Returns the field state.
Return: Event Time Field State
Reimplements: Wombat::MamdaBasicEvent::getEventTimeFieldState
MamdaFieldState getEventSeqNumFieldState()
Returns the field state.
Return: Source sequence number Field State
Reimplements: Wombat::MamdaBasicEvent::getEventSeqNumFieldState
MamdaFieldState getUncrossPriceFieldState()
Get the field state
Return: Field state
Reimplements: Wombat::MamdaAuctionRecap::getUncrossPriceFieldState
MamdaFieldState getUncrossVolumeFieldState()
Get the field state
Return: Field State
Reimplements: Wombat::MamdaAuctionRecap::getUncrossVolumeFieldState
MamdaFieldState getUncrossPriceIndFieldState()
Get the field state
Return: Field state
Reimplements: Wombat::MamdaAuctionRecap::getUncrossPriceIndFieldState
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
string getFieldAsString(
MamaMsgField field
)
Updated on 2023-03-31 at 15:30:12 +0100