public interface Order
Modifier and Type | Method and Description |
---|---|
boolean |
exists()
Determines if this order exists.
|
java.lang.String |
getAccountId()
Gets the account ID for this order.
|
Enums.OrderAction |
getAction()
Gets the action of this order (Buy or Sell)
|
java.lang.Float |
getAdjLimitPrice()
Gets the adjusted limit price.
|
int |
getAdjQuantity()
Gets the adjusted quantity.
|
java.lang.Float |
getAdjStopPrice()
Gets the adjusted stop price.
|
Enums.TIF |
getAdjTIF()
Gets the adjusted TIF (time in force).
|
float |
getAvgFillPrice()
Gets the average fill price for this order.
|
int |
getFilled()
Gets the number of shares/contracts that have been filled.
|
Instrument |
getInstrument()
Gets the instrument associated to this order.
|
float |
getLastFillPrice()
Gets the last fill price for this order.
|
long |
getLastFillTime()
Gets the time (in milliseconds since 1970) of the last fill on this order.
|
java.lang.Float |
getLimitPrice()
Gets the limit price for the order (null if not a limit order).
|
java.lang.String |
getOrderId()
Gets the unique identifier for this order.
|
int |
getQuantity()
Gets the quantity (size) of this order.
|
java.lang.Object |
getReferenceID()
Gets the reference ID for the order.
|
java.lang.Float |
getStopPrice()
Gets the stop price for the order (null if not a stop order).
|
Enums.TIF |
getTIF()
Gets the Time In Force for this order.
|
Enums.OrderType |
getType()
Gets the type of order (Marker, Limit, Stop, Trail).
|
boolean |
isActive()
Determines if this order is active (waiting to be filled).
|
boolean |
isAdjusted()
Determines if this order has pending changes.
|
boolean |
isBuy()
Determines if this is a buy order.
|
boolean |
isCancelled()
Determines if this order is cancelled.
|
boolean |
isFilled()
Determines if this order is filled.
|
boolean |
isSell()
Determines if this is a sell order.
|
void |
setAdjLimitPrice(java.lang.Float price)
Sets the adjusted limit price.
|
void |
setAdjQuantity(int qty)
Sets the adjusted quantity.
|
void |
setAdjStopPrice(java.lang.Float price)
Sets the adjusted stop price.
|
void |
setAdjTIF(Enums.TIF tif)
Sets the adjusted TIF (time in force).
|
java.lang.String getAccountId()
java.lang.String getOrderId()
Instrument getInstrument()
Enums.OrderType getType()
Enums.OrderAction getAction()
boolean isAdjusted()
boolean isSell()
boolean isBuy()
int getQuantity()
float getAvgFillPrice()
float getLastFillPrice()
int getFilled()
long getLastFillTime()
java.lang.Object getReferenceID()
java.lang.Float getLimitPrice()
java.lang.Float getStopPrice()
Enums.TIF getTIF()
java.lang.Float getAdjLimitPrice()
void setAdjLimitPrice(java.lang.Float price)
price
- new limit pricejava.lang.Float getAdjStopPrice()
void setAdjStopPrice(java.lang.Float price)
price
- new stop priceint getAdjQuantity()
void setAdjQuantity(int qty)
qty
- new quantityEnums.TIF getAdjTIF()
void setAdjTIF(Enums.TIF tif)
tif
- new time in forceboolean isCancelled()
boolean isFilled()
boolean exists()
boolean isActive()