24#include <boost/make_shared.hpp>
31QuantLib::ext::shared_ptr<FloatingRateCouponPricer>
33 const QuantLib::ext::shared_ptr<CmsCouponPricer>& cmsPricer) {
35 QuantLib::Handle<QuantExt::CorrelationTermStructure> corrCurve(
36 QuantLib::ext::make_shared<QuantExt::FlatCorrelation>(0, NullCalendar(), 0.0, Actual365Fixed()));
40 WLOG(
"no correlation curve for " << index1 <<
", " << index2 <<
" found, fall back to zero correlation.");
43 const string& ccyCode = ccy.code();
44 return QuantLib::ext::make_shared<QuantExt::LognormalCmsSpreadPricer>(
QuantLib::ext::shared_ptr< FloatingRateCouponPricer > engineImpl(const Currency &ccy, const string &index1, const string &index2, const QuantLib::ext::shared_ptr< QuantLib::CmsCouponPricer > &cmsPricer) override
QuantLib::ext::shared_ptr< Market > market_
std::string engineParameter(const std::string &p, const std::vector< std::string > &qualifiers={}, const bool mandatory=true, const std::string &defaultValue="") const
const string & configuration(const MarketContext &key)
Return a configuration (or the default one if key not found)
builder that returns a cms spread coupon pricer
Integer parseInteger(const string &s)
Convert text to QuantLib::Integer.
Classes and functions for log message handling.
#define WLOG(text)
Logging Macro (Level = Warning)
Serializable Credit Default Swap.
Map text representations to QuantLib/QuantExt types.