24#ifndef quantext_equity_forward_curve_stripper_hpp
25#define quantext_equity_forward_curve_stripper_hpp
27#include <ql/exercise.hpp>
28#include <ql/patterns/lazyobject.hpp>
29#include <ql/termstructures/yieldtermstructure.hpp>
38 const QuantLib::ext::shared_ptr<OptionPriceSurface>& putSurface,
39 QuantLib::Handle<QuantLib::YieldTermStructure>& forecastCurve,
40 QuantLib::Handle<QuantLib::Quote>& equitySpot,
41 QuantLib::Exercise::Type type = QuantLib::Exercise::European);
44 const std::vector<QuantLib::Date>
expiries()
const;
46 const std::vector<QuantLib::Real>
forwards()
const;
55 const QuantLib::ext::shared_ptr<OptionPriceSurface>
putSurface_;
QuantLib::Exercise::Type type_
void performCalculations() const override
QuantLib::Handle< QuantLib::YieldTermStructure > forecastCurve_
const QuantLib::ext::shared_ptr< OptionPriceSurface > callSurface_
const QuantLib::ext::shared_ptr< OptionPriceSurface > putSurface_
QuantLib::Real forwardFromPutCallParity(QuantLib::Date d, QuantLib::Real call, const OptionPriceSurface &callSurface, const OptionPriceSurface &putSurface) const
const std::vector< QuantLib::Date > expiries() const
return the expiries
QuantLib::Handle< QuantLib::Quote > equitySpot_
std::vector< QuantLib::Real > forwards_
store the stripped forward rates
const std::vector< QuantLib::Real > forwards() const
return the stripped forwards
Surface to store option prices.