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

Quanto, Composite and Basket instruments #4

Open
MarcusRainbow opened this issue Jun 28, 2018 · 0 comments
Open

Quanto, Composite and Basket instruments #4

MarcusRainbow opened this issue Jun 28, 2018 · 0 comments

Comments

@MarcusRainbow
Copy link
Owner

Pretty much any instrument can be quantoed, and an instrument with a quanto underlier can be valued just using a convexity correction on the quanto, caused by the change of measure. Thus, a quanto can have a Priceable implementation. This is a decorator pattern.

A composite (fx rate times underlier) can be implemented as a Priceable in a trivial way (fx times underlier). Another decorator pattern.

A basket can be implemented as a Priceable as a weighted sum of its components. This is a composite pattern. (See the gang of four book for these patterns.)

I think these would make reasonably small self-contained projects for someone new to the library.

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

No branches or pull requests

1 participant