Class Option

Option contact.

Hierarchy

  • Option

Implements

Constructors

  • Parameters

    • symbol: string
    • expiry: string
    • strike: number
    • right: OptionType
    • Optional exchange: string
    • Optional currency: string

    Returns Option

Properties

currency?: string

The trading currency.

exchange?: string

The destination exchange.

expiry: string
multiplier: number = 100

The instrument's multiplier (i.e. options, futures).

right: OptionType

Either Put or Call (i.e. Options). Valid values are P, PUT, C, CALL.

secType: SecType = SecType.OPT

The security type

strike: number

The option's strike price.

symbol: string

The asset symbol.

Accessors

  • get lastTradeDateOrContractMonth(): string
  • 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.

    Returns string

Generated using TypeDoc