quantlib.option.
Option¶
- class Option¶
Bases:
Instrumentbase option class
- Attributes:
error_estimateInstrument.error_estimate: Real
exerciseOption.exercise: Exercise
is_expiredInstrument.is_expired: bool
net_present_valueInstrument net present value.
npvShortcut to the net_present_value property.
payoffOption.payoff: Payoff
valuation_datethe date the net present value refers to.
Methods
set_pricing_engine(self, PricingEngine engine)Sets the pricing engine.