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

class describing an instrument's definition More...

Public Member Functions

override string ToString ()
 

Properties

int ConId [get, set]
 The unique IB contract identifier.
 
string Symbol [get, set]
 The underlying's asset symbol.
 
string SecType [get, set]
 The security's type: STK - stock (or ETF) OPT - option FUT - future IND - index FOP - futures option CASH - forex pair BAG - combo WAR - warrant BOND- bond CMDTY- commodity NEWS- news FUND- mutual fund.
 
string LastTradeDateOrContractMonth [get, set]
 The contract's last trading day or contract month (for Options and Futures). Strings with format YYYYMM will be interpreted as the Contract Month whereas YYYYMMDD will be interpreted as Last Trading Day.
 
double Strike [get, set]
 The option's strike price.
 
string Right [get, set]
 Either Put or Call (i.e. Options). Valid values are P, PUT, C, CALL.
 
string Multiplier [get, set]
 The instrument's multiplier (i.e. options, futures).
 
string Exchange [get, set]
 The destination exchange.
 
string Currency [get, set]
 The underlying's cuurrency.
 
string LocalSymbol [get, set]
 The contract's symbol within its primary exchange.
 
string PrimaryExch [get, set]
 The contract's primary exchange.
 
string TradingClass [get, set]
 The trading class name for this contract. Available in TWS contract description window as well. For example, GBL Dec '13 future's trading class is "FGBL".
 
bool IncludeExpired [get, set]
 If set to true, contract details requests and historical data queries can be performed pertaining to expired contracts. Note: Historical data queries on expired contracts are limited to the last year of the contracts life, and are initially only supported for expired futures contracts.
 
string SecIdType [get, set]
 Security's identifier when querying contract's details or placing orders SIN - Example: Apple: US0378331005 CUSIP - Example: Apple: 037833100 SEDOL - Consists of 6-AN + check digit. Example: BAE: 0263494 RIC - Consists of exchange-independent RIC Root and a suffix identifying the exchange. Example: AAPL.O for Apple on NASDAQ.
 
string SecId [get, set]
 Identifier of the security type. More...
 
string ComboLegsDescription [get, set]
 Description of the combo legs.
 
List< ComboLegComboLegs [get, set]
 The legs of a combined contract definition. More...
 
UnderComp UnderComp [get, set]
 Delta and underlying price for Delta-Neutral combo orders. Underlying (STK or FUT), delta and underlying price goes into this attribute. More...
 

Detailed Description

class describing an instrument's definition

See Also
ContractDetails

Property Documentation

List<ComboLeg> ComboLegs
getset

The legs of a combined contract definition.

See Also
ComboLeg
string SecId
getset

Identifier of the security type.

See Also
secIdType

Delta and underlying price for Delta-Neutral combo orders. Underlying (STK or FUT), delta and underlying price goes into this attribute.

See Also
UnderComp