OEC Application Programming Interface

Position Properties

The properties of the Position class are listed below. For a complete list of Position class members, see the Position Members topic.

Public Instance Properties

Account Account of the position
Contract Contract of the position
ContractSize Contract size. The same as Contract.ContractSize, but depends on account type in the case of FX accounts.
CurrencyGain Total profit/loss (sum of realized and open p/l) in native currency. See also Gain
CurrencyInitialMargin Initial margin of open position in native currency
CurrencyMaintenanceMargin Maintenance margin of open position in native currency
CurrencyNetGain Realized profit/loss in native contract currency. See also NetGain
CurrencyOTE Theoretical profit/loss of open position agains last market price in native currency. See also OTE
CurrencySettlePnL Theoretical profit/loss of open position agains prev. settlement price in native currency. See also SettlePnL
Date Business date of the position
Detailed Checks whether the position is element of detailed position history or daily position summary
DisplayContractSymbol Display name of contract (single of dual)
Fills Fills of position
Gain Total profit/loss (sum of realized and open p/l) in USD. See also CurrencyGain
ID (inherited from IDObject<Contract>) Unique key value
InitialMargin Initial margin of open position in native currency
Long Bought contracts and avg. buy price.
MaintenanceMargin Maintenance margin of open position in USD
Net Net position and avg. price
NetGain Realized profit/loss converted to USD minus commissions. See also CurrencyNetGain
OpenCommissions Commissions for fills of open posiiton
OTE Theoretical profit/loss of open position against last market price in USD minus comissions See also CurrencyOTE
PositionContract Main contract (electronic preferred) of the position
Prev Previous day position and avg. price
RealizedCommissions Commissions for fills of closed position
SettlePnL Theoretical profit/loss of open position agains prev. settlement price in USD minus comissions. See also CurrencySettlePnL
Short Sold contracts and avg. sell price.

See Also

Position Class | OEC.API Namespace