Option: Create an option contract

View source: R/contracts_by_secType.R

OptionR Documentation

Create an option contract

Description

Create an option contract

Usage

Option(symbol, lastTradeDateOrContractMonth = "", strike = 0,
  right = "", multiplier = "100", exchange = "SMART",
  primaryExchange = "", currency = "USD")

Arguments

symbol

The contract (or its underlying) symbol.

lastTradeDateOrContractMonth

The contract's last trading day or contract month.

strike

The option's strike price.

right

Put or Call. Valid values are 'P', 'PUT', 'C', 'CALL'

multiplier

The instrument's multiplier. Default value is: 100

exchange

The destination exchange.

primaryExchange

The contract's primary exchange.

currency

The underlying's currency.

Value

returns an object of class "Contract"

See Also

Other Contracts: Stock

Examples

Example to follow

pverspeelt/ibapir documentation built on March 29, 2022, 11:57 a.m.