We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d7015de commit fa5d9a5Copy full SHA for fa5d9a5
1 file changed
OREData/ored/marketdata/yieldcurve.cpp
@@ -948,8 +948,14 @@ void YieldCurve::buildDiscountCurve() {
948
}
949
950
951
+ // Some logging and checks
952
QL_REQUIRE(data.size() > 0, "No market data found for curve spec " << curveSpec_.name() << " with as of date "
953
<< io::iso_date(asofDate_));
954
+ if (!wildcard) {
955
+ QL_REQUIRE(data.size() == quotes.size(), "Found " << data.size() << " quotes, but "
956
+ << quotes.size()
957
+ << " quotes given in config " << curveConfig_->curveID());
958
+ }
959
960
if (data.begin()->first > asofDate_) {
961
DLOG("Insert discount curve point at time zero for " << curveSpec_.name());
0 commit comments