Package com.longbridge.trade
Class Order
- java.lang.Object
-
- com.longbridge.trade.Order
-
public class Order extends Object
Order information
-
-
Constructor Summary
Constructors Constructor Description Order()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetCurrency()Returns the currency.BigDecimalgetExecutedPrice()Returns the executed price.BigDecimalgetExecutedQuantity()Returns the executed quantity.LocalDategetExpireDate()Returns the expiry date (for GoodTilDate orders).BigDecimalgetLastDone()Returns the last trade price.IntegergetLimitDepthLevel()Returns the limit depth level.BigDecimalgetLimitOffset()Returns the limit offset.BigDecimalgetMonitorPrice()Returns the monitor price.StringgetMsg()Returns the rejection or system remark message.StringgetOrderId()Returns the order ID.OrderTypegetOrderType()Returns the order type.OutsideRTHgetOutsideRth()Returns the outside-RTH setting.BigDecimalgetPrice()Returns the order price.BigDecimalgetQuantity()Returns the order quantity.OrderSidegetSide()Returns the order side.OrderStatusgetStatus()Returns the order status.StringgetStockName()Returns the security name.OffsetDateTimegetSubmittedAt()Returns the submission time.StringgetSymbol()Returns the security code.OrderTaggetTag()Returns the order tag.TimeInForceTypegetTimeInForce()Returns the time-in-force type.BigDecimalgetTrailingAmount()Returns the trailing amount.BigDecimalgetTrailingPercent()Returns the trailing percentage.OffsetDateTimegetTriggerAt()Returns the trigger time.IntegergetTriggerCount()Returns the trigger count.BigDecimalgetTriggerPrice()Returns the trigger price.TriggerStatusgetTriggerStatus()Returns the trigger status.OffsetDateTimegetUpdatedAt()Returns the last update time.Stringremark()Returns the remark.StringtoString()
-
-
-
Method Detail
-
getOrderId
public String getOrderId()
Returns the order ID.- Returns:
- order ID
-
getStatus
public OrderStatus getStatus()
Returns the order status.- Returns:
- order status
-
getStockName
public String getStockName()
Returns the security name.- Returns:
- security name
-
getQuantity
public BigDecimal getQuantity()
Returns the order quantity.- Returns:
- order quantity
-
getExecutedQuantity
public BigDecimal getExecutedQuantity()
Returns the executed quantity.- Returns:
- executed quantity
-
getPrice
public BigDecimal getPrice()
Returns the order price.- Returns:
- order price
-
getExecutedPrice
public BigDecimal getExecutedPrice()
Returns the executed price.- Returns:
- executed price
-
getSubmittedAt
public OffsetDateTime getSubmittedAt()
Returns the submission time.- Returns:
- submission time
-
getSide
public OrderSide getSide()
Returns the order side.- Returns:
- order side
-
getSymbol
public String getSymbol()
Returns the security code.- Returns:
- security code
-
getOrderType
public OrderType getOrderType()
Returns the order type.- Returns:
- order type
-
getLastDone
public BigDecimal getLastDone()
Returns the last trade price.- Returns:
- last trade price
-
getTriggerPrice
public BigDecimal getTriggerPrice()
Returns the trigger price.- Returns:
- trigger price
-
getMsg
public String getMsg()
Returns the rejection or system remark message.- Returns:
- rejection or system remark message
-
getTag
public OrderTag getTag()
Returns the order tag.- Returns:
- order tag
-
getTimeInForce
public TimeInForceType getTimeInForce()
Returns the time-in-force type.- Returns:
- time-in-force type
-
getExpireDate
public LocalDate getExpireDate()
Returns the expiry date (for GoodTilDate orders).- Returns:
- expiry date
-
getUpdatedAt
public OffsetDateTime getUpdatedAt()
Returns the last update time.- Returns:
- last update time
-
getTriggerAt
public OffsetDateTime getTriggerAt()
Returns the trigger time.- Returns:
- trigger time
-
getTrailingAmount
public BigDecimal getTrailingAmount()
Returns the trailing amount.- Returns:
- trailing amount
-
getTrailingPercent
public BigDecimal getTrailingPercent()
Returns the trailing percentage.- Returns:
- trailing percentage
-
getLimitOffset
public BigDecimal getLimitOffset()
Returns the limit offset.- Returns:
- limit offset
-
getTriggerStatus
public TriggerStatus getTriggerStatus()
Returns the trigger status.- Returns:
- trigger status
-
getCurrency
public String getCurrency()
Returns the currency.- Returns:
- currency
-
getOutsideRth
public OutsideRTH getOutsideRth()
Returns the outside-RTH setting.- Returns:
- outside-RTH setting
-
remark
public String remark()
Returns the remark.- Returns:
- remark
-
getLimitDepthLevel
public Integer getLimitDepthLevel()
Returns the limit depth level.- Returns:
- limit depth level
-
getTriggerCount
public Integer getTriggerCount()
Returns the trigger count.- Returns:
- trigger count
-
getMonitorPrice
public BigDecimal getMonitorPrice()
Returns the monitor price.- Returns:
- monitor price
-
-