feat(instruments): add the knock-in and double-barrier call family - #13
Open
ZacKienzle2 wants to merge 1 commit into
Open
feat(instruments): add the knock-in and double-barrier call family#13ZacKienzle2 wants to merge 1 commit into
ZacKienzle2 wants to merge 1 commit into
Conversation
Add up-and-in, down-and-out, and down-and-in calls alongside a double-knock-out call settling only while the path stays inside a corridor. Each reuses the running maximum or minimum already carried by the path grid, and the knock-in variants complete the in-out parity with their knock-out twins. Tests pin that parity, the corridor breach behaviour, the unreachable-barrier and wide-corridor limits, and input validation.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Completes the barrier instrument family (roadmap Horizon 2, Instruments).
UpAndInCall,DownAndOutCall,DownAndInCall: single-barrier knock-in and knock-out calls reusing the running maximum or minimum already on the path grid.DoubleKnockOutCall: settles only while the path stays strictly inside a corridor.deephedginganddeephedging.instruments.Tests
Up and down in-out parity reconstructing the vanilla call, corridor breach on either side, the unreachable-barrier and wide-corridor limits equal to vanilla, and input validation.
Gates
ruff, ruff format, pyright (strict, 0 errors), fast suite green locally (188 passed).