Order Status
Introduction
EWrapper.orderStatus gives the up-to-date information of an order every time it changes. Often there are duplicate orderStatus messages.
Order Status
EWrapper.orderStatus(orderId, status, filled, remaining, avgFillPrice, permId, parentId, lastFillPrice, clientId, whyHeld, mktCapPrice)
The order’s client id.
The current status of the order.
Number of filled positions.
The remnant positions.
Average filling price.
The order’s permId used by the TWS to identify orders.
Parent’s id. Used for bracket and auto trailing stop orders.
Price at which the last positions were filled.
API client which submitted the order.
This field is used to identify an order held when TWS is trying to locate shares for a short sell. The value used to indicate this is ‘locate’.
If an order has been capped, this indicates the current capped price.

