Learn R Programming

FinancialInstrument (version 1.4.1)

ls_strikes: show strike prices of defined options

Description

list the strike prices of previously defined options.

Usage

ls_strikes(pattern = NULL)

Value

vector of strike prices

Arguments

pattern

an optional regular expression. Only names matching 'pattern' are returned.

Author

Garrett See

Details

If no option names are supplied, the strike prices of all defined options will be returned

See Also

ls_options, ls_calls, ls_puts ls_instruments_by ls_underlyings

Examples

Run this code

if (FALSE) {
option_series.yahoo('SPY')
ls_strikes(ls_options('SPY'))
}

Run the code above in your browser using DataLab