Skip to content

Risky annuity for single name CDS and CDS index#2087

Merged
jodastephen merged 3 commits into
masterfrom
topic/cds-pricer-scope
Sep 30, 2019
Merged

Risky annuity for single name CDS and CDS index#2087
jodastephen merged 3 commits into
masterfrom
topic/cds-pricer-scope

Conversation

@yukiiwashita
Copy link
Copy Markdown
Contributor

  • Added public risky annuity method, which was internally calculated.
  • This is a prerequisite for default swaptions.

LocalDate referenceDate,
ReferenceData refData) {

ArgChecker.isTrue(cds.getProtectionEndDate().isAfter(ratesProvider.getValuationDate()), "CDS already expired");
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it not be better to return an empty sensitivity? In either case, this case should be in the Javadoc.

* @return the present value sensitivity
*/
public PointSensitivityBuilder presentValueSensitivity(
public PointSensitivities presentValueSensitivity(
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for confusion, but this would be an incompatible change, so we can't do it. If all the other methods on the class return a builder already then that is fine and the new method should too.

@jodastephen jodastephen merged commit 05e729e into master Sep 30, 2019
@delete-merged-branch delete-merged-branch Bot deleted the topic/cds-pricer-scope branch September 30, 2019 14:09
@jodastephen jodastephen added this to the v2.7 milestone Oct 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants