SABR in QuantLib (for CMS Pricing)

Pricing Constant Maturity Swaps correctly requires more than a flat volatility surface. In this post, we build a SABR swaption volatility cube in QuantLib from first principles, explaining how market smile quotes, ATM surfaces, and swap conventions fit together — and why getting this setup right is essential before pricing CMS products.