Inherits from com.wombat.mamda.MamdaMsgListener, com.wombat.mamda.options.MamdaOptionSeriesUpdate, com.wombat.mamda.MamdaBasicEvent
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() |
Name | |
---|---|
final char | ACTION_UNKNOWN |
final char | ACTION_ADD |
final char | ACTION_DELETE |
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.
inline MamdaOptionChainListener(
String underlyingSymbol
)
Create a specialized option chain listener. This listener handles option chain updates.
inline MamdaOptionChainListener(
MamdaOptionChain chain
)
Create a specialized option chain listener. This listener handles option chain updates.
inline void addHandler(
MamdaOptionChainHandler handler
)
Add a specialized option chain handler. Currently, only one handler can (and must) be registered.
inline MamdaOptionChain getOptionChain()
Return the option chain associated with this listener.
inline void onMsg(
MamdaSubscription subscription,
MamaMsg msg,
short msgType
)
Reimplements: com::wombat::mamda::MamdaMsgListener::onMsg
Implementation of MamdaListener interface.
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
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
inline long getEventSeqNum()
Return: Source sequence number. The exchange generated sequence number.
Reimplements: com::wombat::mamda::MamdaBasicEvent::getEventSeqNum
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
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
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
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
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
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.
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.
static final char ACTION_UNKNOWN = ' ';
static final char ACTION_ADD = 'A';
static final char ACTION_DELETE = 'D';
Updated on 2023-03-31 at 15:30:37 +0100