Classes Files

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). More…

Inherits from Wombat.MamdaMsgListener

Public Functions

  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.

Detailed Description

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.

Public Functions Documentation

function MamdaMultiSecurityManager

MamdaMultiSecurityManager(
    string symbol
)

Only constructor for the class. No default available.

Parameters:

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

function addHandler

void addHandler(
    MamdaMultiSecurityHandler handler
)

Add a specialized handler for notifications about new securities.

Parameters:

function addListener

void addListener(
    MamdaMsgListener listener,
    string symbol
)

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

Parameters:

  • listener Concrete instance of the MamdaMsgListener interface.
  • symbol The symbol for the instrument.

Multiple listeners for each security can be added.

function onMsg

void onMsg(
    MamdaSubscription subscription,
    MamaMsg msg,
    mamaMsgType msgType
)

Implementation of the MamdaMsgListener Interface.

Parameters:

  • subscription
  • msg
  • msgType

Reimplements: Wombat::MamdaMsgListener::onMsg


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