23#ifndef quantext_cross_currency_price_term_structure_hpp
24#define quantext_cross_currency_price_term_structure_hpp
26#include <ql/termstructures/yieldtermstructure.hpp>
51 const QuantLib::Handle<PriceTermStructure>&
basePriceTs,
52 const QuantLib::Handle<QuantLib::Quote>&
fxSpot,
54 const QuantLib::Handle<QuantLib::YieldTermStructure>&
yts,
67 const QuantLib::Handle<PriceTermStructure>&
basePriceTs,
68 const QuantLib::Handle<QuantLib::Quote>&
fxSpot,
70 const QuantLib::Handle<QuantLib::YieldTermStructure>&
yts,
76 QuantLib::Date
maxDate()
const override;
77 QuantLib::Time
maxTime()
const override;
82 QuantLib::Time
minTime()
const override;
83 std::vector<QuantLib::Date>
pillarDates()
const override;
93 const QuantLib::Handle<QuantLib::Quote>&
fxSpot()
const {
return fxSpot_; }
99 const QuantLib::Handle<QuantLib::YieldTermStructure>&
yts()
const {
return yts_; }
104 QuantLib::Real
priceImpl(QuantLib::Time t)
const override;
113 QuantLib::Handle<QuantLib::YieldTermStructure>
yts_;
Cross currency price term structure.
const QuantLib::Handle< QuantLib::YieldTermStructure > & baseCurrencyYts() const
The yield term structure for the base currency.
QuantLib::Time minTime() const override
The minimum time for which the curve can return values.
CrossCurrencyPriceTermStructure(QuantLib::Natural settlementDays, const QuantLib::Handle< PriceTermStructure > &basePriceTs, const QuantLib::Handle< QuantLib::Quote > &fxSpot, const QuantLib::Handle< QuantLib::YieldTermStructure > &baseCurrencyYts, const QuantLib::Handle< QuantLib::YieldTermStructure > &yts, const QuantLib::Currency ¤cy)
const QuantLib::Handle< QuantLib::YieldTermStructure > & yts() const
The yield term structure for this price term structure's currency.
const QuantLib::Currency & currency() const override
The currency in which prices are expressed.
const QuantLib::Handle< QuantLib::Quote > & fxSpot() const
The FX spot rate, number of units of this price term structure's currency per unit of the base curren...
QuantLib::Currency currency_
const QuantLib::Handle< PriceTermStructure > & basePriceTs() const
The price term structure in base currency.
void registration()
Register with underlying market data.
QuantLib::Handle< QuantLib::YieldTermStructure > baseCurrencyYts_
QuantLib::Date maxDate() const override
std::vector< QuantLib::Date > pillarDates() const override
The pillar dates for the PriceTermStructure.
QuantLib::Handle< QuantLib::YieldTermStructure > yts_
QuantLib::Handle< PriceTermStructure > basePriceTs_
QuantLib::Time maxTime() const override
QuantLib::Real priceImpl(QuantLib::Time t) const override
Price calculation.
QuantLib::Handle< QuantLib::Quote > fxSpot_
Term structure of prices.