24#include <ql/handle.hpp>
25#include <ql/instrument.hpp>
26#include <ql/instruments/bond.hpp>
27#include <ql/interestrate.hpp>
28#include <ql/position.hpp>
29#include <ql/termstructures/yieldtermstructure.hpp>
30#include <ql/time/daycounter.hpp>
31#include <ql/types.hpp>
40 using engine = GenericEngine<BondTRS::arguments, BondTRS::results>;
45 const std::vector<Date>&
paymentDates,
const QuantLib::ext::shared_ptr<QuantExt::FxIndex>&
fxIndex =
nullptr,
47 const Currency& bondCurrency = Currency());
58 const QuantLib::ext::shared_ptr<QuantExt::FxIndex>&
fxIndex()
const {
return fxIndex_; }
70 QuantLib::ext::shared_ptr<QuantExt::BondIndex>
bondIndex_;
75 QuantLib::ext::shared_ptr<QuantExt::FxIndex>
fxIndex_;
87 QuantLib::ext::shared_ptr<QuantExt::BondIndex>
bondIndex;
88 QuantLib::ext::shared_ptr<QuantExt::FxIndex>
fxIndex;
bond index class representing historical and forward bond prices
bool payBondCashFlowsImmediately
QuantLib::ext::shared_ptr< QuantExt::BondIndex > bondIndex
std::vector< Date > valuationDates
std::vector< Leg > fundingLeg
QuantLib::ext::shared_ptr< QuantExt::FxIndex > fxIndex
std::vector< Date > paymentDates
void validate() const override
bool payBondCashFlowsImmediately_
const QuantLib::ext::shared_ptr< QuantExt::BondIndex > & bondIndex() const
void setupArguments(PricingEngine::arguments *) const override
QuantLib::ext::shared_ptr< QuantExt::FxIndex > fxIndex_
bool isExpired() const override
std::vector< Leg > fundingLeg_
const Leg & returnLeg() const
bool payBondCashFlowsImmediately() const
const std::vector< Date > & valuationDates() const
const std::vector< Leg > & fundingLeg() const
std::vector< Date > valuationDates_
const std::vector< Date > & paymentDates() const
bool payTotalReturnLeg() const
Currency fundingCurrency_
std::vector< Date > paymentDates_
const QuantLib::ext::shared_ptr< QuantExt::FxIndex > & fxIndex() const
QuantLib::ext::shared_ptr< QuantExt::BondIndex > bondIndex_
GenericEngine< BondTRS::arguments, BondTRS::results > engine
Real initialPrice() const
Real bondNotional() const