quantlib.instruments.swaption.
Swaption¶
- class Swaption(FixedVsFloatingSwap swap, Exercise exercise, Type delivery=Settlement.Physical, Method settlement_method=Settlement.PhysicalOTC)¶
Bases:
Option- Attributes:
- annuity
- atm_forward
- delta
error_estimateInstrument.error_estimate: Real
exerciseOption.exercise: Exercise
- implied_vol
is_expiredInstrument.is_expired: bool
net_present_valueInstrument net present value.
npvShortcut to the net_present_value property.
payoffOption.payoff: Payoff
- settlement_method
- settlement_type
- std_dev
- time_to_expiry
- type
valuation_datethe date the net present value refers to.
- vega
Methods
implied_volatility(self, Real price, ...)set_pricing_engine(self, PricingEngine engine)Sets the pricing engine.
underlying(self)