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

Multiple results from price or mc_price #19

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

Multiple results from price or mc_price #19

MarcusRainbow opened this issue Jun 30, 2018 · 0 comments

Comments

@MarcusRainbow
Copy link
Owner

At present, these methods just return Result<f64, qm:Error>, which means that a lot of the detail of pricing is lost. There are two kinds of things that could be returned:

  1. A recursive breakdown of how the price was calculated. For example, the price of a basket is the weighted sum of the components. If the weights and components were also returned, it would allow the user to show breakdown of the price and also the risks by component, without any further calculation.
  2. Pricer-dependent outputs. For example, a Monte-Carlo pricer could output a convergence graph. Again, this could be summed for risks, showing convergence of the risks as well. Pricers for dynamic indices could show the contribution from fees. (This can be important for recursive dynamic indices, where there may be rules for netting out fees other than at the top level.)

I think this means returning some kind of structure, containing top-level price, recursive price breakdown, and pricer-specific (and maybe model specific) outputs.

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