com.wombat.mamda
public class MamdaQuoteListener extends java.lang.Object implements MamdaMsgListener, MamdaQuoteRecap, MamdaQuoteUpdate, MamdaQuoteGap, MamdaQuoteClosing
Modifier and Type | Field and Description |
---|---|
MamdaFieldState |
mGapBeginFieldState |
MamdaFieldState |
mGapEndFieldState |
Constructor and Description |
---|
MamdaQuoteListener()
Create a specialized quote listener.
|
Modifier and Type | Method and Description |
---|---|
void |
addHandler(MamdaQuoteHandler handler)
Add a specialized quote handler.
|
void |
clearCache(com.wombat.mamda.MamdaQuoteListener.MamdaQuoteCache cache) |
com.wombat.mama.MamaDateTime |
getActivityTime()
Activity time.
|
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
|
com.wombat.mama.MamaDateTime |
getAskCloseDate() |
short |
getAskCloseDateFieldState() |
com.wombat.mama.MamaPrice |
getAskClosePrice() |
short |
getAskClosePriceFieldState() |
double |
getAskDepth() |
short |
getAskDepthFieldState() |
com.wombat.mama.MamaPrice |
getAskHigh() |
short |
getAskHighFieldState() |
java.lang.String |
getAskIndicator() |
short |
getAskIndicatorFieldState() |
com.wombat.mama.MamaPrice |
getAskLow() |
short |
getAskLowFieldState() |
java.lang.String |
getAskPartId()
Get the ask participant identifier.
|
short |
getAskPartIdFieldState() |
com.wombat.mama.MamaDateTime |
getAskPrevCloseDate() |
short |
getAskPrevCloseDateFieldState() |
com.wombat.mama.MamaPrice |
getAskPrevClosePrice() |
short |
getAskPrevClosePriceFieldState() |
com.wombat.mama.MamaPrice |
getAskPrice()
Get the ask price.
|
short |
getAskPriceFieldState() |
double |
getAskSize()
Get the ask size.
|
short |
getAskSizeFieldState() |
java.lang.String |
getAskSizesList() |
short |
getAskSizesListFieldState() |
com.wombat.mama.MamaDateTime |
getAskTime() |
short |
getAskTimeFieldState() |
long |
getAskUpdateCount() |
short |
getAskUpdateCountFieldState() |
double |
getAskYield() |
short |
getAskYieldFieldState() |
long |
getBeginGapSeqNum()
The starting sequence number of detected missing quotes based on
the quote count.
|
short |
getBeginGapSeqNumFieldState() |
com.wombat.mama.MamaDateTime |
getBidCloseDate() |
short |
getBidCloseDateFieldState() |
com.wombat.mama.MamaPrice |
getBidClosePrice() |
short |
getBidClosePriceFieldState() |
double |
getBidDepth() |
short |
getBidDepthFieldState() |
com.wombat.mama.MamaPrice |
getBidHigh() |
short |
getBidHighFieldState() |
java.lang.String |
getBidIndicator() |
short |
getBidIndicatorFieldState() |
com.wombat.mama.MamaPrice |
getBidLow() |
short |
getBidLowFieldState() |
java.lang.String |
getBidPartId()
Get the bid participant identifier.
|
short |
getBidPartIdFieldState() |
com.wombat.mama.MamaDateTime |
getBidPrevCloseDate() |
short |
getBidPrevCloseDateFieldState() |
com.wombat.mama.MamaPrice |
getBidPrevClosePrice() |
short |
getBidPrevClosePriceFieldState() |
com.wombat.mama.MamaPrice |
getBidPrice()
Get the bid price.
|
short |
getBidPriceFieldState() |
double |
getBidSize()
Get the bid size.
|
short |
getBidSizeFieldState() |
java.lang.String |
getBidSizesList() |
short |
getBidSizesListFieldState() |
com.wombat.mama.MamaDateTime |
getBidTime() |
short |
getBidTimeFieldState() |
long |
getBidUpdateCount() |
short |
getBidUpdateCountFieldState() |
double |
getBidYield() |
short |
getBidYieldFieldState() |
long |
getEndGapSeqNum()
The end sequence number of detected missing quotes based on
the quote count.
|
short |
getEndGapSeqNumFieldState() |
com.wombat.mama.MamaDateTime |
getEventDate()
Date corresponding to the last quote, as reported by the feed.
|
short |
getEventDateFieldState() |
com.wombat.mama.MamaDateTime |
getEventDateTime() |
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()
Time corresponding to the last quote, as reported by the feed.
|
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
|
com.wombat.mama.MamaDateTime |
getLineTime()
Get the line time of the update.
|
short |
getLineTimeFieldState() |
java.lang.String |
getPartId()
Get the participant identifier.
|
short |
getPartIdFieldState() |
java.lang.String |
getPubId() |
short |
getPubIdFieldState() |
long |
getQuoteCount()
Get the quote count.
|
short |
getQuoteCountFieldState() |
com.wombat.mama.MamaDateTime |
getQuoteDate() |
com.wombat.mama.MamaPrice |
getQuoteMidPrice()
Get the quote mid price.
|
short |
getQuoteMidPriceFieldState() |
java.lang.String |
getQuoteQual()
Get the normalized quote qualifier.
|
short |
getQuoteQualFieldState() |
java.lang.String |
getQuoteQualNative()
The exchange specific non normalized quote qualifier.
|
short |
getQuoteQualNativeFieldState() |
com.wombat.mama.MamaDateTime |
getSendTime()
Get the send time of the update.
|
short |
getSendTimeFieldState() |
char |
getShortSaleBidTick()
NASDAQ Bid Tick Indicator for Short Sale Rule Compliance.
|
short |
getShortSaleBidTickFieldState() |
char |
getShortSaleCircuitBreaker()
getShortSaleCircuitBreaker Returns the ShortSaleCircuitBreaker
|
short |
getShortSaleCircuitBreakerFieldState() |
com.wombat.mama.MamaDateTime |
getSrcTime()
Source time.
|
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
|
java.lang.String |
getSymbol()
Get the string symbol for the instrument.
|
short |
getSymbolFieldState() |
void |
onMsg(MamdaSubscription subscription,
com.wombat.mama.MamaMsg msg,
short msgType)
Implementation of MamdaListener interface.
|
public MamdaFieldState mGapBeginFieldState
public MamdaFieldState mGapEndFieldState
public MamdaQuoteListener()
public void clearCache(com.wombat.mamda.MamdaQuoteListener.MamdaQuoteCache cache)
public void addHandler(MamdaQuoteHandler handler)
public java.lang.String getSymbol()
MamdaBasicRecap
getSymbol
in interface MamdaBasicRecap
public java.lang.String getPartId()
MamdaBasicRecap
getPartId
in interface MamdaBasicRecap
public com.wombat.mama.MamaDateTime getSrcTime()
MamdaBasicRecap
getSrcTime
in interface MamdaBasicEvent
getSrcTime
in interface MamdaBasicRecap
public com.wombat.mama.MamaDateTime getActivityTime()
MamdaBasicRecap
getActivityTime
in interface MamdaBasicEvent
getActivityTime
in interface MamdaBasicRecap
public com.wombat.mama.MamaDateTime getLineTime()
MamdaBasicRecap
getLineTime
in interface MamdaBasicRecap
public com.wombat.mama.MamaDateTime getSendTime()
MamdaBasicRecap
getSendTime
in interface MamdaBasicRecap
public java.lang.String getPubId()
public com.wombat.mama.MamaPrice getBidPrice()
MamdaQuoteRecap
getBidPrice
in interface MamdaQuoteClosing
getBidPrice
in interface MamdaQuoteRecap
getBidPrice
in interface MamdaQuoteUpdate
public double getBidSize()
MamdaQuoteRecap
getBidSize
in interface MamdaQuoteClosing
getBidSize
in interface MamdaQuoteRecap
getBidSize
in interface MamdaQuoteUpdate
public java.lang.String getBidPartId()
MamdaQuoteRecap
getBidPartId
in interface MamdaQuoteClosing
getBidPartId
in interface MamdaQuoteRecap
getBidPartId
in interface MamdaQuoteUpdate
public com.wombat.mama.MamaPrice getBidClosePrice()
public com.wombat.mama.MamaDateTime getBidCloseDate()
public com.wombat.mama.MamaPrice getBidPrevClosePrice()
public com.wombat.mama.MamaDateTime getBidPrevCloseDate()
public com.wombat.mama.MamaPrice getBidHigh()
public com.wombat.mama.MamaPrice getBidLow()
public com.wombat.mama.MamaPrice getAskPrice()
MamdaQuoteRecap
getAskPrice
in interface MamdaQuoteClosing
getAskPrice
in interface MamdaQuoteRecap
getAskPrice
in interface MamdaQuoteUpdate
public double getAskSize()
MamdaQuoteRecap
getAskSize
in interface MamdaQuoteClosing
getAskSize
in interface MamdaQuoteRecap
getAskSize
in interface MamdaQuoteUpdate
public java.lang.String getAskPartId()
MamdaQuoteRecap
getAskPartId
in interface MamdaQuoteClosing
getAskPartId
in interface MamdaQuoteRecap
getAskPartId
in interface MamdaQuoteUpdate
public double getAskDepth()
getAskDepth
in interface MamdaQuoteRecap
getAskDepth
in interface MamdaQuoteUpdate
public double getBidDepth()
getBidDepth
in interface MamdaQuoteRecap
getBidDepth
in interface MamdaQuoteUpdate
public com.wombat.mama.MamaPrice getAskClosePrice()
public com.wombat.mama.MamaDateTime getAskCloseDate()
public com.wombat.mama.MamaPrice getAskPrevClosePrice()
public com.wombat.mama.MamaDateTime getAskPrevCloseDate()
public com.wombat.mama.MamaPrice getAskHigh()
public com.wombat.mama.MamaPrice getAskLow()
public com.wombat.mama.MamaPrice getQuoteMidPrice()
MamdaQuoteRecap
getQuoteMidPrice
in interface MamdaQuoteRecap
public java.lang.String getQuoteQual()
MamdaQuoteRecap
getQuoteQual
in interface MamdaQuoteRecap
getQuoteQual
in interface MamdaQuoteUpdate
MamdaQuoteUpdate.getQuoteQual()
public java.lang.String getQuoteQualNative()
MamdaQuoteUpdate
getQuoteQualNative
in interface MamdaQuoteRecap
getQuoteQualNative
in interface MamdaQuoteUpdate
MamdaQuoteUpdate.getQuoteQualNative()
public char getShortSaleBidTick()
MamdaQuoteUpdate
Value | Meaning |
U | Up Tick. The current Best Bid Price price is higher than the previous Best Bid Price for the given NNM security. |
D | Down Tick. The current Best Bid Price price is lower than the previous Best Bid Price for the given NNM security. |
N | No Tick. The NASD Short Sale Rule does not apply to issue (i.e. NASDAQ SmallCap listed security). |
Z | Unset - default value within the API |
getShortSaleBidTick
in interface MamdaQuoteRecap
getShortSaleBidTick
in interface MamdaQuoteUpdate
MamdaQuoteUpdate.getShortSaleBidTick()
public char getShortSaleCircuitBreaker()
MamdaQuoteRecap
getShortSaleCircuitBreaker
in interface MamdaQuoteRecap
getShortSaleCircuitBreaker
in interface MamdaQuoteUpdate
MamdaQuoteUpdate.getShortSaleCircuitBreaker()
public com.wombat.mama.MamaDateTime getAskTime()
getAskTime
in interface MamdaQuoteRecap
getAskTime
in interface MamdaQuoteUpdate
public com.wombat.mama.MamaDateTime getBidTime()
getBidTime
in interface MamdaQuoteRecap
getBidTime
in interface MamdaQuoteUpdate
public java.lang.String getAskIndicator()
getAskIndicator
in interface MamdaQuoteRecap
getAskIndicator
in interface MamdaQuoteUpdate
public java.lang.String getBidIndicator()
getBidIndicator
in interface MamdaQuoteRecap
getBidIndicator
in interface MamdaQuoteUpdate
public long getAskUpdateCount()
getAskUpdateCount
in interface MamdaQuoteRecap
getAskUpdateCount
in interface MamdaQuoteUpdate
public long getBidUpdateCount()
getBidUpdateCount
in interface MamdaQuoteRecap
getBidUpdateCount
in interface MamdaQuoteUpdate
public double getAskYield()
getAskYield
in interface MamdaQuoteRecap
getAskYield
in interface MamdaQuoteUpdate
public double getBidYield()
getBidYield
in interface MamdaQuoteRecap
getBidYield
in interface MamdaQuoteUpdate
public long getQuoteCount()
MamdaQuoteRecap
getQuoteCount
in interface MamdaQuoteRecap
public long getEventSeqNum()
getEventSeqNum
in interface MamdaBasicEvent
public com.wombat.mama.MamaDateTime getEventDate()
MamdaQuoteRecap
getEventDate
in interface MamdaQuoteRecap
public com.wombat.mama.MamaDateTime getEventTime()
MamdaQuoteRecap
getEventTime
in interface MamdaBasicEvent
getEventTime
in interface MamdaQuoteRecap
public java.lang.String getAskSizesList()
getAskSizesList
in interface MamdaQuoteRecap
getAskSizesList
in interface MamdaQuoteUpdate
public java.lang.String getBidSizesList()
getBidSizesList
in interface MamdaQuoteRecap
getBidSizesList
in interface MamdaQuoteUpdate
public com.wombat.mama.MamaDateTime getEventDateTime()
public com.wombat.mama.MamaDateTime getQuoteDate()
public long getBeginGapSeqNum()
MamdaQuoteGap
getBeginGapSeqNum
in interface MamdaQuoteGap
public long getEndGapSeqNum()
MamdaQuoteGap
getEndGapSeqNum
in interface MamdaQuoteGap
public short getSymbolFieldState()
getSymbolFieldState
in interface MamdaBasicRecap
public short getPartIdFieldState()
getPartIdFieldState
in interface MamdaBasicRecap
public short getSrcTimeFieldState()
MamdaBasicEvent
getSrcTimeFieldState
in interface MamdaBasicEvent
getSrcTimeFieldState
in interface MamdaBasicRecap
public short getActivityTimeFieldState()
MamdaBasicEvent
getActivityTimeFieldState
in interface MamdaBasicEvent
getActivityTimeFieldState
in interface MamdaBasicRecap
public short getLineTimeFieldState()
getLineTimeFieldState
in interface MamdaBasicRecap
public short getSendTimeFieldState()
getSendTimeFieldState
in interface MamdaBasicRecap
public short getPubIdFieldState()
public short getBidPriceFieldState()
getBidPriceFieldState
in interface MamdaQuoteClosing
getBidPriceFieldState
in interface MamdaQuoteRecap
getBidPriceFieldState
in interface MamdaQuoteUpdate
public short getBidSizeFieldState()
getBidSizeFieldState
in interface MamdaQuoteClosing
getBidSizeFieldState
in interface MamdaQuoteRecap
getBidSizeFieldState
in interface MamdaQuoteUpdate
public short getBidPartIdFieldState()
getBidPartIdFieldState
in interface MamdaQuoteClosing
getBidPartIdFieldState
in interface MamdaQuoteRecap
getBidPartIdFieldState
in interface MamdaQuoteUpdate
public short getBidClosePriceFieldState()
public short getBidCloseDateFieldState()
public short getBidPrevClosePriceFieldState()
public short getBidPrevCloseDateFieldState()
public short getBidHighFieldState()
public short getBidLowFieldState()
public short getAskPriceFieldState()
getAskPriceFieldState
in interface MamdaQuoteClosing
getAskPriceFieldState
in interface MamdaQuoteRecap
getAskPriceFieldState
in interface MamdaQuoteUpdate
public short getAskSizeFieldState()
getAskSizeFieldState
in interface MamdaQuoteClosing
getAskSizeFieldState
in interface MamdaQuoteRecap
getAskSizeFieldState
in interface MamdaQuoteUpdate
public short getAskPartIdFieldState()
getAskPartIdFieldState
in interface MamdaQuoteClosing
getAskPartIdFieldState
in interface MamdaQuoteRecap
getAskPartIdFieldState
in interface MamdaQuoteUpdate
public short getAskClosePriceFieldState()
public short getAskCloseDateFieldState()
public short getAskPrevClosePriceFieldState()
public short getAskPrevCloseDateFieldState()
public short getAskHighFieldState()
public short getAskLowFieldState()
public short getAskDepthFieldState()
getAskDepthFieldState
in interface MamdaQuoteRecap
getAskDepthFieldState
in interface MamdaQuoteUpdate
public short getBidDepthFieldState()
getBidDepthFieldState
in interface MamdaQuoteRecap
getBidDepthFieldState
in interface MamdaQuoteUpdate
public short getQuoteMidPriceFieldState()
getQuoteMidPriceFieldState
in interface MamdaQuoteRecap
public short getQuoteQualFieldState()
getQuoteQualFieldState
in interface MamdaQuoteRecap
getQuoteQualFieldState
in interface MamdaQuoteUpdate
public short getQuoteQualNativeFieldState()
getQuoteQualNativeFieldState
in interface MamdaQuoteRecap
getQuoteQualNativeFieldState
in interface MamdaQuoteUpdate
public short getShortSaleBidTickFieldState()
getShortSaleBidTickFieldState
in interface MamdaQuoteRecap
getShortSaleBidTickFieldState
in interface MamdaQuoteUpdate
public short getShortSaleCircuitBreakerFieldState()
getShortSaleCircuitBreakerFieldState
in interface MamdaQuoteRecap
getShortSaleCircuitBreakerFieldState
in interface MamdaQuoteUpdate
public short getAskTimeFieldState()
getAskTimeFieldState
in interface MamdaQuoteRecap
getAskTimeFieldState
in interface MamdaQuoteUpdate
public short getBidTimeFieldState()
getBidTimeFieldState
in interface MamdaQuoteRecap
getBidTimeFieldState
in interface MamdaQuoteUpdate
public short getAskIndicatorFieldState()
getAskIndicatorFieldState
in interface MamdaQuoteRecap
getAskIndicatorFieldState
in interface MamdaQuoteUpdate
public short getBidIndicatorFieldState()
getBidIndicatorFieldState
in interface MamdaQuoteRecap
getBidIndicatorFieldState
in interface MamdaQuoteUpdate
public short getAskUpdateCountFieldState()
getAskUpdateCountFieldState
in interface MamdaQuoteRecap
getAskUpdateCountFieldState
in interface MamdaQuoteUpdate
public short getBidUpdateCountFieldState()
getBidUpdateCountFieldState
in interface MamdaQuoteRecap
getBidUpdateCountFieldState
in interface MamdaQuoteUpdate
public short getAskYieldFieldState()
getAskYieldFieldState
in interface MamdaQuoteRecap
getAskYieldFieldState
in interface MamdaQuoteUpdate
public short getBidYieldFieldState()
getBidYieldFieldState
in interface MamdaQuoteRecap
getBidYieldFieldState
in interface MamdaQuoteUpdate
public short getQuoteCountFieldState()
getQuoteCountFieldState
in interface MamdaQuoteRecap
public short getEventSeqNumFieldState()
MamdaBasicEvent
getEventSeqNumFieldState
in interface MamdaBasicEvent
public short getEventDateFieldState()
getEventDateFieldState
in interface MamdaQuoteRecap
public short getEventTimeFieldState()
MamdaBasicEvent
getEventTimeFieldState
in interface MamdaBasicEvent
getEventTimeFieldState
in interface MamdaQuoteRecap
public short getAskSizesListFieldState()
getAskSizesListFieldState
in interface MamdaQuoteRecap
getAskSizesListFieldState
in interface MamdaQuoteUpdate
public short getBidSizesListFieldState()
getBidSizesListFieldState
in interface MamdaQuoteRecap
getBidSizesListFieldState
in interface MamdaQuoteUpdate
public short getBeginGapSeqNumFieldState()
getBeginGapSeqNumFieldState
in interface MamdaQuoteGap
public short getEndGapSeqNumFieldState()
getEndGapSeqNumFieldState
in interface MamdaQuoteGap
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.Copyright 2007 Wombat Financial Software, Inc.