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_estimateReal: error estimate on the NPV when availableexercise- implied_vol
is_expiredbool: whether the instrument might have value greater than zero.net_present_valueThe net present value of the instrument.
npvA shortcut to the net_present_value property.
payoff- settlement_method
- settlement_type
- std_dev
- time_to_expiry
- type
valuation_dateDate: the date the net present value refers to.- vega
Methods
implied_volatility(self, Real price, ...)set_pricing_engine(self, PricingEngine engine)Sets the pricing engine to be used.
underlying(self)