Package com.longbridge.trade
Class AttachedOrderDetail
- java.lang.Object
-
- com.longbridge.trade.AttachedOrderDetail
-
public class AttachedOrderDetail extends Object
Attached order detail
-
-
Constructor Summary
Constructors Constructor Description AttachedOrderDetail()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OrderTypegetActivateOrderType()Returns the activate order type.OutsideRTHgetActivateRth()Returns the activate RTH setting.AttachedOrderTypegetAttachedTypeDisplay()Returns the attached type display (1=take-profit, 2=stop-loss).StringgetCounterId()Returns the counter ID.BigDecimalgetExecutedAmount()Returns the executed amount.BigDecimalgetExecutedPrice()Returns the executed price.BigDecimalgetExecutedQty()Returns the executed quantity.OutsideRTHgetForceOnlyRth()Returns the force-only-RTH setting.LocalDategetGtd()Returns the good-till date.StringgetOrderId()Returns the order ID.BigDecimalgetQuantity()Returns the quantity.OrderStatusgetStatus()Returns the order status.BigDecimalgetSubmitPrice()Returns the submit price.OffsetDateTimegetSubmittedAt()Returns the submission time.OrderTaggetTag()Returns the tag.TimeInForceTypegetTimeInForce()Returns the time-in-force type.BigDecimalgetTriggerPrice()Returns the trigger price.TriggerStatusgetTriggerStatus()Returns the trigger status.OffsetDateTimegetUpdatedAt()Returns the last update time.booleanisReviewed()Returns whether the order has been reviewed.booleanisWithdrawn()Returns whether the order has been withdrawn.StringtoString()
-
-
-
Method Detail
-
getOrderId
public String getOrderId()
Returns the order ID.- Returns:
- order ID
-
getAttachedTypeDisplay
public AttachedOrderType getAttachedTypeDisplay()
Returns the attached type display (1=take-profit, 2=stop-loss).- Returns:
- attached type display
-
getTriggerPrice
public BigDecimal getTriggerPrice()
Returns the trigger price.- Returns:
- trigger price
-
getQuantity
public BigDecimal getQuantity()
Returns the quantity.- Returns:
- quantity
-
getExecutedQty
public BigDecimal getExecutedQty()
Returns the executed quantity.- Returns:
- executed quantity
-
getStatus
public OrderStatus getStatus()
Returns the order status.- Returns:
- order status
-
getUpdatedAt
public OffsetDateTime getUpdatedAt()
Returns the last update time.- Returns:
- last update time
-
isWithdrawn
public boolean isWithdrawn()
Returns whether the order has been withdrawn.- Returns:
- withdrawn flag
-
getGtd
public LocalDate getGtd()
Returns the good-till date.- Returns:
- good-till date
-
getTimeInForce
public TimeInForceType getTimeInForce()
Returns the time-in-force type.- Returns:
- time-in-force type
-
getCounterId
public String getCounterId()
Returns the counter ID.- Returns:
- counter ID
-
getTriggerStatus
public TriggerStatus getTriggerStatus()
Returns the trigger status.- Returns:
- trigger status
-
getExecutedAmount
public BigDecimal getExecutedAmount()
Returns the executed amount.- Returns:
- executed amount
-
getTag
public OrderTag getTag()
Returns the tag.- Returns:
- tag
-
getSubmittedAt
public OffsetDateTime getSubmittedAt()
Returns the submission time.- Returns:
- submission time
-
getExecutedPrice
public BigDecimal getExecutedPrice()
Returns the executed price.- Returns:
- executed price
-
getForceOnlyRth
public OutsideRTH getForceOnlyRth()
Returns the force-only-RTH setting.- Returns:
- force-only-RTH setting
-
isReviewed
public boolean isReviewed()
Returns whether the order has been reviewed.- Returns:
- reviewed flag
-
getActivateOrderType
public OrderType getActivateOrderType()
Returns the activate order type.- Returns:
- activate order type
-
getActivateRth
public OutsideRTH getActivateRth()
Returns the activate RTH setting.- Returns:
- activate RTH setting
-
getSubmitPrice
public BigDecimal getSubmitPrice()
Returns the submit price.- Returns:
- submit price
-
-