Calculate the Option-Adjusted Spread - the constant spread over the risk-free curve that accounts for embedded options in a bond. OAS removes the value of embedded options (calls, puts, prepayment options) to isolate the pure credit spread. Calculated using Monte Carlo simulation or binomial trees to value the option component. Essential for MBS, callable bonds, and any security with embedded optionality. Provides a fair comparison between bonds with and without embedded options.
API key for authentication. Get your key at https://finceptbackend.share.zrok.io/auth/register
Current market price of the security
102.5
Array of cash flow arrays, one for each scenario
[[3, 3, 103], [3, 3, 3, 103], [3, 103]]Array of payment times in years (same for all scenarios)
[1, 2, 3, 4]Array of scenario probabilities (must sum to 1.0)
[0.4, 0.4, 0.2]Array of zero rates for the base discount curve
[0.03, 0.035, 0.04, 0.042]Array of times for the base discount curve
[1, 2, 3, 4]