Skip to content

Commit

Permalink
public price sensitivity method (#2548)
Browse files Browse the repository at this point in the history
  • Loading branch information
yukiiwashita authored Jan 13, 2023
1 parent 00a554b commit 9a0b387
Showing 1 changed file with 12 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -420,8 +420,18 @@ public PointSensitivityBuilder dirtyPriceSensitivity(
return dirtyPriceSensitivity(bond, provider, settlementDate);
}

// calculate the dirty price sensitivity
PointSensitivityBuilder dirtyPriceSensitivity(
/**
* Calculates the dirty price sensitivity of the fixed coupon bond product under the specified settlement date.
* <p>
* The dirty price sensitivity of the security is the sensitivity of the present value to
* the underlying curves.
*
* @param bond the product
* @param provider the discounting provider
* @param settlementDate the settlement date
* @return the dirty price value curve sensitivity of the security
*/
public PointSensitivityBuilder dirtyPriceSensitivity(
ResolvedFixedCouponBond bond,
LegalEntityDiscountingProvider provider,
LocalDate settlementDate) {
Expand Down

0 comments on commit 9a0b387

Please sign in to comment.