25#ifndef quantlib_implied_bond_spread_hpp
26#define quantlib_implied_bond_spread_hpp
28#include <ql/instruments/bond.hpp>
29#include <ql/quotes/simplequote.hpp>
44 static QuantLib::Real
calculate(
const QuantLib::ext::shared_ptr<QuantLib::Bond>& bond,
45 const QuantLib::ext::shared_ptr<QuantLib::PricingEngine>& engine,
46 const QuantLib::ext::shared_ptr<QuantLib::SimpleQuote>& spreadQuote,
47 QuantLib::Real targetValue,
49 QuantLib::Real accuracy, QuantLib::Natural maxEvaluations, QuantLib::Real minSpread,
50 QuantLib::Real maxSpread);
helper class for implied vanilla bond spread calculation
static QuantLib::Real calculate(const QuantLib::ext::shared_ptr< QuantLib::Bond > &bond, const QuantLib::ext::shared_ptr< QuantLib::PricingEngine > &engine, const QuantLib::ext::shared_ptr< QuantLib::SimpleQuote > &spreadQuote, QuantLib::Real targetValue, bool isCleanPrice, QuantLib::Real accuracy, QuantLib::Natural maxEvaluations, QuantLib::Real minSpread, QuantLib::Real maxSpread)