Classes Files

Wombat::MamdaCurrencyListener

More…

#include <MamdaCurrencyListener.h>

Inherits from Wombat::MamdaMsgListener, Wombat::MamdaCurrencyRecap, Wombat::MamdaCurrencyUpdate, Wombat::MamdaBasicRecap, Wombat::MamdaBasicEvent

Public Functions

  Name
  MamdaCurrencyListener()
virtual ~MamdaCurrencyListener()
void addHandler(MamdaCurrencyHandler * handler)
virtual const char * getSymbol() const
virtual const char * getPartId() const
virtual const MamaDateTime & getSrcTime() const
virtual const MamaDateTime & getActivityTime() const
virtual const MamaDateTime & getLineTime() const
virtual const MamaDateTime & getSendTime() const
virtual mama_seqnum_t getEventSeqNum() const
virtual const MamaDateTime & getEventTime() const
virtual const MamaMsgQual & getMsgQual() const
bool isInitialised() const
virtual MamdaFieldState getSymbolFieldState() const
virtual MamdaFieldState getPartIdFieldState() const
virtual MamdaFieldState getSrcTimeFieldState() const
virtual MamdaFieldState getActivityTimeFieldState() const
virtual MamdaFieldState getLineTimeFieldState() const
virtual MamdaFieldState getSendTimeFieldState() const
virtual MamdaFieldState getEventSeqNumFieldState() const
virtual MamdaFieldState getEventTimeFieldState() const
virtual MamdaFieldState getMsgQualFieldState() const
virtual const MamaPrice & getBidPrice() const
virtual const MamaPrice & getAskPrice() const
virtual MamdaFieldState getBidPriceFieldState() const
virtual MamdaFieldState getAskPriceFieldState() const
virtual void onMsg(MamdaSubscription * subscription, const MamaMsg & msg, short msgType)

Additional inherited members

Public Functions inherited from Wombat::MamdaMsgListener

  Name
virtual ~MamdaMsgListener()

Public Functions inherited from Wombat::MamdaCurrencyRecap

  Name
virtual ~MamdaCurrencyRecap()

Public Functions inherited from Wombat::MamdaCurrencyUpdate

  Name
virtual ~MamdaCurrencyUpdate()

Public Functions inherited from Wombat::MamdaBasicRecap

  Name
virtual ~MamdaBasicRecap()

Public Functions inherited from Wombat::MamdaBasicEvent

  Name
virtual ~MamdaBasicEvent()

Detailed Description

class Wombat::MamdaCurrencyListener;

MamdaCurrencyListener is a class that specializes in handling currency data, Developers provide their own implementation of the MamdaCurrencyHandler interface and will be delivered notifications for updates in the currency data. An obvious application for this MAMDA class is any kind of currency analysis application.

MamdaCurrencyListener should initialize the MamdaCurrencyFields class prior to receiving the first message by calling MamdaCurrencyFields::setDictionary() with a valid dictionary object which contains Currency related fields.

Public Functions Documentation

function MamdaCurrencyListener

MamdaCurrencyListener()

function ~MamdaCurrencyListener

virtual ~MamdaCurrencyListener()

function addHandler

void addHandler(
    MamdaCurrencyHandler * handler
)

function getSymbol

virtual const char * getSymbol() const

Return: Symbol. This is the “well-known” symbol for the security, including any symbology mapping performed by the publisher.

Reimplements: Wombat::MamdaBasicEvent::getSymbol

Get the instruments string symbol.

function getPartId

virtual const char * getPartId() const

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: Wombat::MamdaBasicEvent::getPartId

Get the participant identifier.

function getSrcTime

virtual const MamaDateTime & getSrcTime() const

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: Wombat::MamdaBasicEvent::getSrcTime

Get the source time.

function getActivityTime

virtual const MamaDateTime & getActivityTime() const

Return: Activity time. A feed handler generated time stamp representing when the data item was last updated.

Reimplements: Wombat::MamdaBasicEvent::getActivityTime

Get the activity time.

function getLineTime

virtual const MamaDateTime & getLineTime() const

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: Wombat::MamdaBasicEvent::getLineTime

Get the line time.

function getSendTime

virtual const MamaDateTime & getSendTime() const

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). See MAMA API: MamaDateTime::currentTime()).

Reimplements: Wombat::MamdaBasicEvent::getSendTime

Get the send time.

function getEventSeqNum

virtual mama_seqnum_t getEventSeqNum() const

Return: Source sequence number. The exchange generated sequence number.

Reimplements: Wombat::MamdaBasicEvent::getEventSeqNum

Get the event sequence number.

function getEventTime

virtual const MamaDateTime & getEventTime() const

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

Get the event time.

function getMsgQual

virtual const MamaMsgQual & getMsgQual() const

Return: Message Qualifier. The message qualifier provides information in relation to messages duplicate, delayed or out-of-sequence status.

Reimplements: Wombat::MamdaBasicEvent::getMsgQual

Get the message qualifier.

function isInitialised

bool isInitialised() const

function getSymbolFieldState

virtual MamdaFieldState getSymbolFieldState() const

Return: MamdaFieldState. An enumeration representing field state.

Reimplements: Wombat::MamdaBasicEvent::getSymbolFieldState

Get the string symbol field state

function getPartIdFieldState

virtual MamdaFieldState getPartIdFieldState() const

Return: MamdaFieldState. An enumeration representing field state.

Reimplements: Wombat::MamdaBasicEvent::getPartIdFieldState

Get the participant identifier field state.

function getSrcTimeFieldState

virtual MamdaFieldState getSrcTimeFieldState() const

Return: MamdaFieldState. An enumeration representing field state.

Reimplements: Wombat::MamdaBasicEvent::getSrcTimeFieldState

Get the source time field state

function getActivityTimeFieldState

virtual MamdaFieldState getActivityTimeFieldState() const

Return: MamdaFieldState. An enumeration representing field state.

Reimplements: Wombat::MamdaBasicEvent::getActivityTimeFieldState

Get the activity time field state

function getLineTimeFieldState

virtual MamdaFieldState getLineTimeFieldState() const

Return: MamdaFieldState. An enumeration representing field state.

Reimplements: Wombat::MamdaBasicEvent::getLineTimeFieldState

Get the line time of the update.

function getSendTimeFieldState

virtual MamdaFieldState getSendTimeFieldState() const

Return: MamdaFieldState. An enumeration representing field state.

Reimplements: Wombat::MamdaBasicEvent::getSendTimeFieldState

Get the send time field state

function getEventSeqNumFieldState

virtual MamdaFieldState getEventSeqNumFieldState() const

Return: MamdaFieldState. An enumeration representing field state.

Reimplements: Wombat::MamdaBasicEvent::getEventSeqNumFieldState

Get the event sequence number field state.

function getEventTimeFieldState

virtual MamdaFieldState getEventTimeFieldState() const

Return: MamdaFieldState. An enumeration representing field state.

Reimplements: Wombat::MamdaBasicEvent::getEventTimeFieldState

Get the event time field state.

function getMsgQualFieldState

virtual MamdaFieldState getMsgQualFieldState() const

Return: Message Qualifier. The message qualifier provides information in relation to messages duplicate, delayed or out-of-sequence status.

Reimplements: Wombat::MamdaBasicEvent::getMsgQualFieldState

Get the message qualifier field state.

function getBidPrice

virtual const MamaPrice & getBidPrice() const

Return: Bid price. The highest price that the representative party/group is willing to pay to buy the security.

Reimplements: Wombat::MamdaCurrencyRecap::getBidPrice

Get the currency bid price.

function getAskPrice

virtual const MamaPrice & getAskPrice() const

Return: Ask price. The lowest price that the representative party/group is willing to take to sell the security.

Reimplements: Wombat::MamdaCurrencyRecap::getAskPrice

Get the currency ask price.

function getBidPriceFieldState

virtual MamdaFieldState getBidPriceFieldState() const

Return: MamdaFieldState. An enumeration representing field state.

Reimplements: Wombat::MamdaCurrencyRecap::getBidPriceFieldState

Get the quote ask price fieldState

function getAskPriceFieldState

virtual MamdaFieldState getAskPriceFieldState() const

Return: MamdaFieldState. An enumeration representing field state.

Reimplements: Wombat::MamdaCurrencyRecap::getAskPriceFieldState

Get the quote ask price fieldState

function onMsg

virtual void onMsg(
    MamdaSubscription * subscription,
    const MamaMsg & msg,
    short msgType
)

Exceptions:

  • **** {MAMDA default implementation.}

Reimplements: Wombat::MamdaMsgListener::onMsg

Implementation of MamdaListener interface.


Updated on 2023-03-31 at 15:29:57 +0100