Skip to content

Enable extrapolation on SABR swaption vol cube#338

Open
mattmenefee wants to merge 1 commit intoOpenSourceRisk:masterfrom
mattmenefee:enable-sabr-extrapolation
Open

Enable extrapolation on SABR swaption vol cube#338
mattmenefee wants to merge 1 commit intoOpenSourceRisk:masterfrom
mattmenefee:enable-sabr-extrapolation

Conversation

@mattmenefee
Copy link
Copy Markdown

@mattmenefee mattmenefee commented Apr 9, 2026

Summary

  • Call enableExtrapolation() on the SABR-calibrated swaption vol cube after construction, matching the behavior already present on the Linear interpolation path
  • Prevents QuantLib from throwing when pricing instruments with tenors or strikes outside the interpolated grid

Test plan

  • Verify builds successfully
  • Confirm swaption pricing with out-of-grid tenors/strikes no longer throws

The SABR-calibrated swaption volatility cube was not marked as
extrapolation-enabled, causing QuantLib to throw when pricing
instruments with tenors or strikes outside the interpolated grid.

Call enableExtrapolation() on the cube immediately after SABR
calibration so that vol queries beyond the grid boundaries use
the calibrated model's natural extrapolation rather than failing.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant