You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Q1: I'd say Smith-Wilson curves are composable, and I think they would currently just fall back to AbstractYield behaviour. But the current definition of +/- take place in Periodic(1) rate convention, and that's not very natural for Smith-Wilson, Continuous() would be more natural. Like it would if you add a discounting function and a survival probability function. So I'm really not sure what the best way to do +/- for SW is... Maybe it should be illegal to add two AbstractYields, and instead you have to do AbstractYield + AbstractSpread where the AbstractSpread defines which convention to do the addition in? (That's not a real suggestion, haven't thought it through).
Q2: I implicitly thought that the rate and interest arguments would be Periodic(frequency). That convention is implicit in cashflows. I tend to think this is the only natural choice (so we should just document). Would there be a meaningful quoting convention where this is not the case, like biannual payments quoted in annual compounding?
To test/extend API:
Q: Are the curves composable (is
+
defined), like in the quickstart in READMEA: Yes, e.g.:
Q: How are the
yields
in the quote instruments defined? Unsure if they are coninuous/periodic compounded.The text was updated successfully, but these errors were encountered: