powered by
Read conf for option sample data and fitting parameters
ecop.from_symbol_conf( key, conf_file = "conf/ecop-fit-conf.yml", conf_data = NULL, extdata_dir = NULL )ecop.read_symbol_conf(key, conf_file = "conf/ecop-fit-conf.yml")ecop.build_opt(ecop, df, otype)
ecop.read_symbol_conf(key, conf_file = "conf/ecop-fit-conf.yml")
ecop.build_opt(ecop, df, otype)
character. The top-level key in conf
file name fof symbol config, default to conf/ecld-fit-conf.yml
optionally feed config through a list. If this is not null, this takes priority and conf_file will be ignored.
conf_file
optionally specify user's own extdata folder
an ecop object with conf
dataframe of a single closing date and time to maturity
option type
the ecop object
# NOT RUN { conf <- ecop.read_symbol_conf("spx2_1d") op <- ecop.from_symbol_conf("spx2_1d") # }
Run the code above in your browser using DataLab