QuantLib icon indicating copy to clipboard operation
QuantLib copied to clipboard

Issue with MakeOIS when settlement_day=0, tenor is in days and evaluationDate is EOM.

Open kozyarchuk opened this issue 10 months ago • 4 comments

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

kozyarchuk avatar Jan 31 '25 19:01 kozyarchuk

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.

boring-cyborg[bot] avatar Jan 31 '25 19:01 boring-cyborg[bot]

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.

github-actions[bot] avatar Apr 02 '25 02:04 github-actions[bot]

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.

github-actions[bot] avatar Jun 02 '25 02:06 github-actions[bot]

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.

lballabio avatar Jun 03 '25 08:06 lballabio

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.

github-actions[bot] avatar Aug 03 '25 02:08 github-actions[bot]

This issue was automatically closed because it has been stalled for two weeks with no further activity.

github-actions[bot] avatar Aug 17 '25 02:08 github-actions[bot]