Package com.jquestrade
Class Order
java.lang.Object
com.jquestrade.Order
Represents an order.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionReturns the average price of all executions received for this order.int
Returns the internal identifier of a chain to which the order belongs.Returns the total commission amount charged for this order.Returns the time that the order was created.Returns the identifier assigned to this order by exchange where it was routed.Returns the filled portion of the order quantity.Returns the good-till-date marker and date parameter.Returns the quantity of the iceberg special instruction.int
getId()
Returns the internal order identifier.Returns the price of the last execution received for the order in question.Object[]
getLegs()
Deprecated.double
Returns the limit price (if applicable).Specifies the minimum special instruction.getNotes()
Returns notes that may have been manually added by Questrade staff.int
Returns the unfilled portion of the order quantity.Returns the Bracket Order class.int
Returns the internal identifier of the order group.Returns the order route name.Returns the order type, (e.g., "Buy-To-Open")Returns the commission for placing the order via the Trade Desk over the phone.Returns the human readable order rejection reason message.getSide()
Returns the client side of the order.Returns the source of the order, i.e.getState()
Returns the order state.Returns the stop price (if applicable).Returns the multi-leg strategy to which the order belongs.Returns the security symbol that follows Questrade symbology (e.g., "TD.TO").int
Returns the internal symbol identifier.Returns the order order time-in-force.int
Returns the total number of shares in the order.Returns the stop price at which order was triggered.Returns the time of the order's last update.int
Returns the internal identifier of user that placed the order.Returns the venue where non-marketable portion of the order was booked.boolean
Returns the all-or-none special instruction.boolean
Returns the "anonymous" special instruction.boolean
Don't know what this is, go look it up.boolean
Returns whether or not the user that placed the order is an insider.boolean
Returns whether or not the limit offset is specified in dollars (vs.boolean
Returns whether or not the user that placed the order is a significant shareholder.
-
Method Details
-
getId
public int getId()Returns the internal order identifier.- Returns:
- The internal order identifier.
-
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
Returns the filled portion of the order quantity.- Returns:
- The filled portion of the order quantity.
-
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:
-
- The Client Order Side section for all possible values.
-
getOrderType
Returns the order type, (e.g., "Buy-To-Open")- Returns:
- The order type.
- See Also:
-
- The Order Type section for all possible values.
-
getLimitPrice
public double getLimitPrice()Returns the limit price (if applicable).- Returns:
- The limit price.
-
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
Returns the quantity of the iceberg special instruction.- Returns:
- The iceberg instruction
-
getMinQuantity
Specifies the minimum special instruction.- Returns:
- The minimum special instruction.
-
getAvgExecPrice
Returns the average price of all executions received for this order.- Returns:
- The average price of all executions received for this order.
-
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
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
Returns the order order time-in-force.- Returns:
- The order order time-in-force.
- See Also:
-
- The Order Time-In-Force section for all possible values.
-
getGtdDate
Returns the good-till-date marker and date parameter.- Returns:
- The good-till-date marker and date parameter.
-
getState
Returns the order state.- Returns:
- The order state.
- See Also:
-
- The Order State section for all possible values.
-
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
Returns the time that the order was created.- Returns:
- The time that the order was created.
-
getUpdateTime
Returns the time of the order's last update.- Returns:
- The time of the order's last update.
-
getNotes
Returns notes that may have been manually added by Questrade staff.- Returns:
- Notes that may have been manually added by Questrade staff.
-
getPrimaryRoute
- Returns:
- the primaryRoute
-
getSecondaryRoute
- Returns:
- the secondaryRoute
-
getOrderRoute
Returns the order route name.- Returns:
- The order route name.
-
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
Returns the total commission amount charged for this order.- Returns:
- The total commission amount charged for this order.
-
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.
-
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
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.No idea what this is. Unimplemented- Returns:
- the legs
-
getStrategyType
Returns the multi-leg strategy to which the order belongs.- Returns:
- The multi-leg strategy.
-
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
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
-