|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.otfeed.event.OTQuote
public final class OTQuote
This class provides either a real-time or a historical level I quote from an exchange. This comes from the exchange when the price or size of either the bid or ask changes. Both the bid and the ask prices along with their sizes are provided in a quote.
Constructor Summary | |
---|---|
OTQuote()
Default constructor. |
|
OTQuote(java.util.Date timestamp,
int bidSize,
double bidPrice,
int askSize,
double askPrice,
java.lang.String askExchange,
char indicator,
char tickIndicator,
java.lang.String bidExchange,
java.lang.String exchange,
java.lang.String symbol)
Constructor. |
Method Summary | |
---|---|
int |
compareTo(OTQuote other)
|
boolean |
equals(java.lang.Object o)
|
java.lang.String |
getAskExchange()
|
double |
getAskPrice()
|
int |
getAskSize()
|
java.lang.String |
getBidExchange()
|
double |
getBidPrice()
|
int |
getBidSize()
|
java.lang.String |
getExchange()
|
char |
getIndicator()
|
java.lang.String |
getSymbol()
|
char |
getTickIndicator()
|
java.util.Date |
getTimestamp()
|
int |
hashCode()
|
void |
setAskExchange(java.lang.String askExchange)
Stes ask exchange identifier. |
void |
setAskPrice(double askPrice)
Sets ask price. |
void |
setAskSize(int askSize)
Sets number of round lots in the ask. |
void |
setBidExchange(java.lang.String val)
Sets bidExchange value. |
void |
setBidPrice(double bidPrice)
Sets bid price. |
void |
setBidSize(int bidSize)
Sets number of round lots in the bid. |
void |
setExchange(java.lang.String exchange)
Sets exchange code. |
void |
setIndicator(char indicator)
Sets indicator. |
void |
setSymbol(java.lang.String symbol)
Symbol code. |
void |
setTickIndicator(char tickIndicator)
Sets tick indicator: D - Down, U - Up, N - Not provided. |
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 OTQuote()
public OTQuote(java.util.Date timestamp, int bidSize, double bidPrice, int askSize, double askPrice, java.lang.String askExchange, char indicator, char tickIndicator, java.lang.String bidExchange, 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.askExchange
- Ask exchange identifier.indicator
- Bid exchange identifier.tickIndicator
- Indicator.bidExchange
- Bid exchange identifier.exchange
- Exchange code.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
- Number of round lots in the bid.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 getAskExchange()
public void setAskExchange(java.lang.String askExchange)
askExchange
- Ask exchange identifier.public char getIndicator()
public void setIndicator(char indicator)
indicator
- Indicator.public char getTickIndicator()
public void setTickIndicator(char tickIndicator)
tickIndicator
- Tick indicator: D - Down, U - Up, N - Not provided.public java.lang.String getBidExchange()
public void setBidExchange(java.lang.String val)
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(OTQuote other)
compareTo
in interface java.lang.Comparable<OTQuote>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |