Classes Files

com::wombat::mamda::MamdaMultiParticipantManager

More…

Inherits from com.wombat.mamda.MamdaMsgListener

Public Functions

  Name
  MamdaMultiParticipantManager(String symbol)
void addHandler(MamdaMultiParticipantHandler handler)
void addConsolidatedListener(MamdaMsgListener listener)
void addParticipantListener(MamdaMsgListener listener, String partId)
void onMsg(final MamdaSubscription subscription, final MamaMsg msg, final short msgType)

Detailed Description

class com::wombat::mamda::MamdaMultiParticipantManager;

MamdaMultiParticipantManager is a class that manages updates on a consolidated basis for securities that may be traded on multiple exchanges and which may have a national best bid and offer. Developers are notified of each element available for the consolidated security, including the national best bid and offer, and each regional exchange (Market Maker). Developers can pick and choose which elements they wish to provide handling for (e.g., BBO-only, certain regional exchanges, etc.).

Specialized Listeners can be added to the [MamdaMultiParticipantManager](classcom_1_1wombat_1_1mamda_1_1MamdaMultiParticipantManager.html) in response to the callbacks on the [MamdaMultiParticipantHandler](interfacecom_1_1wombat_1_1mamda_1_1MamdaMultiParticipantHandler.html) being invoked. Alternatively, the Listeners can be added up front if the participants are known in advance.

Note: the [MamdaMultiParticipantManager](classcom_1_1wombat_1_1mamda_1_1MamdaMultiParticipantManager.html) can also be used for securities that are not traded on multiple exchanges.

Public Functions Documentation

function MamdaMultiParticipantManager

inline MamdaMultiParticipantManager(
    String symbol
)

Parameters:

  • symbol The group symbol for which the corresponding subscription was created.

Only constructor for the class. No default available.

function addHandler

inline void addHandler(
    MamdaMultiParticipantHandler handler
)

Parameters:

Add a specialized handler for notifications about the multi-participant security.

function addConsolidatedListener

inline void addConsolidatedListener(
    MamdaMsgListener listener
)

Parameters:

Add a specialized message listener (e.g., a MamdaQuoteListener, MamdaTradeListener, etc.) for the consolidated data.

Multiple listeners can be added.

function addParticipantListener

inline void addParticipantListener(
    MamdaMsgListener listener,
    String partId
)

Parameters:

  • listener Concrete instance of the MamdaMsgListener interface.
  • partId The participant id for the instrument. This is suffix for the symbol in NYSE Technologies symbology.

Add a specialized message listener (e.g., a MamdaQuoteListener, MamdaTradeListener, etc.) for a participant.

Multiple listeners for each participant can be added.

function onMsg

inline void onMsg(
    final MamdaSubscription subscription,
    final MamaMsg msg,
    final short msgType
)

Reimplements: com::wombat::mamda::MamdaMsgListener::onMsg

Implementation of the MamdaMsgListener Interface.


Updated on 2023-03-31 at 15:30:33 +0100