QuantConnect Lean Algorithmic Trading Engine
Properties  Methods 


QuantConnect.Orders Namespace : OrderTicket Class
OrderTicket Class Members

The following tables list the members exposed by OrderTicket.

Public Constructors
 NameDescription
Public ConstructorInitializes a new instance of the OrderTicket class  
Top
Public Properties
 NameDescription
Public Property Gets the average fill price for this ticket. If no fills have been processed then this will return a value of zero.  
Public PropertyGets the CancelOrderRequest if this order was canceled. If this order was not canceled, this will return null  
Public Property Gets a wait handle that can be used to wait until this order has filled  
Public Property Gets a list of all order events for this ticket  
Public Property Gets the order id of this ticket  
Public Property Gets the type of order  
Public Property Gets the number of units ordered  
Public Property Gets the total qantity filled for this ticket. If no fills have been processed then this will return a value of zero.  
Public PropertyGets the Symbol's SecurityType  
Public Property Gets the current status of this order ticket  
Public PropertyGets the SubmitOrderRequest that initiated this order  
Public Property Gets the symbol being ordered  
Public Property Gets the order's current tag  
Public Property Gets the time this order was last updated  
Public PropertyGets a list of UpdateOrderRequest containing an item for each UpdateOrderRequest that was sent for this order id  
Top
Public Methods
 NameDescription
Public Method Submits a new request to cancel this order  
Public Method Gets the specified field from the ticket  
Public MethodGets the most recent OrderRequest for this ticket  
Public MethodGets the most recent OrderResponse for this ticket  
Public Methodstatic (Shared in Visual Basic)Creates a new OrderTicket that represents trying to cancel an order for which no ticket exists  
Public Methodstatic (Shared in Visual Basic)Creates a new OrderTicket that represents trying to submit a new order that had errors embodied in the response  
Public Methodstatic (Shared in Visual Basic)Creates a new OrderTicket tht represents trying to update an order for which no ticket exists  
Public Methodstatic (Shared in Visual Basic)Creates a new OrderTicket that is invalidated because the algorithm was in the middle of warm up still  
Public MethodReturns a string that represents the current object.  
Public MethodSubmits an UpdateOrderRequest with the QuantConnect.Securities.SecurityTransactionManager to update the ticket with data specified in fields  
Top
Public Operators
This is provided for API backward compatibility and will resolve to the order ID, except during an error, where it will return the integer value of the OrderResponseErrorCode from the most recent response
Top
See Also