Execution

View as MarkdownOpen in Claude

Execution

FieldTypeDescription
orderIdint32The API client’s order Id. May not be unique to an account.
execIdstringThe execution’s identifier. Each partial fill has a separate ExecId. A correction is indicated by an ExecId which differs from a previous ExecId in only the digits after the final period
timestringThe execution’s server time.
acctNumberstringThe account to which the order was allocated.
exchangestringThe exchange where the execution took place.
sidestringSpecifies if the transaction was buy or sale BOT for bought
sharesstringThe number of shares filled.
pricedoubleThe order’s execution price excluding commissions.
permIdint64The TWS order identifier. The PermId can be 0 for trades originating outside IB.
clientIdint32The API client identifier which placed the order which originated this execution.
isLiquidationboolIndicates the order was triggered as an IB Liquidation.
cumQtystringCumulative quantity. Used in regular trades
avgPricedoubleAverage price. Used in regular trades
orderRefstringThe OrderRef is a user-customizable string that can be set from the API or TWS and will be associated with an order for its lifetime.
evRulestringThe Economic Value Rule name and the respective optional argument. The two values should be separated by a colon. For example
evMultiplierdoubleTells you approximately how much the market value of a contract would change if the price were to change by 1. It cannot be used to get market value by multiplying the price by the approximate multiplier.
modelCodestringIdentifier of the financial advisor’s model
lastLiquidityint32The liquidity type of the execution. Requires TWS 968+ and API v973.05+. Python API specifically requires API v973.06+.
isPriceRevisionPendingboolIndicates the price the order executed as may be changed.
submitterstringUsername that placed the executing order.
optExerciseOrLapseTypeint32Flags the type of exercise that traded the order.