Classes Files

com::wombat::mamda::examples::MamdaOptionChainViewExample::OptionContractTicker

More…

Inherits from com.wombat.mamda.MamdaTradeHandler, com.wombat.mamda.MamdaQuoteHandler

Public Functions

  Name
  OptionContractTicker(MamdaOptionContract contract, MamdaOptionChainView view, OptionChainDisplay display)
void onTradeRecap(final MamdaSubscription sub, final MamdaTradeListener listener, final MamaMsg msg, final MamdaTradeRecap recap)
void onTradeReport(final MamdaSubscription sub, final MamdaTradeListener listener, final MamaMsg msg, final MamdaTradeReport trade, final MamdaTradeRecap recap)
void onTradeGap(final MamdaSubscription sub, final MamdaTradeListener listener, final MamaMsg msg, final MamdaTradeGap event, final MamdaTradeRecap recap)
void onTradeCancelOrError(final MamdaSubscription sub, final MamdaTradeListener listener, final MamaMsg msg, final MamdaTradeCancelOrError event, final MamdaTradeRecap recap)
void onTradeCorrection(final MamdaSubscription sub, final MamdaTradeListener listener, final MamaMsg msg, final MamdaTradeCorrection event, final MamdaTradeRecap recap)
void onTradeClosing(final MamdaSubscription sub, final MamdaTradeListener listener, final MamaMsg msg, final MamdaTradeClosing event, final MamdaTradeRecap recap)
void onQuoteRecap(final MamdaSubscription sub, final MamdaQuoteListener listener, final MamaMsg msg, final MamdaQuoteRecap recap)
void onQuoteUpdate(final MamdaSubscription sub, final MamdaQuoteListener listener, final MamaMsg msg, final MamdaQuoteUpdate event, final MamdaQuoteRecap recap)
void onQuoteGap(final MamdaSubscription sub, final MamdaQuoteListener listener, final MamaMsg msg, final MamdaQuoteGap event, final MamdaQuoteRecap recap)
void onQuoteClosing(final MamdaSubscription sub, final MamdaQuoteListener listener, final MamaMsg msg, final MamdaQuoteClosing event, final MamdaQuoteRecap recap)

Detailed Description

class com::wombat::mamda::examples::MamdaOptionChainViewExample::OptionContractTicker;

OptionContractTicker is a class that we can use to handle updates to individual option contracts. This example just prints individual trades and quotes. Instances of this class are associated with actual option contracts in the OptionChainDisplay.onOptionSeriesUpdate method, above. The trade and quote information of the underlying is accessible via the chain argument.

Public Functions Documentation

function OptionContractTicker

inline OptionContractTicker(
    MamdaOptionContract contract,
    MamdaOptionChainView view,
    OptionChainDisplay display
)

function onTradeRecap

inline void onTradeRecap(
    final MamdaSubscription sub,
    final MamdaTradeListener listener,
    final MamaMsg msg,
    final MamdaTradeRecap recap
)

function onTradeReport

inline void onTradeReport(
    final MamdaSubscription sub,
    final MamdaTradeListener listener,
    final MamaMsg msg,
    final MamdaTradeReport trade,
    final MamdaTradeRecap recap
)

function onTradeGap

inline void onTradeGap(
    final MamdaSubscription sub,
    final MamdaTradeListener listener,
    final MamaMsg msg,
    final MamdaTradeGap event,
    final MamdaTradeRecap recap
)

function onTradeCancelOrError

inline void onTradeCancelOrError(
    final MamdaSubscription sub,
    final MamdaTradeListener listener,
    final MamaMsg msg,
    final MamdaTradeCancelOrError event,
    final MamdaTradeRecap recap
)

function onTradeCorrection

inline void onTradeCorrection(
    final MamdaSubscription sub,
    final MamdaTradeListener listener,
    final MamaMsg msg,
    final MamdaTradeCorrection event,
    final MamdaTradeRecap recap
)

function onTradeClosing

inline void onTradeClosing(
    final MamdaSubscription sub,
    final MamdaTradeListener listener,
    final MamaMsg msg,
    final MamdaTradeClosing event,
    final MamdaTradeRecap recap
)

function onQuoteRecap

inline void onQuoteRecap(
    final MamdaSubscription sub,
    final MamdaQuoteListener listener,
    final MamaMsg msg,
    final MamdaQuoteRecap recap
)

function onQuoteUpdate

inline void onQuoteUpdate(
    final MamdaSubscription sub,
    final MamdaQuoteListener listener,
    final MamaMsg msg,
    final MamdaQuoteUpdate event,
    final MamdaQuoteRecap recap
)

function onQuoteGap

inline void onQuoteGap(
    final MamdaSubscription sub,
    final MamdaQuoteListener listener,
    final MamaMsg msg,
    final MamdaQuoteGap event,
    final MamdaQuoteRecap recap
)

function onQuoteClosing

inline void onQuoteClosing(
    final MamdaSubscription sub,
    final MamdaQuoteListener listener,
    final MamaMsg msg,
    final MamdaQuoteClosing event,
    final MamdaQuoteRecap recap
)

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