Inherits from com.wombat.mamda.MamdaMsgListener
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) |
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.
inline MamdaMultiParticipantManager(
String symbol
)
Parameters:
Only constructor for the class. No default available.
inline void addHandler(
MamdaMultiParticipantHandler handler
)
Parameters:
Add a specialized handler for notifications about the multi-participant security.
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.
inline void addParticipantListener(
MamdaMsgListener listener,
String partId
)
Parameters:
Add a specialized message listener (e.g., a MamdaQuoteListener, MamdaTradeListener, etc.) for a participant.
Multiple listeners for each participant can be added.
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