quantlib.instruments.variance_swap.VarianceSwap¶
- class VarianceSwap(SwapType position, Real strike, Real notional, Date start_date, Date maturity_date)¶
Bases:
Instrument
Variance swap warning This class does not manage seasoned variance swaps. ingroup instruments
- strik¶
- Type:
Real
- notional¶
- Type:
Real
- __init__(*args, **kwargs)¶
Methods
__init__
(*args, **kwargs)set_pricing_engine
(self, PricingEngine engine)Sets the pricing engine.
Attributes
is_expired
net_present_value
Instrument net present value.
npv
Shortcut to the net_present_value property.
strike
valuation_date
variance