Logo
Fully annotated reference manual - version 1.8.12
Loading...
Searching...
No Matches
swaptionvolcurveconfig.hpp
Go to the documentation of this file.
1/*
2 Copyright (C) 2016 Quaternion Risk Management Ltd
3 All rights reserved.
4
5 This file is part of ORE, a free-software/open-source library
6 for transparent pricing and risk analysis - http://opensourcerisk.org
7
8 ORE is free software: you can redistribute it and/or modify it
9 under the terms of the Modified BSD License. You should have received a
10 copy of the license along with this program.
11 The license is also available online at <http://opensourcerisk.org>
12
13 This program is distributed on the basis that it will form a useful
14 contribution to risk analytics and model standardisation, but WITHOUT
15 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
16 FITNESS FOR A PARTICULAR PURPOSE. See the license for more details.
17*/
18
19/*! \file ored/configuration/swaptionvolcurveconfig.hpp
20 \brief Swaption volatility curve configuration classes
21 \ingroup configuration
22*/
23
24#pragma once
25
27#include <ql/time/calendar.hpp>
28#include <ql/time/daycounter.hpp>
29#include <ql/time/period.hpp>
30#include <ql/types.hpp>
31
32namespace ore {
33namespace data {
34
35//! Swaption volatility curve configuration class
36/*!
37 \ingroup configuration
38*/
40public:
41 //! ctor, currency is derived from swap index base
43 : GenericYieldVolatilityCurveConfig("Swap", "SwaptionVolatility", "SWAPTION", "", true, true) {}
44 //! Detailed constructor
48 const vector<string>& optionTenors, const vector<string>& swapTenors,
49 const DayCounter& dayCounter, const Calendar& calendar,
50 const BusinessDayConvention& businessDayConvention, const string& shortSwapIndexBase,
51 const string& swapIndexBase,
52 // Only required for smile
53 const vector<string>& smileOptionTenors = vector<string>(),
54 const vector<string>& smileSwapTenors = vector<string>(),
55 const vector<string>& smileSpreads = vector<string>())
56 : GenericYieldVolatilityCurveConfig("Swap", "SwaptionVolatility", "SWAPTION", "", curveID, curveDescription, "",
60 smileSwapTenors, smileSpreads) {}
61 //! Detailled constructor for proxy config
63 const string& proxySourceCurveId, const string& proxySourceShortSwapIndexBase,
65 const string& proxyTargetSwapIndexBase)
66 : GenericYieldVolatilityCurveConfig("Swap", "SwaptionVolatility", "", curveID, curveDescription, "",
69};
70
71} // namespace data
72} // namespace ore
const string & curveDescription() const
Definition: curveconfig.hpp:55
const string & curveID() const
Definition: curveconfig.hpp:54
Generic yield volatility curve configuration class.
const BusinessDayConvention & businessDayConvention() const
Swaption volatility curve configuration class.
SwaptionVolatilityCurveConfig(const string &curveID, const string &curveDescription, const Dimension dimension, const VolatilityType volatilityType, const VolatilityType outputVolatilityType, const Interpolation interpolation, const Extrapolation extrapolation, const vector< string > &optionTenors, const vector< string > &swapTenors, const DayCounter &dayCounter, const Calendar &calendar, const BusinessDayConvention &businessDayConvention, const string &shortSwapIndexBase, const string &swapIndexBase, const vector< string > &smileOptionTenors=vector< string >(), const vector< string > &smileSwapTenors=vector< string >(), const vector< string > &smileSpreads=vector< string >())
Detailed constructor.
SwaptionVolatilityCurveConfig(const string &curveID, const string &curveDescription, const string &proxySourceCurveId, const string &proxySourceShortSwapIndexBase, const string &proxySourceSwapIndexBase, const string &proxyTargetShortSwapIndexBase, const string &proxyTargetSwapIndexBase)
Detailled constructor for proxy config.
SwaptionVolatilityCurveConfig()
ctor, currency is derived from swap index base
Swaption volatility curve configuration classes.
@ data
Definition: log.hpp:77
Serializable Credit Default Swap.
Definition: namespaces.docs:23