Calculate zero-coupon bond prices using short rate models (Vasicek, CIR, or Hull-White). These models describe the evolution of interest rates and are fundamental for pricing interest rate derivatives and fixed income securities. Use this endpoint to price bonds at multiple maturities simultaneously for yield curve construction or bond portfolio valuation.
API key for authentication. Get your key at https://finceptbackend.share.zrok.io/auth/register
Array of bond maturities in years (e.g., [0.25, 0.5, 1, 2, 5, 10] for 3M, 6M, 1Y, 2Y, 5Y, 10Y bonds)
Short rate model to use. Vasicek allows negative rates, CIR ensures positive rates, Hull-White fits an initial term structure
vasicek, cir, hull_white Mean reversion speed (annualized). Higher values mean faster reversion to long-term rate. Typical range: 0.01-0.5
Long-term mean rate (annualized). The rate towards which the short rate reverts. Typical range: 0.01-0.10 (1%-10%)
Volatility of the short rate (annualized). Controls the randomness of rate movements. Typical range: 0.005-0.02
Initial short rate (annualized). Current spot rate. Typical range: 0.00-0.10 (0%-10%)
Successfully calculated bond prices
true
{
"model": "vasicek",
"bonds": [
{ "maturity": 0.25, "bond_price": 99.25 },
{ "maturity": 0.5, "bond_price": 98.51 },
{ "maturity": 1, "bond_price": 97.05 },
{ "maturity": 2, "bond_price": 94.18 },
{ "maturity": 5, "bond_price": 86.07 },
{ "maturity": 10, "bond_price": 74.08 }
]
}