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()
MamdaBasicRecapgetSymbol in interface MamdaBasicRecappublic java.lang.String getPartId()
MamdaBasicRecapgetPartId in interface MamdaBasicRecappublic com.wombat.mama.MamaDateTime getSrcTime()
MamdaBasicRecapgetSrcTime in interface MamdaBasicEventgetSrcTime in interface MamdaBasicRecappublic com.wombat.mama.MamaDateTime getActivityTime()
MamdaBasicRecapgetActivityTime in interface MamdaBasicEventgetActivityTime in interface MamdaBasicRecappublic com.wombat.mama.MamaDateTime getLineTime()
MamdaBasicRecapgetLineTime in interface MamdaBasicRecappublic com.wombat.mama.MamaDateTime getSendTime()
MamdaBasicRecapgetSendTime in interface MamdaBasicRecappublic java.lang.String getPubId()
public com.wombat.mama.MamaPrice getBidPrice()
MamdaQuoteRecapgetBidPrice in interface MamdaQuoteClosinggetBidPrice in interface MamdaQuoteRecapgetBidPrice in interface MamdaQuoteUpdatepublic double getBidSize()
MamdaQuoteRecapgetBidSize in interface MamdaQuoteClosinggetBidSize in interface MamdaQuoteRecapgetBidSize in interface MamdaQuoteUpdatepublic java.lang.String getBidPartId()
MamdaQuoteRecapgetBidPartId in interface MamdaQuoteClosinggetBidPartId in interface MamdaQuoteRecapgetBidPartId in interface MamdaQuoteUpdatepublic 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()
MamdaQuoteRecapgetAskPrice in interface MamdaQuoteClosinggetAskPrice in interface MamdaQuoteRecapgetAskPrice in interface MamdaQuoteUpdatepublic double getAskSize()
MamdaQuoteRecapgetAskSize in interface MamdaQuoteClosinggetAskSize in interface MamdaQuoteRecapgetAskSize in interface MamdaQuoteUpdatepublic java.lang.String getAskPartId()
MamdaQuoteRecapgetAskPartId in interface MamdaQuoteClosinggetAskPartId in interface MamdaQuoteRecapgetAskPartId in interface MamdaQuoteUpdatepublic double getAskDepth()
getAskDepth in interface MamdaQuoteRecapgetAskDepth in interface MamdaQuoteUpdatepublic double getBidDepth()
getBidDepth in interface MamdaQuoteRecapgetBidDepth in interface MamdaQuoteUpdatepublic 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()
MamdaQuoteRecapgetQuoteMidPrice in interface MamdaQuoteRecappublic java.lang.String getQuoteQual()
MamdaQuoteRecapgetQuoteQual in interface MamdaQuoteRecapgetQuoteQual in interface MamdaQuoteUpdateMamdaQuoteUpdate.getQuoteQual()public java.lang.String getQuoteQualNative()
MamdaQuoteUpdategetQuoteQualNative in interface MamdaQuoteRecapgetQuoteQualNative in interface MamdaQuoteUpdateMamdaQuoteUpdate.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 MamdaQuoteRecapgetShortSaleBidTick in interface MamdaQuoteUpdateMamdaQuoteUpdate.getShortSaleBidTick()public char getShortSaleCircuitBreaker()
MamdaQuoteRecapgetShortSaleCircuitBreaker in interface MamdaQuoteRecapgetShortSaleCircuitBreaker in interface MamdaQuoteUpdateMamdaQuoteUpdate.getShortSaleCircuitBreaker()public com.wombat.mama.MamaDateTime getAskTime()
getAskTime in interface MamdaQuoteRecapgetAskTime in interface MamdaQuoteUpdatepublic com.wombat.mama.MamaDateTime getBidTime()
getBidTime in interface MamdaQuoteRecapgetBidTime in interface MamdaQuoteUpdatepublic java.lang.String getAskIndicator()
getAskIndicator in interface MamdaQuoteRecapgetAskIndicator in interface MamdaQuoteUpdatepublic java.lang.String getBidIndicator()
getBidIndicator in interface MamdaQuoteRecapgetBidIndicator in interface MamdaQuoteUpdatepublic long getAskUpdateCount()
getAskUpdateCount in interface MamdaQuoteRecapgetAskUpdateCount in interface MamdaQuoteUpdatepublic long getBidUpdateCount()
getBidUpdateCount in interface MamdaQuoteRecapgetBidUpdateCount in interface MamdaQuoteUpdatepublic double getAskYield()
getAskYield in interface MamdaQuoteRecapgetAskYield in interface MamdaQuoteUpdatepublic double getBidYield()
getBidYield in interface MamdaQuoteRecapgetBidYield in interface MamdaQuoteUpdatepublic long getQuoteCount()
MamdaQuoteRecapgetQuoteCount in interface MamdaQuoteRecappublic long getEventSeqNum()
getEventSeqNum in interface MamdaBasicEventpublic com.wombat.mama.MamaDateTime getEventDate()
MamdaQuoteRecapgetEventDate in interface MamdaQuoteRecappublic com.wombat.mama.MamaDateTime getEventTime()
MamdaQuoteRecapgetEventTime in interface MamdaBasicEventgetEventTime in interface MamdaQuoteRecappublic java.lang.String getAskSizesList()
getAskSizesList in interface MamdaQuoteRecapgetAskSizesList in interface MamdaQuoteUpdatepublic java.lang.String getBidSizesList()
getBidSizesList in interface MamdaQuoteRecapgetBidSizesList in interface MamdaQuoteUpdatepublic com.wombat.mama.MamaDateTime getEventDateTime()
public com.wombat.mama.MamaDateTime getQuoteDate()
public long getBeginGapSeqNum()
MamdaQuoteGapgetBeginGapSeqNum in interface MamdaQuoteGappublic long getEndGapSeqNum()
MamdaQuoteGapgetEndGapSeqNum in interface MamdaQuoteGappublic short getSymbolFieldState()
getSymbolFieldState in interface MamdaBasicRecappublic short getPartIdFieldState()
getPartIdFieldState in interface MamdaBasicRecappublic short getSrcTimeFieldState()
MamdaBasicEventgetSrcTimeFieldState in interface MamdaBasicEventgetSrcTimeFieldState in interface MamdaBasicRecappublic short getActivityTimeFieldState()
MamdaBasicEventgetActivityTimeFieldState in interface MamdaBasicEventgetActivityTimeFieldState in interface MamdaBasicRecappublic short getLineTimeFieldState()
getLineTimeFieldState in interface MamdaBasicRecappublic short getSendTimeFieldState()
getSendTimeFieldState in interface MamdaBasicRecappublic short getPubIdFieldState()
public short getBidPriceFieldState()
getBidPriceFieldState in interface MamdaQuoteClosinggetBidPriceFieldState in interface MamdaQuoteRecapgetBidPriceFieldState in interface MamdaQuoteUpdatepublic short getBidSizeFieldState()
getBidSizeFieldState in interface MamdaQuoteClosinggetBidSizeFieldState in interface MamdaQuoteRecapgetBidSizeFieldState in interface MamdaQuoteUpdatepublic short getBidPartIdFieldState()
getBidPartIdFieldState in interface MamdaQuoteClosinggetBidPartIdFieldState in interface MamdaQuoteRecapgetBidPartIdFieldState in interface MamdaQuoteUpdatepublic short getBidClosePriceFieldState()
public short getBidCloseDateFieldState()
public short getBidPrevClosePriceFieldState()
public short getBidPrevCloseDateFieldState()
public short getBidHighFieldState()
public short getBidLowFieldState()
public short getAskPriceFieldState()
getAskPriceFieldState in interface MamdaQuoteClosinggetAskPriceFieldState in interface MamdaQuoteRecapgetAskPriceFieldState in interface MamdaQuoteUpdatepublic short getAskSizeFieldState()
getAskSizeFieldState in interface MamdaQuoteClosinggetAskSizeFieldState in interface MamdaQuoteRecapgetAskSizeFieldState in interface MamdaQuoteUpdatepublic short getAskPartIdFieldState()
getAskPartIdFieldState in interface MamdaQuoteClosinggetAskPartIdFieldState in interface MamdaQuoteRecapgetAskPartIdFieldState in interface MamdaQuoteUpdatepublic short getAskClosePriceFieldState()
public short getAskCloseDateFieldState()
public short getAskPrevClosePriceFieldState()
public short getAskPrevCloseDateFieldState()
public short getAskHighFieldState()
public short getAskLowFieldState()
public short getAskDepthFieldState()
getAskDepthFieldState in interface MamdaQuoteRecapgetAskDepthFieldState in interface MamdaQuoteUpdatepublic short getBidDepthFieldState()
getBidDepthFieldState in interface MamdaQuoteRecapgetBidDepthFieldState in interface MamdaQuoteUpdatepublic short getQuoteMidPriceFieldState()
getQuoteMidPriceFieldState in interface MamdaQuoteRecappublic short getQuoteQualFieldState()
getQuoteQualFieldState in interface MamdaQuoteRecapgetQuoteQualFieldState in interface MamdaQuoteUpdatepublic short getQuoteQualNativeFieldState()
getQuoteQualNativeFieldState in interface MamdaQuoteRecapgetQuoteQualNativeFieldState in interface MamdaQuoteUpdatepublic short getShortSaleBidTickFieldState()
getShortSaleBidTickFieldState in interface MamdaQuoteRecapgetShortSaleBidTickFieldState in interface MamdaQuoteUpdatepublic short getShortSaleCircuitBreakerFieldState()
getShortSaleCircuitBreakerFieldState in interface MamdaQuoteRecapgetShortSaleCircuitBreakerFieldState in interface MamdaQuoteUpdatepublic short getAskTimeFieldState()
getAskTimeFieldState in interface MamdaQuoteRecapgetAskTimeFieldState in interface MamdaQuoteUpdatepublic short getBidTimeFieldState()
getBidTimeFieldState in interface MamdaQuoteRecapgetBidTimeFieldState in interface MamdaQuoteUpdatepublic short getAskIndicatorFieldState()
getAskIndicatorFieldState in interface MamdaQuoteRecapgetAskIndicatorFieldState in interface MamdaQuoteUpdatepublic short getBidIndicatorFieldState()
getBidIndicatorFieldState in interface MamdaQuoteRecapgetBidIndicatorFieldState in interface MamdaQuoteUpdatepublic short getAskUpdateCountFieldState()
getAskUpdateCountFieldState in interface MamdaQuoteRecapgetAskUpdateCountFieldState in interface MamdaQuoteUpdatepublic short getBidUpdateCountFieldState()
getBidUpdateCountFieldState in interface MamdaQuoteRecapgetBidUpdateCountFieldState in interface MamdaQuoteUpdatepublic short getAskYieldFieldState()
getAskYieldFieldState in interface MamdaQuoteRecapgetAskYieldFieldState in interface MamdaQuoteUpdatepublic short getBidYieldFieldState()
getBidYieldFieldState in interface MamdaQuoteRecapgetBidYieldFieldState in interface MamdaQuoteUpdatepublic short getQuoteCountFieldState()
getQuoteCountFieldState in interface MamdaQuoteRecappublic short getEventSeqNumFieldState()
MamdaBasicEventgetEventSeqNumFieldState in interface MamdaBasicEventpublic short getEventDateFieldState()
getEventDateFieldState in interface MamdaQuoteRecappublic short getEventTimeFieldState()
MamdaBasicEventgetEventTimeFieldState in interface MamdaBasicEventgetEventTimeFieldState in interface MamdaQuoteRecappublic short getAskSizesListFieldState()
getAskSizesListFieldState in interface MamdaQuoteRecapgetAskSizesListFieldState in interface MamdaQuoteUpdatepublic short getBidSizesListFieldState()
getBidSizesListFieldState in interface MamdaQuoteRecapgetBidSizesListFieldState in interface MamdaQuoteUpdatepublic short getBeginGapSeqNumFieldState()
getBeginGapSeqNumFieldState in interface MamdaQuoteGappublic short getEndGapSeqNumFieldState()
getEndGapSeqNumFieldState in interface MamdaQuoteGappublic void onMsg(MamdaSubscription subscription, com.wombat.mama.MamaMsg msg, short msgType)
onMsg in interface MamdaMsgListenersubscription - 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.