Classes Files

com::wombat::mamda::options::MamdaOptionChainListener

More…

Inherits from com.wombat.mamda.MamdaMsgListener, com.wombat.mamda.options.MamdaOptionSeriesUpdate, com.wombat.mamda.MamdaBasicEvent

Public Functions

  Name
  MamdaOptionChainListener(String underlyingSymbol)
  MamdaOptionChainListener(MamdaOptionChain chain)
void addHandler(MamdaOptionChainHandler handler)
MamdaOptionChain getOptionChain()
void onMsg(MamdaSubscription subscription, MamaMsg msg, short msgType)
MamaDateTime getSrcTime()
MamaDateTime getActivityTime()
long getEventSeqNum()
MamaDateTime getEventTime()
short getSrcTimeFieldState()
short getActivityTimeFieldState()
short getEventSeqNumFieldState()
short getEventTimeFieldState()
MamdaOptionContract getOptionContract()
char getOptionAction()

Public Attributes

  Name
final char ACTION_UNKNOWN
final char ACTION_ADD
final char ACTION_DELETE

Detailed Description

class com::wombat::mamda::options::MamdaOptionChainListener;

MamdaOptionChainListener is a class that specializes in handling and managing option chain updates. Developers provide their own implementation of the MamdaOptionChainHandler interface and will be delivered notifications for various types of options-related events.

Public Functions Documentation

function MamdaOptionChainListener

inline MamdaOptionChainListener(
    String underlyingSymbol
)

Create a specialized option chain listener. This listener handles option chain updates.

function MamdaOptionChainListener

inline MamdaOptionChainListener(
    MamdaOptionChain chain
)

Create a specialized option chain listener. This listener handles option chain updates.

function addHandler

inline void addHandler(
    MamdaOptionChainHandler handler
)

Add a specialized option chain handler. Currently, only one handler can (and must) be registered.

function getOptionChain

inline MamdaOptionChain getOptionChain()

Return the option chain associated with this listener.

function onMsg

inline void onMsg(
    MamdaSubscription subscription,
    MamaMsg msg,
    short msgType
)

Reimplements: com::wombat::mamda::MamdaMsgListener::onMsg

Implementation of MamdaListener interface.

function getSrcTime

inline MamaDateTime getSrcTime()

Return: Source time. Typically, the exchange generated feed time stamp. This is often the same as the “event time”, because many feeds do not distinguish between the actual event time and when the exchange sent the message.

Reimplements: com::wombat::mamda::MamdaBasicEvent::getSrcTime

function getActivityTime

inline MamaDateTime getActivityTime()

Return: Activity time. A feed handler generated time stamp representing when the data item was last updated.

Reimplements: com::wombat::mamda::MamdaBasicEvent::getActivityTime

function getEventSeqNum

inline long getEventSeqNum()

Return: Source sequence number. The exchange generated sequence number.

Reimplements: com::wombat::mamda::MamdaBasicEvent::getEventSeqNum

function getEventTime

inline MamaDateTime getEventTime()

Return: Event time. Typically, when the event actually occurred. This is often the same as the “source time”, because many feeds do not distinguish between the actual event time and when the exchange sent the message.

Reimplements: com::wombat::mamda::MamdaBasicEvent::getEventTime

function getSrcTimeFieldState

inline short getSrcTimeFieldState()

Reimplements: com::wombat::mamda::MamdaBasicEvent::getSrcTimeFieldState

return Source time Field State MODIFIED (2) value indicates the fied was updated in last tick NOT MODIFIED (1) value indicate that there was no change in the last tick NOT_INITIALISED (0) value indicates that the field has never been updated

function getActivityTimeFieldState

inline short getActivityTimeFieldState()

Reimplements: com::wombat::mamda::MamdaBasicEvent::getActivityTimeFieldState

return Activity time Field State MODIFIED (2) value indicates the fied was updated in last tick NOT MODIFIED (1) value indicate that there was no change in the last tick NOT_INITIALISED (0) value indicates that the field has never been updated

function getEventSeqNumFieldState

inline short getEventSeqNumFieldState()

Reimplements: com::wombat::mamda::MamdaBasicEvent::getEventSeqNumFieldState

return source sequence number Field State MODIFIED (2) value indicates the fied was updated in last tick NOT MODIFIED (1) value indicate that there was no change in the last tick NOT_INITIALISED (0) value indicates that the field has never been updated

function getEventTimeFieldState

inline short getEventTimeFieldState()

Reimplements: com::wombat::mamda::MamdaBasicEvent::getEventTimeFieldState

return event time Field State MODIFIED (2) value indicates the fied was updated in last tick NOT MODIFIED (1) value indicate that there was no change in the last tick NOT_INITIALISED (0) value indicates that the field has never been updated

function getOptionContract

inline MamdaOptionContract getOptionContract()

Return: The option contract to which the most recent event applies. If the contract is new, it will have already been added to the chain. If it is being removed, it will have already been removed from the chain.

Reimplements: com::wombat::mamda::options::MamdaOptionSeriesUpdate::getOptionContract

Get the option contract to which the most recent event applies.

function getOptionAction

inline char getOptionAction()

Return: The action related to the last series update message.

Reimplements: com::wombat::mamda::options::MamdaOptionSeriesUpdate::getOptionAction

Get the most recent action.

Public Attributes Documentation

variable ACTION_UNKNOWN

static final char ACTION_UNKNOWN = ' ';

variable ACTION_ADD

static final char ACTION_ADD = 'A';

variable ACTION_DELETE

static final char ACTION_DELETE = 'D';

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