Skip to content

Commit a994243

Browse files
author
sebastien.bouvard
committed
QPR-13776 Handle Tlock
1 parent eae6d26 commit a994243

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

OREData/ored/portfolio/riskparticipationagreement.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ void RiskParticipationAgreement::buildWithTlockUnderlying(const QuantLib::ext::s
238238
// set currency and notional
239239

240240
npvCurrency_ = notionalCurrency_ = tlockData_.bondData().currency();
241-
notional_ = tlockData_.bondData().bondNotional();
241+
notional_ = envelope().additionalField("im_model") == "Schedule" ? tlockData_.bondData().bondNotional() * participationRate_ : tlockData_.bondData().bondNotional();
242242

243243
// checks
244244

@@ -275,7 +275,6 @@ void RiskParticipationAgreement::buildWithTlockUnderlying(const QuantLib::ext::s
275275
}
276276

277277
Date paymentDate = paymentCalendar.advance(terminationDate, paymentGap * Days);
278-
std::cout<<"notional="<<notional_<<std::endl;
279278
auto qleInstr = QuantLib::ext::make_shared<QuantExt::RiskParticipationAgreementTLock>(
280279
bond, notional_, payer, referenceRate, dayCounter, terminationDate, paymentDate, protectionFeeLegs,
281280
protectionPayer.front(), protectionCcys, participationRate_, protectionStart_, protectionEnd_, settlesAccrual_,

0 commit comments

Comments
 (0)