using System; using System.ComponentModel; namespace Krs.Ats.IBNet { /// /// Order Status reported by enum order status. /// [Serializable()] public enum OrderStatus { /// /// indicates that you have transmitted the order, but have not yet received /// confirmation that it has been accepted by the order destination. /// This order status is not sent by TWS and should be explicitly set by the API developer when an order is submitted. /// [Description("PendingSubmit")] PendingSubmit, /// /// PendingCancel - indicates that you have sent a request to cancel the order /// but have not yet received cancel confirmation from the order destination. /// At this point, your order is not confirmed canceled. You may still receive /// an execution while your cancellation request is pending. /// This order status is not sent by TWS and should be explicitly set by the API developer when an order is canceled. /// [Description("PendingCancel")] PendingCancel, /// /// indicates that a simulated order type has been accepted by the IB system and /// that this order has yet to be elected. The order is held in the IB system /// (and the status remains DARK BLUE) until the election criteria are met. /// At that time the order is transmitted to the order destination as specified /// (and the order status color will change). /// [Description("PreSubmitted")] PreSubmitted, /// /// indicates that your order has been accepted at the order destination and is working. /// [Description("Submitted")] Submitted, /// /// indicates that the balance of your order has been confirmed canceled by the IB system. /// This could occur unexpectedly when IB or the destination has rejected your order. /// [Description("Cancelled")] Canceled, /// /// The order has been completely filled. /// [Description("Filled")] Filled, /// /// The Order is inactive /// [Description("Inactive")] Inactive, /// /// The order is Partially Filled /// [Description("PartiallyFilled")] PartiallyFilled, /// /// Api Pending /// [Description("ApiPending")] ApiPending, /// /// Api Cancelled /// [Description("ApiCancelled")] ApiCancelled, /// /// Indicates that there is an error with this order /// This order status is not sent by TWS and should be explicitly set by the API developer when an error has occured. /// [Description("Error")] Error, /// /// No Order Status /// [Description("")] None } }