|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.otfeed.event.OTBookReplace
public final class OTBookReplace
Look up the order, and change its size. If the order is not there, create it, setting the symbol price and size.
Constructor Summary | |
---|---|
OTBookReplace()
Default constructor. |
|
OTBookReplace(java.util.Date timestamp,
java.lang.String reference,
double price,
int size,
TradeSideEnum side)
Constructor. |
Method Summary | |
---|---|
int |
compareTo(OTBookReplace other)
|
boolean |
equals(java.lang.Object o)
|
java.lang.String |
getOrderRef()
|
double |
getPrice()
|
TradeSideEnum |
getSide()
|
int |
getSize()
|
java.util.Date |
getTimestamp()
|
int |
hashCode()
|
void |
setPrice(double price)
Sets price. |
void |
setReference(java.lang.String reference)
Sets Order reference. |
void |
setSide(TradeSideEnum side)
Sets side: B = Buy, S = Sell. |
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 OTBookReplace()
public OTBookReplace(java.util.Date timestamp, java.lang.String reference, double price, int size, TradeSideEnum side)
timestamp
- Time when the event occurred.reference
- Order reference.price
- Price.size
- Number of shares.side
- Side: B = Buy, S = Sell.Method Detail |
---|
public java.util.Date getTimestamp()
public void setTimestamp(java.util.Date timestamp)
timestamp
- Time when the event occurred.public java.lang.String getOrderRef()
public void setReference(java.lang.String reference)
reference
- Order reference.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)
side
- Side: B = Buy, S = Sell.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(OTBookReplace other)
compareTo
in interface java.lang.Comparable<OTBookReplace>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |