|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.otfeed.event.OTMMQuote
public final class OTMMQuote
This class provides the level II quote provided by a market maker for NASDAQ equities, or regional quotes for listed stocks. The market maker ID (MMID) identifies which specific market participant has changed his quote. In the case of NASDAQ, the MMID is a string identifying the market maker. From SIAC and OPRA, the quotes are from regional exchanges, and the MMID identifies the exchange that the regional quote comes from.
Constructor Summary | |
---|---|
OTMMQuote()
Default constructor. |
|
OTMMQuote(java.util.Date timestamp,
int bidSize,
double bidPrice,
int askSize,
double askPrice,
java.lang.String MMID,
char indicator,
java.lang.String exchange,
java.lang.String symbol)
Constructor. |
Method Summary | |
---|---|
int |
compareTo(OTMMQuote other)
|
boolean |
equals(java.lang.Object o)
|
double |
getAskPrice()
|
int |
getAskSize()
|
double |
getBidPrice()
|
int |
getBidSize()
|
java.lang.String |
getExchange()
|
char |
getIndicator()
|
java.lang.String |
getMMID()
|
java.lang.String |
getSymbol()
|
java.util.Date |
getTimestamp()
|
int |
hashCode()
|
void |
setAskPrice(double askPrice)
Sets ask price. |
void |
setAskSize(int askSize)
Sets number of round lots in the ask. |
void |
setBidPrice(double bidPrice)
Sets bid price. |
void |
setBidSize(int bidSize)
Sets ask price. |
void |
setExchange(java.lang.String exchange)
Sets exchange code. |
void |
setIndicator(char indicator)
Sets indicator. |
void |
setMMID(java.lang.String MMID)
Sets market maker id. |
void |
setSymbol(java.lang.String symbol)
Symbol code. |
void |
setTimestamp(java.util.Date timestamp)
Sets time of the event. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public OTMMQuote()
public OTMMQuote(java.util.Date timestamp, int bidSize, double bidPrice, int askSize, double askPrice, java.lang.String MMID, char indicator, java.lang.String exchange, java.lang.String symbol)
timestamp
- Time when the event occurred.bidSize
- Number of round lots in the bid.bidPrice
- Bid price.askSize
- Number of round lots in the ask.askPrice
- Ask price.MMID
- Market Maker ID.indicator
- Indicator.exchange
- symbol
- Symbol code.Method Detail |
---|
public java.util.Date getTimestamp()
public void setTimestamp(java.util.Date timestamp)
timestamp
- Time when the event occurred.public int getBidSize()
public void setBidSize(int bidSize)
bidSize
- Ask price.public double getBidPrice()
public void setBidPrice(double bidPrice)
bidPrice
- Bid price.public int getAskSize()
public void setAskSize(int askSize)
askSize
- Number of round lots in the ask.public double getAskPrice()
public void setAskPrice(double askPrice)
askPrice
- Ask price.public java.lang.String getMMID()
public void setMMID(java.lang.String MMID)
MMID
- Market Maker ID.public char getIndicator()
public void setIndicator(char indicator)
indicator
- Indicator.public java.lang.String getExchange()
public void setExchange(java.lang.String exchange)
exchange
- Exchange code.public java.lang.String getSymbol()
public void setSymbol(java.lang.String symbol)
symbol
- Symbol code.public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int compareTo(OTMMQuote other)
compareTo
in interface java.lang.Comparable<OTMMQuote>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |