Contract

Attribute

Description

String m_symbol

This is the symbol of the underlying asset.

String m_secType

This is the security type. Valid values are:

  • STK

  • OPT

  • FUT

  • IND

  • FOP

  • CASH

  • BAG

String m_expiry

The expiration date. Use the format YYYYMM.

double m_strike

The strike price.

String m_right

Specifies a Put or Call. Valid values are: P, PUT, C, CALL.

String m_multiplier

Allows you to specify a future or option contract multiplier. This is only necessary when multiple possibilities exist.

String m_exchange

The order destination, such as Smart.

String m_currency

Specifies the currency. Ambiguities may require that this field be specified, for example, when SMART is the exchange and IBM is being requested (IBM can trade in GBP or USD).  Given the existence of this kind of ambiguity, it is a good idea to always specify the currency.

String m_localSymbol

This is the local exchange symbol of the underlying asset.

String m_primaryExch

Identifies the listing exchange for the contract (do not list SMART).

boolean m_includeExpired

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 m_comboLegsDescrip

Description for combo legs

Vector m_comboLegs

Dynamic memory structure used to store the leg definitions for this contract.

int m_conId

The unique contract identifier.

String m_secIdType

Security identifier, when querying contract details or when placing orders. Supported identifiers are:

  • ISIN (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 m_secId

Unique identifier for the secIdType.