quantlib.instruments.option.VanillaOption¶
- class VanillaOption(StrikedTypePayoff payoff, Exercise exercise)¶
Bases:
OneAssetOption- __init__(*args, **kwargs)¶
Methods
__init__(*args, **kwargs)implied_volatility(self, Real price, ...)set_pricing_engine(self, PricingEngine engine)Sets the pricing engine.
Attributes
deltadelta_forwarddividend_rhoelasticityexercisegammais_expireditm_cash_probabilitynet_present_valueInstrument net present value.
npvShortcut to the net_present_value property.
payoffrhostrike_sensitivitythetatheta_per_dayvaluation_datevega- implied_volatility(self, Real price, GeneralizedBlackScholesProcess process, DividendSchedule dividends=None, Real accuracy=1e-4, Size max_evaluations=100, Volatility min_vol=1e-7, Volatility max_vol=4.0)¶