MamdaMultiSecurityManager is a class that manages updates on a group symbol which provides a single subscription to multiple different securities. Developers are notified of each element available for the group and can choose which elements they wish to provide handling for (e.g. based on wildcards). More…
Inherits from Wombat.MamdaMsgListener
Name | |
---|---|
MamdaMultiSecurityManager(string symbol) Only constructor for the class. No default available. |
|
void | addHandler(MamdaMultiSecurityHandler handler) Add a specialized handler for notifications about new securities. |
void | addListener(MamdaMsgListener listener, string symbol) Add a specialized message listener (e.g. a MamdaQuoteListener, MamdaTradeListener, etc.) for a security. |
void | onMsg(MamdaSubscription subscription, MamaMsg msg, mamaMsgType msgType) Implementation of the MamdaMsgListener Interface. |
class Wombat::MamdaMultiSecurityManager;
MamdaMultiSecurityManager is a class that manages updates on a group symbol which provides a single subscription to multiple different securities. Developers are notified of each element available for the group and can choose which elements they wish to provide handling for (e.g. based on wildcards).
Specialized Listeners can be added to the [MamdaMultiSecurityManager](classWombat_1_1MamdaMultiSecurityManager.html)
in response to the callbacks on the [MamdaMultiSecurityHandler](interfaceWombat_1_1MamdaMultiSecurityHandler.html)
being invoked. Alternatively, the Listeners can be added up front if the participants are known in advance.
MamdaMultiSecurityManager(
string symbol
)
Only constructor for the class. No default available.
Parameters:
void addHandler(
MamdaMultiSecurityHandler handler
)
Add a specialized handler for notifications about new securities.
Parameters:
void addListener(
MamdaMsgListener listener,
string symbol
)
Add a specialized message listener (e.g. a MamdaQuoteListener, MamdaTradeListener, etc.) for a security.
Parameters:
Multiple listeners for each security can be added.
void onMsg(
MamdaSubscription subscription,
MamaMsg msg,
mamaMsgType msgType
)
Implementation of the MamdaMsgListener Interface.
Parameters:
Reimplements: Wombat::MamdaMsgListener::onMsg
Updated on 2023-03-31 at 15:30:12 +0100