|
QuantLib: a free/open-source library for quantitative finance
Reference manual - version 1.40
|
Rate helper for bootstrapping over Fx Swap rates. More...
#include <ql/termstructures/yield/ratehelpers.hpp>
Public Member Functions | |
| FxSwapRateHelper (const Handle< Quote > &fwdPoint, Handle< Quote > spotFx, const Period &tenor, Natural fixingDays, Calendar calendar, BusinessDayConvention convention, bool endOfMonth, bool isFxBaseCurrencyCollateralCurrency, Handle< YieldTermStructure > collateralCurve, Calendar tradingCalendar=Calendar()) | |
| FxSwapRateHelper (const Handle< Quote > &fwdPoint, Handle< Quote > spotFx, const Date &startDate, const Date &endDate, bool isFxBaseCurrencyCollateralCurrency, Handle< YieldTermStructure > collateralCurve) | |
RateHelper interface | |
| Real | impliedQuote () const override |
| void | setTermStructure (YieldTermStructure *) override |
| sets the term structure to be used for pricing | |
FxSwapRateHelper inspectors | |
| Real | spot () const |
| Period | tenor () const |
| Natural | fixingDays () const |
| Calendar | calendar () const |
| BusinessDayConvention | businessDayConvention () const |
| bool | endOfMonth () const |
| bool | isFxBaseCurrencyCollateralCurrency () const |
| Calendar | tradingCalendar () const |
| Calendar | adjustmentCalendar () const |
| Public Member Functions inherited from RelativeDateBootstrapHelper< YieldTermStructure > | |
| RelativeDateBootstrapHelper (const std::variant< Spread, Handle< Quote > > "e, bool updateDates=true) | |
| void | update () override |
| Public Member Functions inherited from BootstrapHelper< YieldTermStructure > | |
| BootstrapHelper (const std::variant< Spread, Handle< Quote > > "e) | |
| const Handle< Quote > & | quote () const |
| Real | quoteError () const |
| virtual Date | earliestDate () const |
| earliest relevant date | |
| virtual Date | maturityDate () const |
| instrument's maturity date | |
| virtual Date | latestRelevantDate () const |
| latest relevant date | |
| virtual Date | pillarDate () const |
| pillar date | |
| virtual Date | latestDate () const |
| latest date | |
| Public Member Functions inherited from Observer | |
| Observer (const Observer &) | |
| Observer & | operator= (const Observer &) |
| std::pair< iterator, bool > | registerWith (const ext::shared_ptr< Observable > &) |
| void | registerWithObservables (const ext::shared_ptr< Observer > &) |
| Size | unregisterWith (const ext::shared_ptr< Observable > &) |
| void | unregisterWithAll () |
| virtual void | deepUpdate () |
| Public Member Functions inherited from Observable | |
| Observable (const Observable &) | |
| Observable & | operator= (const Observable &) |
| Observable (Observable &&)=delete | |
| Observable & | operator= (Observable &&)=delete |
| void | notifyObservers () |
Visitability | |
| void | accept (AcyclicVisitor &) override |
Additional Inherited Members | |
| Public Types inherited from Observer | |
| typedef set_type::iterator | iterator |
| Date | evaluationDate_ |
| bool | updateDates_ |
| Handle< Quote > | quote_ |
| YieldTermStructure * | termStructure_ |
| Date | earliestDate_ |
| Date | latestDate_ |
| Date | maturityDate_ |
| Date | latestRelevantDate_ |
| Date | pillarDate_ |
Rate helper for bootstrapping over Fx Swap rates.
The forward is given by fwdFx = spotFx + fwdPoint.
isFxBaseCurrencyCollateralCurrency indicates if the base currency of the FX currency pair is the one used as collateral.
calendar is usually the joint calendar of the two currencies in the pair.
tradingCalendar can be used when the cross pairs don't include the currency of the business center (usually USD; the corresponding calendar is UnitedStates). If given, it will be used for adjusting the earliest settlement date and for setting the latest date. Due to FX spot market conventions, it is not sufficient to pass a JointCalendar with UnitedStates included as calendar; with regard the earliest date, this calendar is only used in case the spot date of the two currencies is not a US business day.
|
overridevirtual |
Implements BootstrapHelper< YieldTermStructure >.
|
overridevirtual |
sets the term structure to be used for pricing
Reimplemented from BootstrapHelper< YieldTermStructure >.
|
overridevirtual |
Reimplemented from BootstrapHelper< YieldTermStructure >.