Skip to content

Commit eae6d26

Browse files
author
sebastien.bouvard
committed
QPR-13776 Scale RPA notional by participation Rate when IM Schedule
1 parent c1ccc19 commit eae6d26

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

OREData/ored/portfolio/riskparticipationagreement.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,7 @@ void RiskParticipationAgreement::buildWithSwapUnderlying(const QuantLib::ext::sh
192192
engineFactory->configuration(MarketContext::pricing))
193193
->value());
194194
}
195+
notional_ = envelope().additionalField("im_model") == "Schedule" ? notional_ * participationRate_ : notional_;
195196
legs_ = underlyingLegs;
196197
legCurrencies_ = underlyingCcys;
197198
legPayers_ = underlyingPayer;
@@ -274,6 +275,7 @@ void RiskParticipationAgreement::buildWithTlockUnderlying(const QuantLib::ext::s
274275
}
275276

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

0 commit comments

Comments
 (0)