Skip to content

Commit a5b59bc

Browse files
committed
QPR-13647 add notionals to deposit
1 parent ca938dd commit a5b59bc

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

OREData/ored/marketdata/yieldcurve.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2041,8 +2041,11 @@ void YieldCurve::addDeposits(const std::size_t index, const QuantLib::ext::share
20412041
QL_REQUIRE(!depositHelper->iborCoupon()->iborIndex()->forwardingTermStructure().empty(),
20422042
"YieldCurve::addDeposits(): ibor index has empty forwarding term structure");
20432043
return getCashflowReportData(
2044-
{QuantLib::Leg{depositHelper->iborCoupon()}}, {false}, {1.0}, currency_[index].code(),
2045-
{currency_[index].code()}, asofDate_,
2044+
{QuantLib::Leg{
2045+
depositHelper->iborCoupon(),
2046+
QuantLib::ext::make_shared<SimpleCashFlow>(1.0, depositHelper->iborCoupon()->date()),
2047+
QuantLib::ext::make_shared<SimpleCashFlow>(-1.0, asofDate_)}},
2048+
{false}, {1.0E6}, currency_[index].code(), {currency_[index].code()}, asofDate_,
20462049
{*depositHelper->iborCoupon()->iborIndex()->forwardingTermStructure()}, {1.0}, {}, {});
20472050
}}});
20482051
}

0 commit comments

Comments
 (0)