Logo
Fully annotated reference manual - version 1.8.12
Loading...
Searching...
No Matches
List of all members
SwaptionVolCurve Class Reference

Wrapper class for building Swaption volatility structures. More...

#include <ored/marketdata/swaptionvolcurve.hpp>

+ Inheritance diagram for SwaptionVolCurve:
+ Collaboration diagram for SwaptionVolCurve:

Public Member Functions

Constructors
 SwaptionVolCurve ()
 Default constructor. More...
 
 SwaptionVolCurve (Date asof, SwaptionVolatilityCurveSpec spec, const Loader &loader, const CurveConfigurations &curveConfigs, const map< string, QuantLib::ext::shared_ptr< SwapIndex > > &requiredSwapIndices={}, const map< string, QuantLib::ext::shared_ptr< GenericYieldVolCurve > > &requiredVolCurves={}, const bool buildCalibrationInfo=true)
 Detailed constructor. More...
 
- Public Member Functions inherited from GenericYieldVolCurve
 GenericYieldVolCurve ()
 Default constructor. More...
 
virtual ~GenericYieldVolCurve ()
 dtor More...
 
 GenericYieldVolCurve (const Date &asof, const Loader &loader, const CurveConfigurations &curveConfigs, const QuantLib::ext::shared_ptr< GenericYieldVolatilityCurveConfig > &config, const map< string, QuantLib::ext::shared_ptr< SwapIndex > > &requiredSwapIndices, const map< string, QuantLib::ext::shared_ptr< GenericYieldVolCurve > > &requiredVolCurves, const std::function< bool(const QuantLib::ext::shared_ptr< MarketDatum > &md, Period &expiry, Period &term)> &matchAtmQuote, const std::function< bool(const QuantLib::ext::shared_ptr< MarketDatum > &md, Period &expiry, Period &term, Real &strike)> &matchSmileQuote, const std::function< bool(const QuantLib::ext::shared_ptr< MarketDatum > &md, Period &term)> &matchShiftQuote, const bool buildCalibrationInfo)
 Detailed constructor. More...
 
const QuantLib::ext::shared_ptr< SwaptionVolatilityStructure > & volTermStructure ()
 
QuantLib::ext::shared_ptr< IrVolCalibrationInfocalibrationInfo () const
 

Inspectors

SwaptionVolatilityCurveSpec spec_
 
const SwaptionVolatilityCurveSpecspec () const
 

Detailed Description

Wrapper class for building Swaption volatility structures.

Definition at line 38 of file swaptionvolcurve.hpp.

Constructor & Destructor Documentation

◆ SwaptionVolCurve() [1/2]

Default constructor.

Definition at line 43 of file swaptionvolcurve.hpp.

43{}

◆ SwaptionVolCurve() [2/2]

SwaptionVolCurve ( Date  asof,
SwaptionVolatilityCurveSpec  spec,
const Loader loader,
const CurveConfigurations curveConfigs,
const map< string, QuantLib::ext::shared_ptr< SwapIndex > > &  requiredSwapIndices = {},
const map< string, QuantLib::ext::shared_ptr< GenericYieldVolCurve > > &  requiredVolCurves = {},
const bool  buildCalibrationInfo = true 
)

Detailed constructor.

Definition at line 28 of file swaptionvolcurve.cpp.

34 asof, loader, curveConfigs, curveConfigs.swaptionVolCurveConfig(spec.curveConfigID()), requiredSwapIndices,
35 requiredVolCurves,
36 [](const QuantLib::ext::shared_ptr<MarketDatum>& md, Period& expiry, Period& term) -> bool {
37 QuantLib::ext::shared_ptr<SwaptionQuote> q = QuantLib::ext::dynamic_pointer_cast<SwaptionQuote>(md);
38 if (q == nullptr)
39 return false;
40 expiry = q->expiry();
41 term = q->term();
42 return q->dimension() == "ATM" && q->instrumentType() == MarketDatum::InstrumentType::SWAPTION;
43 },
44 [](const QuantLib::ext::shared_ptr<MarketDatum>& md, Period& expiry, Period& term, Real& strike) {
45 QuantLib::ext::shared_ptr<SwaptionQuote> q = QuantLib::ext::dynamic_pointer_cast<SwaptionQuote>(md);
46 if (q == nullptr)
47 return false;
48 expiry = q->expiry();
49 term = q->term();
50 strike = q->strike();
51 return q->dimension() == "Smile" && q->instrumentType() == MarketDatum::InstrumentType::SWAPTION;
52 },
53 [](const QuantLib::ext::shared_ptr<MarketDatum>& md, Period& term) {
54 QuantLib::ext::shared_ptr<SwaptionShiftQuote> q = QuantLib::ext::dynamic_pointer_cast<SwaptionShiftQuote>(md);
55 if (q == nullptr)
56 return false;
57 term = q->term();
58 return true;
59 },
60 buildCalibrationInfo),
61 spec_(spec) {}
const std::string & curveConfigID() const
Definition: curvespec.hpp:83
GenericYieldVolCurve()
Default constructor.
const SwaptionVolatilityCurveSpec & spec() const
SwaptionVolatilityCurveSpec spec_
vector< string > curveConfigs

Member Function Documentation

◆ spec()

const SwaptionVolatilityCurveSpec & spec ( ) const

Definition at line 54 of file swaptionvolcurve.hpp.

54{ return spec_; }

Member Data Documentation

◆ spec_

Definition at line 58 of file swaptionvolcurve.hpp.