Skip to content

Commit 15cc26d

Browse files
author
Damien Barker
committed
QPR-12959 fi for scripted trade
1 parent db902bb commit 15cc26d

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

OREData/ored/portfolio/builders/scriptedtrade.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -684,7 +684,6 @@ void ScriptedTradeEngineBuilder::populateFixingsMap(
684684
// all other indices can be handled generically, notice for inf we include the scripting specific
685685
// suffixes #L, #F in the index name, this is handled in the scripted trade builder when populating the
686686
// required fixings
687-
688687
if (i.irIborFallback(iborFallbackConfig)) {
689688
// well, except ibor fallback indices that we handle here...
690689
Size nIbor = 0, nRfr = 0;

OREData/ored/scripting/utilities.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -504,7 +504,7 @@ QuantLib::ext::shared_ptr<FallbackIborIndex> IndexInfo::irIborFallback(const Qua
504504
auto on = QuantLib::ext::dynamic_pointer_cast<OvernightIndex>(parseIborIndex(data.rfrIndex));
505505
QL_REQUIRE(on, "IndexInfo::irIborFallback(): could not cast rfr index '"
506506
<< data.rfrIndex << "' for ibor fallback index '" << name_ << "' to an overnight index");
507-
return QuantLib::ext::make_shared<FallbackIborIndex>(irIbor_, on, data.spread, data.switchDate, false);
507+
return QuantLib::ext::make_shared<FallbackIborIndex>(irIbor_, on, data.spread, data.switchDate, true);
508508
}
509509
return nullptr;
510510
}
@@ -519,7 +519,7 @@ IndexInfo::irOvernightFallback(const QuantLib::ext::shared_ptr<IborFallbackConfi
519519
QL_REQUIRE(on, "IndexInfo::irIborFallback(): could not cast rfr index '"
520520
<< data.rfrIndex << "' for ibor fallback index '" << name_ << "' to an overnight index");
521521
if (auto original = QuantLib::ext::dynamic_pointer_cast<OvernightIndex>(irIbor_))
522-
return QuantLib::ext::make_shared<FallbackIborIndex>(original, on, data.spread, data.switchDate, false);
522+
return QuantLib::ext::make_shared<FallbackIborIndex>(original, on, data.spread, data.switchDate, true);
523523
else
524524
return nullptr;
525525
}

0 commit comments

Comments
 (0)