Contract

View as MarkdownOpen in Claude

Contract

FieldTypeDescription
conIdint32The unique IB contract identifier.
symbolstringThe underlying’s asset symbol.
secTypestringThe 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.
lastTradeDateOrContractMonthstringThe 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.
strikedoubleThe option’s strike price.
rightstringEither Put or Call (i.e. Options). Valid values are P, PUT, C, CALL.
multiplierdoubleThe instrument’s multiplier (i.e. options, futures).
exchangestringThe destination exchange.
primaryExchstringThe contract’s primary exchange. For smart routed contracts, used to define contract in case of ambiguity.Should be defined as native exchange of contract. For exchanges which contain a period in name, will only be part of exchange name prior to period, i.e. ENEXT for ENEXT.BE
currencystringThe underlying’s currency.
localSymbolstringThe contract’s symbol within its primary exchange. For options, this will be the OCC symbol
tradingClassstringThe 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”
secIdTypestringSecurity’s identifier when querying contract’s details or placing orders ISIN – Example: Apple: US0378331005 CUSIP – Example: Apple: 037833100.
secIdstringIdentifier of the security type. More…
descriptionstringDescription of the contract.
issuerIdstringIssuerId of the contract.
deltaNeutralContractDeltaNeutralContractDelta and underlying price for Delta-Neutral combo orders. Underlying (STK or FUT)
includeExpiredboolIf set to true, contract details requests and historical data queries can be performed pertaining to expired futures contracts. Expired options or other instrument types are not available.
comboLegsDescripstringDetails for each leg of the combination contract.
comboLegsComboLegThe legs of a combined contract definition. More…
lastTradeDatestringThe contract’s last trading day.