#include <MamdaTradeHandler.h>
Name | |
---|---|
virtual void | onTradeRecap(MamdaSubscription * subscription, MamdaTradeListener & listener, const MamaMsg & msg, const MamdaTradeRecap & recap) =0 |
virtual void | onTradeReport(MamdaSubscription * subscription, MamdaTradeListener & listener, const MamaMsg & msg, const MamdaTradeReport & event, const MamdaTradeRecap & recap) =0 |
virtual void | onTradeGap(MamdaSubscription * subscription, MamdaTradeListener & listener, const MamaMsg & msg, const MamdaTradeGap & event, const MamdaTradeRecap & recap) =0 |
virtual void | onTradeCancelOrError(MamdaSubscription * subscription, MamdaTradeListener & listener, const MamaMsg & msg, const MamdaTradeCancelOrError & event, const MamdaTradeRecap & recap) =0 |
virtual void | onTradeCorrection(MamdaSubscription * subscription, MamdaTradeListener & listener, const MamaMsg & msg, const MamdaTradeCorrection & event, const MamdaTradeRecap & recap) =0 |
virtual void | onTradeClosing(MamdaSubscription * subscription, MamdaTradeListener & listener, const MamaMsg & msg, const MamdaTradeClosing & event, const MamdaTradeRecap & recap) =0 |
virtual void | onTradeOutOfSequence(MamdaSubscription * subscription, MamdaTradeListener & listener, const MamaMsg & msg, const MamdaTradeOutOfSequence & event, const MamdaTradeRecap & recap) =0 |
virtual void | onTradePossiblyDuplicate(MamdaSubscription * subscription, MamdaTradeListener & listener, const MamaMsg & msg, const MamdaTradePossiblyDuplicate & event, const MamdaTradeRecap & recap) =0 |
virtual | ~MamdaTradeHandler() |
class Wombat::MamdaTradeHandler;
MamdaTradeHandler is an interface for applications that want to have an easy way to handle trade updates. The interface defines callback methods for different types of trade-related events: trades, errors/cancels, corrections, recaps and closing reports.
virtual void onTradeRecap(
MamdaSubscription * subscription,
MamdaTradeListener & listener,
const MamaMsg & msg,
const MamdaTradeRecap & recap
) =0
Parameters:
Method invoked when the current last-trade information for the security is available. The reason for the invocation may be any of the following:
virtual void onTradeReport(
MamdaSubscription * subscription,
MamdaTradeListener & listener,
const MamaMsg & msg,
const MamdaTradeReport & event,
const MamdaTradeRecap & recap
) =0
Parameters:
Method invoked when a trade is reported.
virtual void onTradeGap(
MamdaSubscription * subscription,
MamdaTradeListener & listener,
const MamaMsg & msg,
const MamdaTradeGap & event,
const MamdaTradeRecap & recap
) =0
Parameters:
Method invoked when a gap in trade reports is discovered.
virtual void onTradeCancelOrError(
MamdaSubscription * subscription,
MamdaTradeListener & listener,
const MamaMsg & msg,
const MamdaTradeCancelOrError & event,
const MamdaTradeRecap & recap
) =0
Parameters:
Method invoked when a trade cancel or error is reported.
virtual void onTradeCorrection(
MamdaSubscription * subscription,
MamdaTradeListener & listener,
const MamaMsg & msg,
const MamdaTradeCorrection & event,
const MamdaTradeRecap & recap
) =0
Parameters:
Method invoked when a trade correction is reported.
virtual void onTradeClosing(
MamdaSubscription * subscription,
MamdaTradeListener & listener,
const MamaMsg & msg,
const MamdaTradeClosing & event,
const MamdaTradeRecap & recap
) =0
Parameters:
Method invoked for a closing report.
virtual void onTradeOutOfSequence(
MamdaSubscription * subscription,
MamdaTradeListener & listener,
const MamaMsg & msg,
const MamdaTradeOutOfSequence & event,
const MamdaTradeRecap & recap
) =0
Parameters:
Method invoked for a message marked as out of sequence. Listener must be configured to check the Msg Qualifier, i.e., call setControlProcessingByMsgQual()
on listener passing a value of true;
virtual void onTradePossiblyDuplicate(
MamdaSubscription * subscription,
MamdaTradeListener & listener,
const MamaMsg & msg,
const MamdaTradePossiblyDuplicate & event,
const MamdaTradeRecap & recap
) =0
Parameters:
Method invoked for a message which is marked as possibly duplicate Listener must be configured to check the Msg Qualifier, i.e., call setControlProcessingByMsgQual
on listener passing a value of true;
inline virtual ~MamdaTradeHandler()
Updated on 2023-03-31 at 15:29:59 +0100