25#include <ql/termstructures/credit/flathazardrate.hpp>
26#include <ql/termstructures/yield/flatforward.hpp>
32 const std::map<std::string, Handle<YieldTermStructure>>& iborIndexCurves,
const bool handlePseudoCurrencies)
35 QuantLib::ext::shared_ptr<Conventions> conventions = InstrumentConventions::instance().conventions();
38 for (
auto const& c : iborIndexCurves)
44 const string& configuration)
const {
45 return Handle<YieldTermStructure>(QuantLib::ext::make_shared<FlatForward>(0, NullCalendar(), 0.0, Actual365Fixed()));
49 return Handle<Quote>(QuantLib::ext::make_shared<SimpleQuote>(0.0));
53 const string& configuration)
const {
54 return Handle<QuantExt::CreditCurve>(
55 QuantLib::ext::make_shared<QuantExt::CreditCurve>(Handle<DefaultProbabilityTermStructure>(
56 QuantLib::ext::make_shared<FlatHazardRate>(0, NullCalendar(), 0.0, Actual365Fixed()))));
60 return Handle<Quote>(QuantLib::ext::make_shared<SimpleQuote>(0.0));
Handle< Quote > securitySpread(const string &securityID, const string &configuration=Market::defaultConfiguration) const override
Handle< YieldTermStructure > yieldCurve(const string &name, const string &configuration=Market::defaultConfiguration) const override
Handle< QuantExt::CreditCurve > defaultCurve(const string &, const string &configuration=Market::defaultConfiguration) const override
Handle< Quote > recoveryRate(const string &, const string &configuration=Market::defaultConfiguration) const override
FittedBondCurveHelperMarket(const std::map< std::string, Handle< YieldTermStructure > > &iborIndexCurves={}, const bool handlePseudoCurrencies=true)
static const string defaultConfiguration
Default configuration label.
map< pair< string, string >, Handle< IborIndex > > iborIndices_
A market implementation providing curves for setting up bond rate helpers.
QuantLib::ext::shared_ptr< IborIndex > parseIborIndex(const string &s, const Handle< YieldTermStructure > &h)
Convert std::string to QuantLib::IborIndex.
Map text representations to QuantLib/QuantExt types.
Serializable Credit Default Swap.