Calculate Key Rate Durations
quantlib-risk
Calculate Key Rate Durations
Measures sensitivity to changes in specific points (key rates) along the yield curve while holding other rates constant. More precise than overall duration for understanding where yield curve exposure lies. Essential for bullet vs barbell strategies and curve positioning trades. [Tier: PRO, Credits: 5]
POST
Calculate Key Rate Durations
Authorizations
API key for authentication. Get your key at https://api.fincept.in/auth/register
Body
application/json
Bond cashflows (coupon payments and principal)
Example:
[5, 5, 5, 105]Time points (in years) when cashflows occur
Example:
[1, 2, 3, 4]Current yield curve rates at each time point
Example:
[0.02, 0.025, 0.03, 0.035]Rate bump size for sensitivity calculation
Example:
0.0001
