Skip to content

Commit 116cf70

Browse files
committed
Merge branch 'QPR-11739' into 'master'
QPR-11739 add underlying NPV to additional swaption engine results Closes QPR-11739 See merge request qs/quantlib!55
2 parents c235cda + 0c802c6 commit 116cf70

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ql/pricingengines/swaption/blackswaptionengine.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,7 @@ namespace QuantLib {
267267
}
268268
results_.additionalResults["strike"] = strike;
269269
results_.additionalResults["atmForward"] = atmForward;
270+
results_.additionalResults["underlyingNPV"] = swap ? swap->NPV() : swapOis->NPV();
270271

271272
Real annuity;
272273
if (arguments_.settlementType == Settlement::Physical ||

0 commit comments

Comments
 (0)