QuantLib: a free/open-source library for quantitative finance
fully annotated source code - version 1.34
|
Rate helper for bootstrapping over Fx Swap rates. More...
#include <ratehelpers.hpp>
Visitability | |
Handle< Quote > | spot_ |
Period | tenor_ |
Natural | fixingDays_ |
Calendar | cal_ |
BusinessDayConvention | conv_ |
bool | eom_ |
bool | isFxBaseCurrencyCollateralCurrency_ |
RelinkableHandle< YieldTermStructure > | termStructureHandle_ |
Handle< YieldTermStructure > | collHandle_ |
RelinkableHandle< YieldTermStructure > | collRelinkableHandle_ |
Calendar | tradingCalendar_ |
Calendar | jointCalendar_ |
void | accept (AcyclicVisitor &) override |
void | initializeDates () override |
Additional Inherited Members | |
![]() | |
typedef set_type::iterator | iterator |
![]() | |
![]() | |
Date | evaluationDate_ |
![]() | |
Handle< Quote > | quote_ |
TS * | 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.
fixingDays
to 0 and using a tenor of '1d'. The same tenor should be used for TN swaps, with fixingDays
set to 1. However, handling ON and TN swaps for cross rates without USD is not trivial and should be treated with caution. If today is a US holiday, ON trade is not possible. If tomorrow is a US Holiday, the ON trade will be at least two business days long in the other countries and the TN trade will not exist. In such cases, if this helper is used for curve construction, probably it is safer not to pass a trading calendar to the ON and TN helpers and provide fwdPoints that will yield proper level of discount factors. Definition at line 426 of file ratehelpers.hpp.
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() |
||
) |
|
overridevirtual |
Implements BootstrapHelper< TS >.
Definition at line 835 of file ratehelpers.cpp.
|
override |
Real spot | ( | ) | const |
Period tenor | ( | ) | const |
Definition at line 446 of file ratehelpers.hpp.
Natural fixingDays | ( | ) | const |
Definition at line 447 of file ratehelpers.hpp.
Calendar calendar | ( | ) | const |
Definition at line 448 of file ratehelpers.hpp.
BusinessDayConvention businessDayConvention | ( | ) | const |
Definition at line 449 of file ratehelpers.hpp.
bool endOfMonth | ( | ) | const |
Definition at line 450 of file ratehelpers.hpp.
bool isFxBaseCurrencyCollateralCurrency | ( | ) | const |
Definition at line 451 of file ratehelpers.hpp.
Calendar tradingCalendar | ( | ) | const |
Definition at line 453 of file ratehelpers.hpp.
Calendar adjustmentCalendar | ( | ) | const |
Definition at line 454 of file ratehelpers.hpp.
|
overridevirtual |
Reimplemented from BootstrapHelper< TS >.
Definition at line 867 of file ratehelpers.cpp.
|
overrideprivatevirtual |
Implements RelativeDateBootstrapHelper< TS >.
Definition at line 819 of file ratehelpers.cpp.
Definition at line 462 of file ratehelpers.hpp.
|
private |
Definition at line 463 of file ratehelpers.hpp.
|
private |
Definition at line 464 of file ratehelpers.hpp.
|
private |
Definition at line 465 of file ratehelpers.hpp.
|
private |
Definition at line 466 of file ratehelpers.hpp.
|
private |
Definition at line 467 of file ratehelpers.hpp.
|
private |
Definition at line 468 of file ratehelpers.hpp.
|
private |
Definition at line 470 of file ratehelpers.hpp.
|
private |
Definition at line 472 of file ratehelpers.hpp.
|
private |
Definition at line 473 of file ratehelpers.hpp.
|
private |
Definition at line 475 of file ratehelpers.hpp.
|
private |
Definition at line 476 of file ratehelpers.hpp.