trade29.sc.constants.OrderStatusCode#

class trade29.sc.constants.OrderStatusCode(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)#

An enumeration of order statuses.

See the Sierra Chart docs for more detail on what each order status code means.

Attributes

UNSPECIFIED

ORDERSENT

PENDINGOPEN

This is only used for external trading services, and it should be used when the service indicates the order is pending and it is clear that the order cannot be modified or it is unclear if the order can be modified in the pending state. Sierra Chart will queue and delay an order modification if the state is Pending Open. This order status must not be used in the case of child orders or when an order like a Market If Touched order is being held until it is triggered.

PENDING_CHILD_CLIENT

Indicates a pending child order that resides on the client-side within Sierra Chart.

PENDING_CHILD_SERVER

Indicates a pending child order that resides on the server.

OPEN

PENDINGMODIFY

PENDINGCANCEL

FILLED

Order has been completely filled or partially filled, and is no longer considered working.

CANCELED

Order has been canceled. The order could have been partially filled before it was canceled.

ERROR

Error with order.

PENDING_CANCEL_FOR_REPLACE

To be used with trading services that do not support modifying orders.

HELD

This is used internally by Sierra Chart to indicate an order is being held before it sent to the trading service.