Learn R Programming

FinancialInstrument (version 1.3.1)

ls_strikes: show strike prices of defined options

Description

list the strike prices of previously defined options.

Usage

ls_strikes(pattern = NULL)

Arguments

pattern

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

Value

vector of strike prices

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
# NOT RUN {
# }
# NOT RUN {
option_series.yahoo('SPY')
ls_strikes(ls_options('SPY'))
# }

Run the code above in your browser using DataLab