|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.otfeed.event.OTBookPriceLevel
public final class OTBookPriceLevel
A book price level is the processed output of a bookServer. The bookServer maintains the depth of book for ECN data, keeping track of each order. In the bookServer orders of the same price are consolidated into price levels, and a Book Price Level message is issued whenever the size of a price level changes. Even though we maintain the book on all orders only the top book levels are sent as Book Price Level events. Typically the top six levels are sent for both the buy and sell sides.
Constructor Summary | |
---|---|
OTBookPriceLevel()
Default constructor. |
|
OTBookPriceLevel(java.util.Date timestamp,
double price,
int size,
TradeSideEnum side,
java.lang.String levelID)
Constructor. |
Method Summary | |
---|---|
int |
compareTo(OTBookPriceLevel other)
|
boolean |
equals(java.lang.Object o)
|
java.lang.String |
getLevelId()
|
double |
getPrice()
|
TradeSideEnum |
getSide()
|
int |
getSize()
|
java.util.Date |
getTimestamp()
|
int |
hashCode()
|
void |
setLevelId(java.lang.String levelID)
Sets unique level identifier. |
void |
setPrice(double price)
Sets price. |
void |
setSide(TradeSideEnum side)
Sets side: BUYER(Bid) or SELLER(Ask). |
void |
setSize(int size)
Sets number of shares. |
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 OTBookPriceLevel()
public OTBookPriceLevel(java.util.Date timestamp, double price, int size, TradeSideEnum side, java.lang.String levelID)
timestamp
- Time when the event occurred.price
- Price.size
- Number of shares.side
- Side: B = Bid, S = Sell.levelID
- Unique level identifier.Method Detail |
---|
public java.util.Date getTimestamp()
public void setTimestamp(java.util.Date timestamp)
timestamp
- Time when the event occurred.public double getPrice()
public void setPrice(double price)
price
- Price.public int getSize()
public void setSize(int size)
size
- Number of shares.public TradeSideEnum getSide()
public void setSide(TradeSideEnum side)
public java.lang.String getLevelId()
public void setLevelId(java.lang.String levelID)
levelID
- Unique level identifier.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(OTBookPriceLevel other)
compareTo
in interface java.lang.Comparable<OTBookPriceLevel>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |