Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Negative Payment Lag #1621

Closed
pcaspers opened this issue Mar 24, 2023 · 4 comments · Fixed by #1818
Closed

Negative Payment Lag #1621

pcaspers opened this issue Mar 24, 2023 · 4 comments · Fixed by #1818

Comments

@pcaspers
Copy link
Contributor

We are seeing swaps (specifically AUD-GBP cross currency swaps) with negative payment lag -2bd. QuantLib currently allows for non-negative payment lags only.

@github-actions
Copy link
Contributor

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.

@Stoozy
Copy link
Contributor

Stoozy commented Oct 21, 2023

Hello, I'm new to this project and would like to take this on. Any pointers on what should be done?

@lballabio
Copy link
Owner

Thanks! If you search for "paymentlag" in the library, you'll find a number of places where such a parameter is passed around. Currently, its type is Natural, which is a typedef for unsigned i.e. positive. Replacing Natural with Integer should allow both positive and negative numbers.

@Stoozy
Copy link
Contributor

Stoozy commented Oct 24, 2023

Thanks for the reply. I opened a PR, #1818 .

@lballabio lballabio linked a pull request Oct 24, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants