Swaption Class Reference
[Financial instruments]
#include <ql/Instruments/swaption.hpp>
Inheritance diagram for Swaption:

Detailed Description
Swaption class
- Tests:
- the correctness of the returned value is tested by checking that the price of a payer (resp. receiver) swaption decreases (resp. increases) with the strike.
- the correctness of the returned value is tested by checking that the price of a payer (resp. receiver) swaption increases (resp. decreases) with the spread.
- the correctness of the returned value is tested by checking it against that of a swaption on a swap with no spread and a correspondingly adjusted fixed rate.
- the correctness of the returned value is tested by checking it against a known good value.
- Todo:
- add explicit exercise lag
- Examples:
Public Member Functions | |
Swaption (const boost::shared_ptr< VanillaSwap > &swap, const boost::shared_ptr< Exercise > &exercise, const Handle< YieldTermStructure > &termStructure, const boost::shared_ptr< PricingEngine > &engine) | |
bool | isExpired () const |
returns whether the instrument is still tradable. | |
void | setupArguments (Arguments *) const |
Classes | |
class | arguments |
Arguments for swaption calculation More... | |
class | results |
Results from swaption calculation More... |
Member Function Documentation
|
When a derived argument structure is defined for an instrument, this method should be overridden to fill it. This is mandatory in case a pricing engine is used. Reimplemented from Instrument. |