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.
Name | |
---|---|
void | onTradeRecap(MamdaSubscription subscription, MamdaTradeListener listener, MamaMsg msg, MamdaTradeRecap recap) Method invoked when the current last-trade information for the security is available. The reason for the invocation may be any of the following: |
void | onTradeReport(MamdaSubscription subscription, MamdaTradeListener listener, MamaMsg msg, MamdaTradeReport reportEvent, MamdaTradeRecap recap) Method invoked when a trade is reported. |
void | onTradeGap(MamdaSubscription subscription, MamdaTradeListener listener, MamaMsg msg, MamdaTradeGap gapEvent, MamdaTradeRecap recap) Method invoked when a gap in trade reports is discovered. |
void | onTradeCancelOrError(MamdaSubscription subscription, MamdaTradeListener listener, MamaMsg msg, MamdaTradeCancelOrError cancelOrErrorEvent, MamdaTradeRecap recap) Method invoked when a trade cancel or error is reported. |
void | onTradeCorrection(MamdaSubscription subscription, MamdaTradeListener listener, MamaMsg msg, MamdaTradeCorrection correctionEvent, MamdaTradeRecap recap) Method invoked when a trade correction is reported. |
void | onTradeClosing(MamdaSubscription subscription, MamdaTradeListener listener, MamaMsg msg, MamdaTradeClosing closingEvent, MamdaTradeRecap recap) Method invoked for a closing report. |
void onTradeRecap(
MamdaSubscription subscription,
MamdaTradeListener listener,
MamaMsg msg,
MamdaTradeRecap recap
)
Method invoked when the current last-trade information for the security is available. The reason for the invocation may be any of the following:
Parameters:
recap Access to the trade fields in the recap update.
void onTradeReport(
MamdaSubscription subscription,
MamdaTradeListener listener,
MamaMsg msg,
MamdaTradeReport reportEvent,
MamdaTradeRecap recap
)
Method invoked when a trade is reported.
Parameters:
void onTradeGap(
MamdaSubscription subscription,
MamdaTradeListener listener,
MamaMsg msg,
MamdaTradeGap gapEvent,
MamdaTradeRecap recap
)
Method invoked when a gap in trade reports is discovered.
Parameters:
void onTradeCancelOrError(
MamdaSubscription subscription,
MamdaTradeListener listener,
MamaMsg msg,
MamdaTradeCancelOrError cancelOrErrorEvent,
MamdaTradeRecap recap
)
Method invoked when a trade cancel or error is reported.
Parameters:
void onTradeCorrection(
MamdaSubscription subscription,
MamdaTradeListener listener,
MamaMsg msg,
MamdaTradeCorrection correctionEvent,
MamdaTradeRecap recap
)
Method invoked when a trade correction is reported.
Parameters:
void onTradeClosing(
MamdaSubscription subscription,
MamdaTradeListener listener,
MamaMsg msg,
MamdaTradeClosing closingEvent,
MamdaTradeRecap recap
)
Method invoked for a closing report.
Parameters:
Updated on 2023-03-31 at 15:30:15 +0100