24#ifndef quantext_basis_two_swap_helper_hpp
25#define quantext_basis_two_swap_helper_hpp
27#include <ql/termstructures/yield/ratehelpers.hpp>
40 BasisTwoSwapHelper(
const Handle<Quote>& spread,
const Period& swapTenor,
const Calendar& calendar,
42 Frequency longFixedFrequency, BusinessDayConvention longFixedConvention,
43 const DayCounter& longFixedDayCount,
const QuantLib::ext::shared_ptr<IborIndex>& longIndex,
45 Frequency shortFixedFrequency, BusinessDayConvention shortFixedConvention,
46 const DayCounter& shortFixedDayCount,
const QuantLib::ext::shared_ptr<IborIndex>& shortIndex,
47 bool longMinusShort =
true,
49 const Handle<YieldTermStructure>& discountingCurve = Handle<YieldTermStructure>());
58 QuantLib::ext::shared_ptr<VanillaSwap>
longSwap()
const;
59 QuantLib::ext::shared_ptr<VanillaSwap>
shortSwap()
const;
63 void accept(AcyclicVisitor&)
override;
RelinkableHandle< YieldTermStructure > discountRelinkableHandle_
void setTermStructure(YieldTermStructure *) override
RelinkableHandle< YieldTermStructure > termStructureHandle_
QuantLib::ext::shared_ptr< VanillaSwap > shortSwap() const
QuantLib::ext::shared_ptr< VanillaSwap > longSwap() const
BusinessDayConvention longFixedConvention_
QuantLib::ext::shared_ptr< VanillaSwap > longSwap_
Handle< YieldTermStructure > discountHandle_
DayCounter longFixedDayCount_
void accept(AcyclicVisitor &) override
QuantLib::ext::shared_ptr< VanillaSwap > shortSwap_
BusinessDayConvention shortFixedConvention_
void initializeDates() override
Frequency shortFixedFrequency_
Real impliedQuote() const override
QuantLib::ext::shared_ptr< IborIndex > shortIndex_
DayCounter shortFixedDayCount_
QuantLib::ext::shared_ptr< IborIndex > longIndex_
Frequency longFixedFrequency_