We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8dfd803 commit ae55ce8Copy full SHA for ae55ce8
ql/termstructures/volatility/swaption/swaptionvolcube.cpp
@@ -89,9 +89,11 @@ namespace QuantLib {
89
Rate SwaptionVolatilityCube::atmStrike(const Date& optionD,
90
const Period& swapTenor) const {
91
if (swapTenor > shortSwapIndexBase_->tenor()) {
92
- return swapIndexBase_->clone(swapTenor)->fixing(optionD);
+ return swapIndexBase_->clone(swapTenor)->fixing(
93
+ swapIndexBase_->fixingCalendar().adjust(optionD));
94
} else {
- return shortSwapIndexBase_->clone(swapTenor)->fixing(optionD);
95
+ return shortSwapIndexBase_->clone(swapTenor)->fixing(
96
97
}
98
99
0 commit comments