The Order type exposes the following members.

Methods

  NameDescription
CancelOrder
Cancels this order if it is pending.
Equals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Finalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
GetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
GetType
Gets the Type of the current instance.
(Inherited from Object.)
MemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
ToString
ToString override to represent an order as a string.
(Overrides Object..::.ToString()()().)

Properties

  NameDescription
BarsValid
The number of bars after which the order will be cancelled if it has not been filled.
BrokerOrder
The BrokerOrder associated with this order. This property is for internal use and does not need to be used in trading system code.
CancelPending
Indicates that a request to cancel the order has been sent to the broker.
Description
A user-definable description for the order.
Error
Error information for the order. This will be null if the order was successfully submitted.
Fills
A list of fills for the order.
ID
This order's order ID.
LimitPrice
The limit price for the order (if applicable).
OrderState
The current order state (pending, filled, cancelled, etc.)
OrderType
The order type (market, limit, stop, etc.)
Size
The size of this order (in shares, contracts, etc.).
StopPrice
The stop price for the order (if applicable).
Symbol
The Symbol associated with this order.
Tag
An object that can be used to store additional user-defined data related to the order.
TradeOrder
The PositionManager..::.TradeOrder associated with this order. This property is for internal use and does not need to be used in trading system code.
TradeType
The type of trade.
TransactionType
The transaction type (buy, sell, short, or cover).

See Also