OEC Application Programming Interface

Contract Properties

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

Public Instance Properties

BaseContract Base contract instance. See BaseContract.
BaseSymbol Base symbol. Example: ES for ESH6
Commissions Commissions
CompoundType Type of compound contract
ContractGroup Group where contract belongs to (Currencies, Grains etc)
ContractSize Contract size - currency unit per point. (dollar value if currency is USD)
Currency Currency of the contract
CurrentPrice Current price data, if subscribed, or null
DOM Current DOM data, if subscribed for DOM, or null
ElectronicContract Electronic pair for pit contract, if exists
Exchange Exchange of the contract
ExpirationDate Date of contract expiration
ExpirationMonth Expiration month and year, in YYMM format
ExpirationTime Time of contract expiration, DateTime.MinValue in case if no expiration time available for the contract
ExpirationType Expiration type of equity options (standard, weekly, quarterly)
HasExpiration Has the contract an expiration date?
HasOnlyFutureLegs Is the contract a future-only compound?
HasOptionLegs Is the contract an option compound?
HasOptions Has the contract linked options?
Histogram Last copy of traded price histogram
IDOverloaded. Contract ID (non unique).
IndexComponents Index Components
IsCompound Is the contract a compound contract?
IsEquityAsset Is the contract a equity, equity index, equity options, mutual fund or bond?
IsForex Is the contract a forex contract?
IsFuture Is the contract a future contract?
IsMarginal Is the contract a future/forex contract?
IsOption Is the contract an option contract?
IsSpreadObsolete. Is the contract a spread?
Key SortKey for contract Contracts usually are sorted by basesymbol/monthyear
Legs Legs for compound contract
Month Expiration month
MonthChar Expiration month symbol - one of "FGHJKMNQUVXZ"
MonthYear Expiration monthyear = "{MonthChar}{YearLastDigit}". Example: "H6"
Name Full name. Example: "E-Mini S&P", "Crude Oil"
Options List of underlying options
ParentContract Parent contract for an option contract (ESM8 for OESM8C1300)
Pit Pit or electronic contract
PitContract Pit pair for electronic contract, if exists
PositionContract Contract for position calulation: Electronic for electronic only or dual, pit for pit only
PositionSymbol Name of contract or dual contracts for position
PriceFormat Price Format
PriceMultiplier Multiplier - power of 10 used for price formatting.
Put Put or Call
QuoteDetails Quote Details
StartTime Trading session start time, in local time zone
StopTime Trading session stop time, in local time zone
Strike Option strike price
Suffix put/call and strike price
Symbol Contract symbol. Examples: ESH6, FDAXH6
Tenor Gets tenor of FX FWD contract.
TickSize Tick size - minimal increment of the price value
Type Contract type - Pit or Electronic
Year Expiration year

See Also

Contract Class | OEC.API Namespace | BaseContract | ContractGroup | Contract