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

Applying spreads to forward rates #2122

Open
mynameiswho opened this issue Dec 14, 2024 · 4 comments
Open

Applying spreads to forward rates #2122

mynameiswho opened this issue Dec 14, 2024 · 4 comments

Comments

@mynameiswho
Copy link

As discussed in the email chain, it would be useful in my view to be able to apply spreads to forward rates. I would like to be able to provide a set of data such as:

start_date
end_date
spread_bp

and apply those to curves, rather than being restricted to use spreads from spot as is currently the case

Copy link

boring-cyborg bot commented Dec 14, 2024

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.

@sophistis42
Copy link
Contributor

Are we talking about an implementation like "InterpolatedPiecewiseForwardSpreadedTermStructure"?

@sophistis42
Copy link
Contributor

Alternatively how about something like -->
ForwardSpreadedTermStructure(Handle<YieldTermStructure>, Handle<Quote> spread, const Date& refPeriodStart = Date(), const Date& refPeriodEnd = Date());

Where also we tweak: ForwardSpreadedTermStructure::forwardImpl(Time t) to conditionally add the spread if in range?

@mynameiswho
Copy link
Author

mynameiswho commented Jan 6, 2025

Apologies for my initial spec, I would need to specify time-dependent spreads on the forwards, furthermore I have realised that what I'm looking to do can be achieved using backwardflat interpolation so I think your suggestion of InterpolatedPiecewiseForwardSpreadedTermStructure sounds great

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants