| Constructor and Description |
|---|
LimitOrderSpec(long clientOrderId,
int instrumentId,
OrderSide side,
int quantity,
java.math.BigDecimal limitPrice) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
long |
getClientOrderId() |
int |
getInstrumentId() |
java.math.BigDecimal |
getLimitPrice() |
OrderType |
getOrderType() |
int |
getQuantity() |
OrderSide |
getSide() |
int |
hashCode() |
java.lang.String |
toString() |
public LimitOrderSpec(long clientOrderId,
int instrumentId,
OrderSide side,
int quantity,
java.math.BigDecimal limitPrice)
clientOrderId - id of an order given by the client, has to be different than ids of all other pending ordersinstrumentId - id of an instrument this order is forside - side of the orderquantity - quantity of the order, has to be positivelimitPrice - limit price of the order, has to be positivejava.lang.IllegalArgumentException - if quantity or limitPrice is not positivejava.lang.NullPointerException - if any of nullable arguments is nullpublic long getClientOrderId()
getClientOrderId in interface OrderSpecpublic int getInstrumentId()
public OrderSide getSide()
public int getQuantity()
public java.math.BigDecimal getLimitPrice()
public OrderType getOrderType()
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object