Class Order

java.lang.Object
com.jquestrade.Order

public class Order extends Object
Represents an order.
See Also:
  • Method Details

    • getId

      public int getId()
      Returns the internal order identifier.
      Returns:
      The internal order identifier.
    • getSymbol

      public String getSymbol()
      Returns the security symbol that follows Questrade symbology (e.g., "TD.TO").
      Returns:
      The symbol.
    • getSymbolId

      public int getSymbolId()
      Returns the internal symbol identifier.
      Returns:
      The internal symbol identifier.
    • getTotalQuantity

      public int getTotalQuantity()
      Returns the total number of shares in the order.
      Returns:
      The total number of shares in the order.
    • getOpenQuantity

      public int getOpenQuantity()
      Returns the unfilled portion of the order quantity.
      Returns:
      The unfilled portion of the order quantity.
    • getFilledQuantity

      public Integer getFilledQuantity()
      Returns the filled portion of the order quantity.
      Returns:
      The filled portion of the order quantity.
    • getSide

      public String getSide()
      Returns the client side of the order. Example values: Buy, Sell, Short, BTO, etc..
      Returns:
      The client side of the order to which the execution belongs.
      See Also:
    • getOrderType

      public String getOrderType()
      Returns the order type, (e.g., "Buy-To-Open")
      Returns:
      The order type.
      See Also:
    • getLimitPrice

      public double getLimitPrice()
      Returns the limit price (if applicable).
      Returns:
      The limit price.
    • getStopPrice

      public Double getStopPrice()
      Returns the stop price (if applicable).
      Returns:
      The stop price.
    • isAllOrNone

      public boolean isAllOrNone()
      Returns the all-or-none special instruction.
      Returns:
      The all-or-none special instruction.
    • isAnonoymous

      public boolean isAnonoymous()
      Returns the "anonymous" special instruction.
      Returns:
      The "anonymous" special instruction.
    • getIcebergQuantity

      public Integer getIcebergQuantity()
      Returns the quantity of the iceberg special instruction.
      Returns:
      The iceberg instruction
    • getMinQuantity

      public Integer getMinQuantity()
      Specifies the minimum special instruction.
      Returns:
      The minimum special instruction.
    • getAvgExecPrice

      public Double getAvgExecPrice()
      Returns the average price of all executions received for this order.
      Returns:
      The average price of all executions received for this order.
    • getLastExecPrice

      public Double getLastExecPrice()
      Returns the price of the last execution received for the order in question.
      Returns:
      the price of the last execution received for the order in question.
    • getSource

      public String getSource()
      Returns the source of the order, i.e. what Questrade platform the order the placed on. Example: The source of an order placed on the mobile app would be "QuestradeIQMobile".
      Returns:
      The source of the order.
    • getTimeInForce

      public String getTimeInForce()
      Returns the order order time-in-force.
      Returns:
      The order order time-in-force.
      See Also:
    • getGtdDate

      public String getGtdDate()
      Returns the good-till-date marker and date parameter.
      Returns:
      The good-till-date marker and date parameter.
    • getState

      public String getState()
      Returns the order state.
      Returns:
      The order state.
      See Also:
    • getRejectionReason

      public String getRejectionReason()
      Returns the human readable order rejection reason message.
      Returns:
      The order rejection reasonh.
    • getChainId

      public int getChainId()
      Returns the internal identifier of a chain to which the order belongs.
      Returns:
      The internal identifier of a chain to which the order belongs.
    • getCreationTime

      public String getCreationTime()
      Returns the time that the order was created.
      Returns:
      The time that the order was created.
    • getUpdateTime

      public String getUpdateTime()
      Returns the time of the order's last update.
      Returns:
      The time of the order's last update.
    • getNotes

      public String getNotes()
      Returns notes that may have been manually added by Questrade staff.
      Returns:
      Notes that may have been manually added by Questrade staff.
    • getPrimaryRoute

      public String getPrimaryRoute()
      Returns:
      the primaryRoute
    • getSecondaryRoute

      public String getSecondaryRoute()
      Returns:
      the secondaryRoute
    • getOrderRoute

      public String getOrderRoute()
      Returns the order route name.
      Returns:
      The order route name.
    • getVenueHoldingOrder

      public String getVenueHoldingOrder()
      Returns the venue where non-marketable portion of the order was booked.
      Returns:
      The venue where non-marketable portion of the order was booked.
    • getComissionCharged

      public Double getComissionCharged()
      Returns the total commission amount charged for this order.
      Returns:
      The total commission amount charged for this order.
    • getExchangeOrderId

      public String getExchangeOrderId()
      Returns the identifier assigned to this order by exchange where it was routed.
      Returns:
      The identifier assigned to this order by exchange where it was routed.
    • isSignificantShareHolder

      public boolean isSignificantShareHolder()
      Returns whether or not the user that placed the order is a significant shareholder.
      Returns:
      Whether the user that placed the order is a significant shareholder.
    • isInsider

      public boolean isInsider()
      Returns whether or not the user that placed the order is an insider.
      Returns:
      Whether the user that placed the order is an insider.
    • isLimitOffsetInDollar

      public boolean isLimitOffsetInDollar()
      Returns whether or not the limit offset is specified in dollars (vs. percent).
      Returns:
      Whether the limit offset is specified in dollars (vs. percent).
    • getUserId

      public int getUserId()
      Returns the internal identifier of user that placed the order.
      Returns:
      internal identifier of user that placed the order.
    • getPlacementCommission

      public Double getPlacementCommission()
      Returns the commission for placing the order via the Trade Desk over the phone.
      Returns:
      The commission for placing the order via the Trade Desk over the phone.
    • getLegs

      @Deprecated public Object[] getLegs()
      Deprecated.
      No idea what this is. Unimplemented
      Returns:
      the legs
    • getStrategyType

      public String getStrategyType()
      Returns the multi-leg strategy to which the order belongs.
      Returns:
      The multi-leg strategy.
    • getTriggerStopPrice

      public Double getTriggerStopPrice()
      Returns the stop price at which order was triggered.
      Returns:
      The stop price at which order was triggered.
    • getOrderGroupId

      public int getOrderGroupId()
      Returns the internal identifier of the order group.
      Returns:
      The internal identifier of the order group.
    • getOrderClass

      public String getOrderClass()
      Returns the Bracket Order class. Possible values: Primary, Profit or Loss.
      Returns:
      The bracket order class, or null if not applicable.
    • isCrossZero

      public boolean isCrossZero()
      Don't know what this is, go look it up.
      Returns:
      isCrossZero