• C#
  • Java
  • VB
  • C++
  • Python
Contact us
Execution Class Reference

Class describing an order's execution. More...

Public Member Functions

 Execution (int orderId, int clientId, string execId, string time, string acctNumber, string exchange, string side, decimal shares, double price, int permId, int liquidation, decimal cumQty, double avgPrice, string orderRef, string evRule, double evMultiplier, string modelCode, Liquidity lastLiquidity, bool pendingPriceRevision)
 
override bool Equals (object p_other)
 
override int GetHashCode ()
 

Properties

int OrderId [get, set]
 The API client's order Id. May not be unique to an account.
 
int ClientId [get, set]
 The API client identifier which placed the order which originated this execution.
 
string ExecId [get, set]
 The 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, e.g. an ExecId ending in ".02" would be a correction of a previous execution with an ExecId ending in ".01".
 
string Time [get, set]
 The execution's server time.
 
string AcctNumber [get, set]
 The account to which the order was allocated.
 
string Exchange [get, set]
 The exchange where the execution took place.
 
string Side [get, set]
 Specifies if the transaction was buy or sale BOT for bought, SLD for sold.
 
decimal Shares [get, set]
 The number of shares filled.
 
double Price [get, set]
 The order's execution price excluding commissions.
 
int PermId [get, set]
 The TWS order identifier. The PermId can be 0 for trades originating outside IB.
 
int Liquidation [get, set]
 Identifies whether an execution occurred because of an IB-initiated liquidation.
 
decimal CumQty [get, set]
 Cumulative quantity. Used in regular trades, combo trades and legs of the combo.
 
double AvgPrice [get, set]
 Average price. Used in regular trades, combo trades and legs of the combo. Does not include commissions.
 
string OrderRef [get, set]
 The 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.
 
string EvRule [get, set]
 The Economic Value Rule name and the respective optional argument. The two values should be separated by a colon. For example, aussieBond:YearsToExpiration=3. When the optional argument is not present, the first value will be followed by a colon.
 
double EvMultiplier [get, set]
 Tells 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.
 
string ModelCode [get, set]
 model code
 
Liquidity LastLiquidity [get, set]
 The liquidity type of the execution. Requires TWS 968+ and API v973.05+. Python API specifically requires API v973.06+.
 
bool PendingPriceRevision [get, set]
 pending price revision
 

Detailed Description

Class describing an order's execution.

See Also
ExecutionFilter, CommissionReport