com.wombat.mamda.options
public class MamdaOptionChainListener extends java.lang.Object implements MamdaMsgListener, MamdaOptionSeriesUpdate
Modifier and Type | Field and Description |
---|---|
static char |
ACTION_ADD |
static char |
ACTION_DELETE |
static char |
ACTION_UNKNOWN |
Constructor and Description |
---|
MamdaOptionChainListener(MamdaOptionChain chain)
Create a specialized option chain listener.
|
MamdaOptionChainListener(java.lang.String underlyingSymbol)
Create a specialized option chain listener.
|
Modifier and Type | Method and Description |
---|---|
void |
addHandler(MamdaOptionChainHandler handler)
Add a specialized option chain handler.
|
com.wombat.mama.MamaDateTime |
getActivityTime() |
short |
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
|
long |
getEventSeqNum() |
short |
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
|
com.wombat.mama.MamaDateTime |
getEventTime() |
short |
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
|
char |
getOptionAction()
Get the most recent action.
|
MamdaOptionChain |
getOptionChain()
Return the option chain associated with this listener.
|
MamdaOptionContract |
getOptionContract()
Get the option contract to which the most recent event applies.
|
com.wombat.mama.MamaDateTime |
getSrcTime() |
short |
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
|
void |
onMsg(MamdaSubscription subscription,
com.wombat.mama.MamaMsg msg,
short msgType)
Implementation of MamdaListener interface.
|
public static final char ACTION_UNKNOWN
public static final char ACTION_ADD
public static final char ACTION_DELETE
public MamdaOptionChainListener(java.lang.String underlyingSymbol)
public MamdaOptionChainListener(MamdaOptionChain chain)
public void addHandler(MamdaOptionChainHandler handler)
public MamdaOptionChain getOptionChain()
public void onMsg(MamdaSubscription subscription, com.wombat.mama.MamaMsg msg, short msgType)
onMsg
in interface MamdaMsgListener
subscription
- The MamdaSubscription to which this listener was
registered.msg
- The MamaMsg received by the underlying MAMA API and which
resulted in this callback being invoked.msgType
- The message type. e.g. INITIAL, RECAP, UPDATE etc.public com.wombat.mama.MamaDateTime getSrcTime()
getSrcTime
in interface MamdaBasicEvent
public com.wombat.mama.MamaDateTime getActivityTime()
getActivityTime
in interface MamdaBasicEvent
public long getEventSeqNum()
getEventSeqNum
in interface MamdaBasicEvent
public com.wombat.mama.MamaDateTime getEventTime()
getEventTime
in interface MamdaBasicEvent
public short getSrcTimeFieldState()
MamdaBasicEvent
getSrcTimeFieldState
in interface MamdaBasicEvent
public short getActivityTimeFieldState()
MamdaBasicEvent
getActivityTimeFieldState
in interface MamdaBasicEvent
public short getEventSeqNumFieldState()
MamdaBasicEvent
getEventSeqNumFieldState
in interface MamdaBasicEvent
public short getEventTimeFieldState()
MamdaBasicEvent
getEventTimeFieldState
in interface MamdaBasicEvent
public MamdaOptionContract getOptionContract()
MamdaOptionSeriesUpdate
getOptionContract
in interface MamdaOptionSeriesUpdate
public char getOptionAction()
MamdaOptionSeriesUpdate
getOptionAction
in interface MamdaOptionSeriesUpdate
Copyright 2007 Wombat Financial Software, Inc.