File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -83,14 +83,14 @@ void BondTRS::build(const QuantLib::ext::shared_ptr<EngineFactory>& engineFactor
8383
8484 QuantLib::ext::shared_ptr<BondIndex> bondIndex;
8585
86- auto bondType = getBondReferenceDatumType (bondData_.securityId (), engineFactoryOverride->referenceData ());
87-
8886 BondIndexBuilder bondIndexBuilder;
8987
9088 Real bondNotional = bondData_.bondNotional ();
9189
9290 try {
9391
92+ auto bondType = getBondReferenceDatumType (bondData_.securityId (), engineFactoryOverride->referenceData ());
93+
9494 if (bondType.empty () || bondType == BondReferenceDatum::TYPE) {
9595
9696 // vanilla bond underlying
@@ -123,6 +123,7 @@ void BondTRS::build(const QuantLib::ext::shared_ptr<EngineFactory>& engineFactor
123123 // try to fill some fields for trade matching purposes although the trade build itself failed already
124124 npvCurrency_ = fundingLegData_.currency ();
125125 notionalCurrency_ = bondData_.currency ();
126+ notional_ = 1.0 ;
126127 for (auto const & d : bondData_.coupons ()) {
127128 try {
128129 auto s = makeSchedule (d.schedule ());
You can’t perform that action at this time.
0 commit comments