QuantLib
QuantLib copied to clipboard
Issue with MakeOIS when settlement_day=0, tenor is in days and evaluationDate is EOM.
You can use the following snippet to reproduce.
tenor = ql.Period('336d') index = ql.Sofr()
ql.Settings.instance().evaluationDate = ql.Date(30, 1, 2025) print( ql.MakeOIS(tenor, index, 0.01, settlementDays=0).maturityDate()) -> January 2nd, 2026
ql.Settings.instance().evaluationDate = ql.Date(31, 1 , 2025) print( ql.MakeOIS(tenor, index, 0.01, settlementDays=0).maturityDate()) -> June 8th, 2026
Thanks for posting! It might take a while before we look at your issue, so don't worry if there seems to be no feedback. We'll get to it.
This issue was automatically marked as stale because it has been open 60 days with no activity. Remove stale label or comment, or this will be closed in two weeks.
This issue was automatically marked as stale because it has been open 60 days with no activity. Remove stale label or comment, or this will be closed in two weeks.
I'm not sure that passing a tenor as a number of business days is a meaningful case to support. Was this an attempt at specifying a custom maturity date? If so, you can use
ql.MakeOIS(ql.Period(), index, 0.01, effectiveDate=start, terminationDate=maturity, settlementDays=0)
which lets you specify the start and end dates explicitly.
This issue was automatically marked as stale because it has been open 60 days with no activity. Remove stale label or comment, or this will be closed in two weeks.
This issue was automatically closed because it has been stalled for two weeks with no further activity.