QPAS
QUSMA Performance Analytics Suite
Public Member Functions | Protected Member Functions | Properties | Events | List of all members
EntityModel.Order Class Reference
Inheritance diagram for EntityModel.Order:

Public Member Functions

object Clone ()
 Creates a new object that is a copy of the current instance. More...
 
override string ToString ()
 

Protected Member Functions

virtual void OnPropertyChanged ([CallerMemberName] string propertyName=null)
 

Properties

int ID [get, set]
 
long ConID [get, set]
 The conid of the contract traded. More...
 
int? TradeID [get, set]
 
virtual Trade Trade [get, set]
 
int InstrumentID [get, set]
 
virtual Instrument Instrument [get, set]
 
string SymbolString [get, set]
 Used for xml parsing. Ignore otherwise. More...
 
DateTime TradeDate [get, set]
 
TimeSpan TradeTime [get]
 Used to bypass retarded grid stuff. Ignore otherwise More...
 
DateTime SetDate [set]
 Used for parsing More...
 
DateTime SetTime [set]
 Used for parsing More...
 
DateTime? OrderPlacementTime [get, set]
 The time at which the order was submitted. More...
 
int Quantity [get, set]
 The number of units for the transaction. More...
 
decimal Price [get, set]
 The transaction price. More...
 
decimal Commission [get, set]
 The total amount of commission for the transaction. More...
 
decimal CommissionInBase [get]
 
int CurrencyID [get, set]
 
virtual Currency Currency [get, set]
 
string CurrencyString [get, set]
 Used for xml parsing. More...
 
int CommissionCurrencyID [get, set]
 
virtual Currency CommissionCurrency [get, set]
 The currency denomination of the trade. More...
 
string CommissionCurrencyString [get, set]
 Used for xml parsing. More...
 
AssetClass AssetCategory [get, set]
 The asset class of the contract traded. More...
 
string SetAssetClass [set]
 Used for xml parsing. Ignore otherwise. More...
 
decimal FXRateToBase [get, set]
 The conversion rate from asset currency to base currency. More...
 
int Multiplier [get, set]
 The multiplier of the contract traded. More...
 
decimal TradeMoney [get, set]
 Trade money is calculated by multiplying the trade price and quantity. More...
 
decimal Proceeds [get, set]
 Calculated by mulitplying the quantity and the transaction price. The proceeds figure will be negative for buys and positive for sales. More...
 
decimal Taxes [get, set]
 The total amount of tax for the transaction. More...
 
decimal ClosePrice [get, set]
 The closing price of the contract traded. More...
 
string OpenClose [get, set]
 The indicator denotes if the trade is an opening or closing trade. More...
 
string Notes [get, set]
 The note/code abbreviation. More...
 
decimal CostBasis [get, set]
 The basis of an opening trade is the inverse of proceeds plus commission and tax amount. For closing trades, the basis is the basis of the opening trade. More...
 
decimal FIFORealizedPnL [get, set]
 Realized P/L can be calculated by the proceeds of the closing trade plus commissions and then adding the basis. More...
 
decimal MTMPnL [get, set]
 The difference between the transaction price and closing price multiplied by the quantity. More...
 
string OptionType [get, set]
 Put or call. More...
 
string BuySell [get, set]
 Buy or sell. More...
 
long? IBOrderID [get, set]
 Null for fake trades. More...
 
decimal NetCash [get, set]
 Net cash is calculated by subtracting the commissions and taxes from trade money. More...
 
string OrderType [get, set]
 STP, LMT, MKT, etc. More...
 
string OrderReference [get, set]
 The order reference number as defined by the user on the order ticket. Available on daily (single-day) activity flex queries only. More...
 
bool IsReal [get, set]
 Is the order actually real? False for virtual "helper" orders. More...
 
decimal? ReferencePrice [get, set]
 User-set reference price for execution analysis. More...
 
DateTime? ReferenceTime [get, set]
 User-set reference time for execution analysis. More...
 
ICollection< ExecutionExecutions = new ObservableCollection<Execution>() [get, set]
 
decimal PerTradeFIFOPnL [get, set]
 This property is used in some situations to keep track of FIFO PnL within a single trade. The FIFORealizedPnL value is provided by IB for the account as a whole. More...
 
int? AccountID [get, set]
 
virtual Account Account [get, set]
 

Events

PropertyChangedEventHandler PropertyChanged
 

Member Function Documentation

◆ Clone()

object EntityModel.Order.Clone ( )

Creates a new object that is a copy of the current instance.

Returns
A new object that is a copy of this instance.

◆ OnPropertyChanged()

virtual void EntityModel.Order.OnPropertyChanged ( [CallerMemberName] string  propertyName = null)
protectedvirtual

◆ ToString()

override string EntityModel.Order.ToString ( )

Property Documentation

◆ Account

virtual Account EntityModel.Order.Account
getset

◆ AccountID

int? EntityModel.Order.AccountID
getset

◆ AssetCategory

AssetClass EntityModel.Order.AssetCategory
getset

The asset class of the contract traded.

◆ BuySell

string EntityModel.Order.BuySell
getset

Buy or sell.

◆ ClosePrice

decimal EntityModel.Order.ClosePrice
getset

The closing price of the contract traded.

◆ Commission

decimal EntityModel.Order.Commission
getset

The total amount of commission for the transaction.

◆ CommissionCurrency

virtual Currency EntityModel.Order.CommissionCurrency
getset

The currency denomination of the trade.

◆ CommissionCurrencyID

int EntityModel.Order.CommissionCurrencyID
getset

◆ CommissionCurrencyString

string EntityModel.Order.CommissionCurrencyString
getset

Used for xml parsing.

◆ CommissionInBase

decimal EntityModel.Order.CommissionInBase
get

◆ ConID

long EntityModel.Order.ConID
getset

The conid of the contract traded.

◆ CostBasis

decimal EntityModel.Order.CostBasis
getset

The basis of an opening trade is the inverse of proceeds plus commission and tax amount. For closing trades, the basis is the basis of the opening trade.

◆ Currency

virtual Currency EntityModel.Order.Currency
getset

◆ CurrencyID

int EntityModel.Order.CurrencyID
getset

◆ CurrencyString

string EntityModel.Order.CurrencyString
getset

Used for xml parsing.

◆ Executions

ICollection<Execution> EntityModel.Order.Executions = new ObservableCollection<Execution>()
getset

◆ FIFORealizedPnL

decimal EntityModel.Order.FIFORealizedPnL
getset

Realized P/L can be calculated by the proceeds of the closing trade plus commissions and then adding the basis.

◆ FXRateToBase

decimal EntityModel.Order.FXRateToBase
getset

The conversion rate from asset currency to base currency.

◆ IBOrderID

long? EntityModel.Order.IBOrderID
getset

Null for fake trades.

◆ ID

int EntityModel.Order.ID
getset

◆ Instrument

virtual Instrument EntityModel.Order.Instrument
getset

◆ InstrumentID

int EntityModel.Order.InstrumentID
getset

◆ IsReal

bool EntityModel.Order.IsReal
getset

Is the order actually real? False for virtual "helper" orders.

◆ MTMPnL

decimal EntityModel.Order.MTMPnL
getset

The difference between the transaction price and closing price multiplied by the quantity.

◆ Multiplier

int EntityModel.Order.Multiplier
getset

The multiplier of the contract traded.

◆ NetCash

decimal EntityModel.Order.NetCash
getset

Net cash is calculated by subtracting the commissions and taxes from trade money.

◆ Notes

string EntityModel.Order.Notes
getset

The note/code abbreviation.

◆ OpenClose

string EntityModel.Order.OpenClose
getset

The indicator denotes if the trade is an opening or closing trade.

◆ OptionType

string EntityModel.Order.OptionType
getset

Put or call.

◆ OrderPlacementTime

DateTime? EntityModel.Order.OrderPlacementTime
getset

The time at which the order was submitted.

◆ OrderReference

string EntityModel.Order.OrderReference
getset

The order reference number as defined by the user on the order ticket. Available on daily (single-day) activity flex queries only.

◆ OrderType

string EntityModel.Order.OrderType
getset

STP, LMT, MKT, etc.

◆ PerTradeFIFOPnL

decimal EntityModel.Order.PerTradeFIFOPnL
getset

This property is used in some situations to keep track of FIFO PnL within a single trade. The FIFORealizedPnL value is provided by IB for the account as a whole.

◆ Price

decimal EntityModel.Order.Price
getset

The transaction price.

◆ Proceeds

decimal EntityModel.Order.Proceeds
getset

Calculated by mulitplying the quantity and the transaction price. The proceeds figure will be negative for buys and positive for sales.

◆ Quantity

int EntityModel.Order.Quantity
getset

The number of units for the transaction.

◆ ReferencePrice

decimal? EntityModel.Order.ReferencePrice
getset

User-set reference price for execution analysis.

◆ ReferenceTime

DateTime? EntityModel.Order.ReferenceTime
getset

User-set reference time for execution analysis.

◆ SetAssetClass

string EntityModel.Order.SetAssetClass
set

Used for xml parsing. Ignore otherwise.

◆ SetDate

DateTime EntityModel.Order.SetDate
set

Used for parsing

◆ SetTime

DateTime EntityModel.Order.SetTime
set

Used for parsing

◆ SymbolString

string EntityModel.Order.SymbolString
getset

Used for xml parsing. Ignore otherwise.

◆ Taxes

decimal EntityModel.Order.Taxes
getset

The total amount of tax for the transaction.

◆ Trade

virtual Trade EntityModel.Order.Trade
getset

◆ TradeDate

DateTime EntityModel.Order.TradeDate
getset

◆ TradeID

int? EntityModel.Order.TradeID
getset

◆ TradeMoney

decimal EntityModel.Order.TradeMoney
getset

Trade money is calculated by multiplying the trade price and quantity.

◆ TradeTime

TimeSpan EntityModel.Order.TradeTime
get

Used to bypass retarded grid stuff. Ignore otherwise

Event Documentation

◆ PropertyChanged

PropertyChangedEventHandler EntityModel.Order.PropertyChanged

The documentation for this class was generated from the following file: