Skip to content

Commit 71106d6

Browse files
mgronckijenkins
authored andcommitted
Merge branch 'QPR-13366' into 'master'
QPR-13366: included BD Conventions in advance Closes QPR-13366 See merge request qs/oreplus!2745
1 parent 004a885 commit 71106d6

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

OREData/ored/utilities/conventionsbasedfutureexpiry.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,8 @@ Date ConventionsBasedFutureExpiry::expiry(Day dayOfMonth, Month contractMonth, Y
206206
}
207207

208208
// Apply offset adjustments if necessary. A negative integer indicates that we move forward that number of days.
209-
expiry = convention_.expiryCalendar().advance(expiry, -convention_.offsetDays(), Days);
209+
expiry = convention_.expiryCalendar().advance(expiry, -convention_.offsetDays(), Days,
210+
convention_.businessDayConvention());
210211
}
211212

212213
// If we want the option contract expiry, do the extra work here.

0 commit comments

Comments
 (0)