Calculate Macaulay Duration
quantlib-solver
Calculate Macaulay Duration
Calculate the Macaulay duration of a bond - the weighted average time to receive all cash flows. Duration measures a bond’s sensitivity to interest rate changes and is expressed in years. Higher duration means greater price sensitivity to rate changes. Essential for immunization strategies, duration matching, and interest rate risk management. [Tier: STANDARD, Credits: 2]
POST
Calculate Macaulay Duration
Authorizations
API key for authentication. Get your key at https://api.fincept.in/auth/register
Body
application/json
Annual coupon rate as a decimal
Example:
0.06
Time to maturity in years
Example:
10
Yield to maturity as a decimal
Example:
0.05
Face value of the bond
Example:
100
Coupon payment frequency per year
Available options:
1, 2, 4, 12 Example:
2
