Classes Files

com::wombat::mamda::examples::MamdaBookTicker::BookTicker

Inherits from com.wombat.mamda.orderbook.MamdaOrderBookHandler, com.wombat.mamda.MamdaStaleListener, com.wombat.mamda.MamdaErrorListener

Public Functions

  Name
void onBookDelta(MamdaSubscription sub, MamdaOrderBookListener listener, MamaMsg msg, MamdaOrderBookSimpleDelta delta, MamdaOrderBook book)
void onBookComplexDelta(MamdaSubscription subscription, MamdaOrderBookListener listener, MamaMsg msg, MamdaOrderBookComplexDelta delta, MamdaOrderBook book)
void onBookClear(MamdaSubscription subscription, MamdaOrderBookListener listener, MamaMsg msg, MamdaOrderBookClear event, MamdaOrderBook book)
void onBookRecap(MamdaSubscription sub, MamdaOrderBookListener listener, MamaMsg msg, MamdaOrderBookComplexDelta delta, MamdaOrderBookRecap event, MamdaOrderBook book)
void onBookGap(MamdaSubscription sub, MamdaOrderBookListener listener, MamaMsg msg, MamdaOrderBookGap event, MamdaOrderBook fullBook)
void onStale(MamdaSubscription subscription, short quality)
void onError(MamdaSubscription subscription, short severity, short errorCode, String errorStr)
void setShowMarketOrders(boolean showMarketOrders)
void prettyPrint(final MamdaOrderBook book)
void prettyPrintLevels(final MamdaOrderBook book)
void prettyPrintEntries(final MamdaOrderBook book)

Public Functions Documentation

function onBookDelta

inline void onBookDelta(
    MamdaSubscription sub,
    MamdaOrderBookListener listener,
    MamaMsg msg,
    MamdaOrderBookSimpleDelta delta,
    MamdaOrderBook book
)

function onBookComplexDelta

inline void onBookComplexDelta(
    MamdaSubscription subscription,
    MamdaOrderBookListener listener,
    MamaMsg msg,
    MamdaOrderBookComplexDelta delta,
    MamdaOrderBook book
)

function onBookClear

inline void onBookClear(
    MamdaSubscription subscription,
    MamdaOrderBookListener listener,
    MamaMsg msg,
    MamdaOrderBookClear event,
    MamdaOrderBook book
)

Parameters:

  • subscription The subscription which received the update.
  • listener The listener which invoked this callback.
  • msg The MamaMsg that triggered this invocation.
  • event The clear event.

Method invoked when an order book is cleared.

function onBookRecap

inline void onBookRecap(
    MamdaSubscription sub,
    MamdaOrderBookListener listener,
    MamaMsg msg,
    MamdaOrderBookComplexDelta delta,
    MamdaOrderBookRecap event,
    MamdaOrderBook book
)

function onBookGap

inline void onBookGap(
    MamdaSubscription sub,
    MamdaOrderBookListener listener,
    MamaMsg msg,
    MamdaOrderBookGap event,
    MamdaOrderBook fullBook
)

function onStale

inline void onStale(
    MamdaSubscription subscription,
    short quality
)

function onError

inline void onError(
    MamdaSubscription subscription,
    short severity,
    short errorCode,
    String errorStr
)

function setShowMarketOrders

inline void setShowMarketOrders(
    boolean showMarketOrders
)

function prettyPrint

inline void prettyPrint(
    final MamdaOrderBook book
)

function prettyPrintLevels

inline void prettyPrintLevels(
    final MamdaOrderBook book
)

function prettyPrintEntries

inline void prettyPrintEntries(
    final MamdaOrderBook book
)

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