TG Investments
and Research
TGIR QuantLib Tools Interest-rate derivatives, model diagnostics and pricing tools.
QuantLib Data Model

Actual object graph used by this workstation.

This page shows the live QuantLib structures built by the app, their dependencies, the constructor signatures used in code, and the enum values that shape date generation, calendars, schedules, and pricing engines. It is intentionally explicit so the educational view and the implementation stay aligned.

Back to dashboard Download debug CSV
Curve reference 2026-03-10

Repo copy: /var/www/html/tgir_quantlib_tools/debug/curve_debug.csv

Overview

Current build footprint

The cards below summarize the object families and outputs active in the current session state.

Curve helpers 22 1 deposit helper plus the workbook OIS strip
Priced instruments 4 swap + European swaption + Bermudan swaption + SPX cliquet
Pricing engines 4 discounting, Jamshidian, tree swaption, analytic cliquet
Bermudan diag helpers 4 4Y x 1Y
Cliquet periods 12 2027-03-10 maturity
Curve outputs 22 + 10959 zero-rate nodes and one-day forwards shown on the dashboard
Dependency Flow

Object creation sequence

This is the order in which the app builds market context, instruments, and pricing engines.

1 Evaluation context
Factory _market_context / build_sofr_curve
Depends on configured valuation date
Produces ql.Settings.instance().evaluationDate and ql.UnitedStates(Settlement)

Sets the pricing date once per request from the configured valuation date and uses a settlement calendar for curve and schedule dates.

2 Curve helpers
Factory build_sofr_curve
Depends on market.curve_quotes_pct
Produces 1 ql.DepositRateHelper + 7 ql.OISRateHelper

Builds the helper strip from the overnight input and the OIS tenors that anchor the SOFR curve.

3 Discount curve
Factory build_sofr_curve
Depends on helper strip, day count
Produces ql.PiecewiseLogCubicDiscount and ql.YieldTermStructureHandle

Bootstraps the term structure used for discounting, forward extraction, swap pricing, and the Bermudan calibration stack.

4 Underlying instruments
Factory _make_ois_swap
Depends on curve handle, schedules, trade terms
Produces ql.OvernightIndexedSwap for the live swap and the swaption underlyings

Uses one canonical overnight-indexed swap constructor for the live trade and for both forward-starting swaption underlyings.

5 European swaption stack
Factory build_european_hull_white_model / _create_european_swaption
Depends on forward swap, exercise date, ATM matrix vol, curve handle
Produces ql.SwaptionHelper, ql.HullWhite, ql.JamshidianSwaptionEngine, ql.Swaption

Calibrates Hull-White 1F to the selected ATM normal-vol pillar and prices the European swaption with Jamshidian's decomposition.

6 Bermudan swaption stack
Factory build_bermudan_short_rate_model / _create_bermudan_swaption
Depends on forward swap, exercise dates, diagonal swaption strip, curve handle
Produces ql.SwaptionHelper strip, ql.HullWhite or ql.G2, ql.TreeSwaptionEngine, ql.Swaption

Calibrates the selected short-rate model to the feasible diagonal ATM swaption strip and prices the Bermudan with a tree engine aligned to the fixed-final-maturity call schedule.

7 Calibration instruments
Factory reprice_sofr_calibration_swaps
Depends on curve and quoted OIS rates
Produces ql.MakeOIS repricing strip

Rebuilds quoted OIS instruments against the bootstrapped curve to confirm the helper calibration is near-par.

8 Equity cliquet stack
Factory _create_equity_cliquet / cliquet_analytics
Depends on curve handle, SPX spot, dividend yield, flat vol, reset schedule
Produces ql.BlackScholesMertonProcess, ql.CliquetOption, ql.AnalyticCliquetEngine

Builds a forward-start SPX cliquet strip on top of the SOFR discount curve and decomposes it into reset-by-reset forward-start option analytics.

State Schema

Application state that feeds QuantLib

The Flask session stores market inputs and trade terms. These values are normalized before QuantLib objects are created.

Session State: market
Field Type Current value Used by
curve_quotes_pct list[float] length 22 1D=3.66%, 1W=3.66%, 2W=3.67%, 3W=3.67%, 1M=3.67%, 2M=3.67%, 3M=3.67%, 6M=3.63%, 9M=3.58%, 1Y=3.54%, 2Y=3.41%, 3Y=3.38%, 4Y=3.40%, 5Y=3.44%, 6Y=3.49%, 7Y=3.55%, 8Y=3.60%, 10Y=3.71%, 12Y=3.81%, 15Y=3.93%, 20Y=4.03%, 30Y=4.05% build_sofr_curve
hw_mean_reversion float 3.00% build_european_hull_white_model and build_bermudan_short_rate_model -> fixed mean-reversion input during calibration
swaption_vol_matrix_bp 17x15 list[list[float]] matrix[5Y][5Y]=84.0 bp Hull-White/Jamshidian calibration target for European swaptions and diagonal calibration target for Bermudans
equity_spot / equity_dividend_yield_pct / equity_volatility_pct float triplet spot=5250.00, q=1.55%, vol=18.00% _create_equity_cliquet -> ql.BlackScholesMertonProcess
Session State: trades
Field Type Current value Used by
trades.swap dict direction=payer, notional=100000000, fixed_rate_pct=3.00, tenor_years=5, payment_frequency_months=12, reset_frequency_months=12 _create_live_swap -> ql.OvernightIndexedSwap
trades.european_swaption dict direction=payer, notional=100000000, strike_pct=3.00, expiry_years=1, swap_tenor_years=4, payment_frequency_months=12, reset_frequency_months=12 _create_european_swaption
trades.bermudan_swaption dict direction=payer, notional=100000000, strike_pct=3.00, first_exercise_years=1, final_maturity_years=5, payment_frequency_months=12, reset_frequency_months=12, model_name=hull_white_1f _create_bermudan_swaption
trades.equity_cliquet dict option_type=call, quantity=50.00, moneyness_pct=100.0, maturity_months=12, reset_frequency_months=1 _create_equity_cliquet
Live Market Structures

Quotes, curve nodes, forward strip, and vol matrix

These tables expose the current live inputs and the derived QuantLib curve outputs used on the dashboard.

SOFR Input Quotes
Tenor Quote (%)
1D 3.66%
1W 3.66%
2W 3.67%
3W 3.67%
1M 3.67%
2M 3.67%
3M 3.67%
6M 3.63%
9M 3.58%
1Y 3.54%
2Y 3.41%
3Y 3.38%
4Y 3.40%
5Y 3.44%
6Y 3.49%
7Y 3.55%
8Y 3.60%
10Y 3.71%
12Y 3.81%
15Y 3.93%
20Y 4.03%
30Y 4.05%
Curve Nodes From `ql.PiecewiseLogCubicDiscount`
Node Tenor Date Zero (%) DF
1 1D 2026-03-11 3.71% 0.999898
2 1W 2026-03-19 3.71% 0.999085
3 2W 2026-03-26 3.71% 0.998373
4 3W 2026-04-02 3.72% 0.997660
5 1M 2026-04-13 3.72% 0.996543
6 2M 2026-05-12 3.71% 0.993612
7 3M 2026-06-12 3.71% 0.990499
8 6M 2026-09-14 3.65% 0.981368
9 9M 2026-12-14 3.59% 0.972969
10 1Y 2027-03-12 3.53% 0.965132
11 2Y 2028-03-13 3.40% 0.933995
12 3Y 2029-03-12 3.37% 0.903719
13 4Y 2030-03-12 3.39% 0.873081
14 5Y 2031-03-12 3.43% 0.842112
15 6Y 2032-03-12 3.49% 0.810857
16 7Y 2033-03-14 3.55% 0.779616
17 8Y 2034-03-13 3.61% 0.749042
18 10Y 2036-03-12 3.72% 0.688900
19 12Y 2038-03-12 3.84% 0.630761
20 15Y 2041-03-12 3.98% 0.550106
21 20Y 2046-03-12 4.10% 0.439935
22 30Y 2056-03-13 4.09% 0.292561
Daily One-Day Forward SOFR Checkpoints
Point Date Forward (%)
Start 2026-03-10 3.66%
3M 2026-06-10 3.63%
1Y 2027-03-10 3.28%
10Y 2036-03-10 4.25%
Bermudan Diagonal Calibration Strip
Pillar Exercise Maturity Market vol (bp) Model value Error
1Y x 4Y 2027-03-11 2031-03-12 71.9 0.010730 0.0376062
2Y x 3Y 2028-03-10 2031-03-12 74.5 0.011188 0.00154458
3Y x 2Y 2029-03-09 2031-03-12 75.2 0.008988 0.00715909
4Y x 1Y 2030-03-11 2031-03-12 77.5 0.005100 0.0346589
Expiry \ Tenor 1Y 2Y 3Y 4Y 5Y 6Y 7Y 8Y 9Y 10Y 12Y 15Y 20Y 25Y 30Y
1M 39.5 53.4 62.4 68.2 73.2 74.2 75.0 75.3 75.7 76.6 76.8 76.9 77.3 77.4 77.5
3M 40.0 53.7 62.3 68.4 72.0 73.4 74.6 75.2 75.8 76.4 76.4 76.3 76.3 76.2 76.1
6M 44.1 56.0 63.8 69.0 72.7 74.3 75.3 76.0 76.8 77.3 77.2 77.0 76.5 76.2 76.0
9M 48.1 58.4 65.6 70.2 74.1 75.5 76.6 77.2 77.9 78.4 78.2 77.8 76.7 76.2 75.7
1Y 52.4 61.6 67.7 71.9 75.3 76.5 77.5 78.1 78.7 79.1 78.8 78.2 77.0 76.5 75.9
2Y 66.4 71.7 74.5 77.5 79.9 80.5 81.0 81.2 81.4 81.6 80.9 79.7 77.7 77.0 76.3
4Y 77.5 78.8 80.2 81.3 82.5 82.7 82.9 82.8 82.9 82.9 81.8 80.2 77.4 76.7 75.8
5Y 82.4 82.6 83.1 83.6 84.0 83.9 83.8 83.5 83.3 83.1 81.5 79.0 76.3 75.3 74.5
6Y 84.5 84.5 84.7 85.0 85.1 84.7 84.3 83.8 83.4 83.0 81.0 78.2 75.1 74.0 73.2
7Y 84.2 84.2 84.3 84.5 84.5 84.0 83.4 82.8 82.2 81.7 79.7 76.6 73.5 72.5 71.7
8Y 83.7 83.8 83.8 83.9 83.9 83.2 82.4 81.7 81.0 80.3 78.2 75.1 72.0 71.0 70.1
9Y 82.8 82.7 82.6 82.6 82.5 81.8 81.0 80.3 79.6 78.9 76.8 73.6 70.5 69.5 68.6
10Y 81.8 81.5 81.4 81.3 81.1 80.4 79.7 78.9 78.2 77.4 75.3 72.0 69.0 67.9 67.0
12Y 80.8 80.2 80.0 79.8 79.7 78.9 78.2 77.5 76.7 76.0 73.8 70.5 67.4 66.3 65.5
15Y 76.9 76.1 76.0 75.8 75.6 75.0 74.5 73.9 73.2 72.5 70.4 67.2 64.3 63.1 62.3
20Y 71.1 69.9 69.7 69.7 69.7 69.2 68.7 68.3 67.8 67.2 65.2 62.3 59.5 58.3 57.5
25Y 62.5 61.6 61.3 61.4 61.5 61.2 61.0 60.8 60.5 60.1 58.5 56.1 54.2 53.1 52.4
QuantLib Components

Constructor signatures and actual values

The cards below show the full structure used in code, not only the small subset of economic fields exposed in the UI.

Global pricing context

ql.Settings.instance().evaluationDate

Pins every curve build and pricing engine to the same valuation date.

ql.Settings.instance().evaluationDate = today
Factory _market_context
state.valuation_date_iso
Field Current value Notes
today 2026-03-10 Configured QuantLib evaluation date
Curve helper

ql.DepositRateHelper

Anchors the overnight end of the SOFR curve.

ql.DepositRateHelper(rate, tenor, fixingDays, calendar, convention, endOfMonth, dayCounter)
Factory build_sofr_curve
market.curve_quotes_pct[0] ql.QuoteHandle ql.SimpleQuote ql.UnitedStates
Field Current value Notes
rate 0.036617 Overnight quote converted from percent to decimal
tenor ql.Period(1, ql.Days) One-day deposit anchor
fixingDays 0 No extra fixing lag on the overnight helper
calendar ql.UnitedStates(ql.UnitedStates.Settlement) Settlement calendar
convention ql.Following Deposit helper roll convention
endOfMonth False No end-of-month rule
dayCounter ql.Actual360() SOFR-style money-market accrual basis
Enum Value Notes
ql.UnitedStates.Settlement 0 Calendar market
ql.Following 0 Business-day convention
ql.Days 0 Time unit
Curve helper

ql.OISRateHelper

Supplies the term OIS pillars used to bootstrap the rest of the curve.

ql.OISRateHelper(settlementDays, tenor, fixedRate, overnightIndex)
Factory build_sofr_curve
market.curve_quotes_pct[1:] ql.Sofr()
Field Current value Notes
settlementDays 2 OIS helpers start from spot
overnightIndex ql.Sofr() SOFR index without an attached handle during bootstrap
Tenor Quote (%) Helper call
1W 3.66 ql.OISRateHelper(2, ql.Period('1W'), quote, ql.Sofr())
2W 3.67 ql.OISRateHelper(2, ql.Period('2W'), quote, ql.Sofr())
3W 3.67 ql.OISRateHelper(2, ql.Period('3W'), quote, ql.Sofr())
1M 3.67 ql.OISRateHelper(2, ql.Period('1M'), quote, ql.Sofr())
2M 3.67 ql.OISRateHelper(2, ql.Period('2M'), quote, ql.Sofr())
3M 3.67 ql.OISRateHelper(2, ql.Period('3M'), quote, ql.Sofr())
6M 3.63 ql.OISRateHelper(2, ql.Period('6M'), quote, ql.Sofr())
9M 3.58 ql.OISRateHelper(2, ql.Period('9M'), quote, ql.Sofr())
1Y 3.54 ql.OISRateHelper(2, ql.Period('1Y'), quote, ql.Sofr())
2Y 3.41 ql.OISRateHelper(2, ql.Period('2Y'), quote, ql.Sofr())
3Y 3.38 ql.OISRateHelper(2, ql.Period('3Y'), quote, ql.Sofr())
4Y 3.40 ql.OISRateHelper(2, ql.Period('4Y'), quote, ql.Sofr())
5Y 3.44 ql.OISRateHelper(2, ql.Period('5Y'), quote, ql.Sofr())
6Y 3.49 ql.OISRateHelper(2, ql.Period('6Y'), quote, ql.Sofr())
7Y 3.55 ql.OISRateHelper(2, ql.Period('7Y'), quote, ql.Sofr())
8Y 3.60 ql.OISRateHelper(2, ql.Period('8Y'), quote, ql.Sofr())
10Y 3.71 ql.OISRateHelper(2, ql.Period('10Y'), quote, ql.Sofr())
12Y 3.81 ql.OISRateHelper(2, ql.Period('12Y'), quote, ql.Sofr())
15Y 3.93 ql.OISRateHelper(2, ql.Period('15Y'), quote, ql.Sofr())
20Y 4.03 ql.OISRateHelper(2, ql.Period('20Y'), quote, ql.Sofr())
30Y 4.05 ql.OISRateHelper(2, ql.Period('30Y'), quote, ql.Sofr())
Enum Value Notes
ql.Weeks 1 Short-dated OIS tenor unit
ql.Months 2 Monthly OIS tenor unit
ql.Years 3 Long-dated OIS tenor unit
Term structure

ql.PiecewiseLogCubicDiscount

Bootstraps the discount curve used by every instrument and chart on the page.

ql.PiecewiseLogCubicDiscount(referenceDate, helpers, dayCounter)
Factory build_sofr_curve
deposit helper OIS helper strip ql.Actual360()
Field Current value Notes
referenceDate 2026-03-10 Same as evaluation date
helpers 22 helpers 1 deposit helper plus the workbook OIS strip
dayCounter ql.Actual360() Interpolation metric
reportedZeroRateConvention Continuous / Actual365Fixed Displayed zero rates satisfy df(x) = exp(-z * x / 365) using actual calendar days x
handle ql.YieldTermStructureHandle(curve) Shared downstream by swaps, swaptions, and model
Node Tenor Date Zero rate (% cc Act/365) Discount factor
1 1D 2026-03-11 3.7124 0.999898
2 1W 2026-03-19 3.7136 0.999085
3 2W 2026-03-26 3.7142 0.998373
4 3W 2026-04-02 3.7175 0.997660
5 1M 2026-04-13 3.7179 0.996543
6 2M 2026-05-12 3.7130 0.993612
7 3M 2026-06-12 3.7067 0.990499
8 6M 2026-09-14 3.6515 0.981368
9 9M 2026-12-14 3.5850 0.972969
10 1Y 2027-03-12 3.5297 0.965132
11 2Y 2028-03-13 3.3956 0.933995
12 3Y 2029-03-12 3.3653 0.903719
13 4Y 2030-03-12 3.3862 0.873081
14 5Y 2031-03-12 3.4312 0.842112
15 6Y 2032-03-12 3.4880 0.810857
16 7Y 2033-03-14 3.5481 0.779616
17 8Y 2034-03-13 3.6058 0.749042
18 10Y 2036-03-12 3.7215 0.688900
19 12Y 2038-03-12 3.8359 0.630761
20 15Y 2041-03-12 3.9799 0.550106
21 20Y 2046-03-12 4.1017 0.439935
22 30Y 2056-03-13 4.0928 0.292561
Cashflow schedule

ql.Schedule

Defines the fixed and floating leg coupon dates for the live swap and both forward underlyings.

ql.Schedule(effectiveDate, terminationDate, tenor, calendar, convention, terminationDateConvention, rule, endOfMonth)
Factory _make_ois_swap
calendar trade start date trade maturity date
Field Current value Notes
fixedTenor ql.Period(12, ql.Months) Annual fixed-leg payment schedule for the live swap
floatingTenor ql.Period(12, ql.Months) Annual overnight coupon periods for the live swap
calendar ql.UnitedStates(ql.UnitedStates.Settlement) Shared calendar for all schedules
convention ql.ModifiedFollowing Roll convention for start and coupon dates
terminationDateConvention ql.ModifiedFollowing Termination-date convention
rule ql.DateGeneration.Forward Schedule generation rule
endOfMonth False No end-of-month adjustment
Instance Start Maturity Comments
Live swap 2026-03-12 2031-03-12 fixed ql.Period(12, ql.Months) / float ql.Period(12, ql.Months), ql.ModifiedFollowing, ql.DateGeneration.Forward
European underlying swap 2027-03-12 2031-03-12 fixed ql.Period(12, ql.Months) / float ql.Period(12, ql.Months), ql.ModifiedFollowing, ql.DateGeneration.Forward
Bermudan underlying swap 2027-03-12 2031-03-12 fixed ql.Period(12, ql.Months) / float ql.Period(12, ql.Months), ql.ModifiedFollowing, ql.DateGeneration.Forward
Enum Value Notes
ql.ModifiedFollowing 1 Business-day convention
ql.DateGeneration.Forward 1 Schedule rule
Instrument

ql.OvernightIndexedSwap

Provides one full overnight-indexed swap constructor for the live trade and for both swaption underlyings.

ql.OvernightIndexedSwap(type, fixedNominals, fixedSchedule, fixedRate, fixedDayCount, floatingNominals, floatingSchedule, overnightIndex, spread, ..., averagingMethod)
Factory _make_ois_swap
ql.Schedule ql.Sofr(curveHandle) trade terms ql.DiscountingSwapEngine
Field Current value Notes
fixedDayCount ql.Actual360() Fixed-leg accrual convention from the workbook trade
floatingIndex ql.Sofr(curveHandle) Overnight floating leg projected from the same curve
spread 0.0 No floating spread in this sandbox
averagingMethod ql.RateAveraging.Compound Daily compounded overnight accrual within each coupon period
Instance Type Nominal Rate input Start Maturity
Live swap ql.OvernightIndexedSwap.Payer 100000000 fixed_rate_pct=3.00% 2026-03-12 2031-03-12
European underlying ql.OvernightIndexedSwap.Payer 100000000 strike_pct=3.00% 2027-03-12 2031-03-12
Bermudan underlying ql.OvernightIndexedSwap.Payer 100000000 strike_pct=3.00% 2027-03-12 2031-03-12
Enum Value Notes
ql.OvernightIndexedSwap.Payer 1 Pay fixed / receive SOFR
ql.OvernightIndexedSwap.Receiver -1 Receive fixed / pay SOFR
Pricing engine

ql.DiscountingSwapEngine

Discounts the live swap and the calibration OIS instruments with the bootstrapped curve handle.

ql.DiscountingSwapEngine(discountCurve)
Factory _make_ois_swap
ql.YieldTermStructureHandle(curve)
Field Current value Notes
discountCurve curveHandle Shared across swap pricing and calibration
European option stack

ql.HullWhite + ql.JamshidianSwaptionEngine

Calibrates Hull-White 1F to the selected ATM normal-vol pillar and prices the European swaption with Jamshidian's decomposition.

ql.HullWhite(termStructure, a, sigma), ql.JamshidianSwaptionEngine(model), ql.EuropeanExercise(date), ql.Swaption(underlying, exercise)
Factory build_european_hull_white_model / _create_european_swaption
forward-starting ql.OvernightIndexedSwap selected matrix vol curve handle mean reversion
Field Current value Notes
exerciseDate 2027-03-12 Spot plus option expiry
normalVol 71.9 bp Selected from market.swaption_vol_matrix_bp
meanReversion a 0.030000 Fixed Hull-White mean reversion input
sigma 0.007443 Calibrated Hull-White volatility from the selected pillar
Equity market model

ql.FlatForward + ql.BlackConstantVol + ql.BlackScholesMertonProcess

Combines the shared SOFR discount curve with flat SPX dividend and volatility assumptions for the cliquet trade.

ql.FlatForward(today, q, dayCounter), ql.BlackConstantVol(today, calendar, vol, dayCounter), ql.BlackScholesMertonProcess(spot, dividendCurve, riskFreeCurve, volSurface)
Factory _create_equity_cliquet
market.equity_spot market.equity_dividend_yield_pct market.equity_volatility_pct curve handle
Field Current value Notes
spot 5250.00 Current S&P 500 index level
dividendYield 0.015500 Flat continuous dividend yield in decimal form
riskFreeCurve ql.YieldTermStructureHandle(curve) Shared SOFR curve reused as the discount curve for the equity trade
flatVol 0.180000 Flat Black volatility in decimal form
calendar ql.UnitedStates(ql.UnitedStates.NYSE) Business-day adjustment for the SPX reset schedule
Enum Value Notes
ql.UnitedStates.NYSE 1 Equity reset calendar
Equity option stack

ql.CliquetOption + ql.AnalyticCliquetEngine

Prices the SPX cliquet as a strip of forward-start percentage-strike options and exposes analytic Greeks.

ql.CliquetOption(ql.PercentageStrikePayoff(type, moneyness), ql.EuropeanExercise(maturity), resetDates), ql.AnalyticCliquetEngine(process)
Factory _create_equity_cliquet
ql.BlackScholesMertonProcess reset schedule trade quantity moneyness
Field Current value Notes
optionType ql.Option.Call Call or put strip across each reset period
moneyness 1.0000 Percentage strike applied at each reset date
quantity 50.00 Number of SPX units multiplied by the unit cliquet price
maturity 2027-03-10 Final maturity date of the cliquet strip
analyticGreeks delta=12.8170, gamma=0.0000, vega=359066.98 Trade-level Greeks reported by QuantLib's analytic engine
Period Start End Year frac Unit NPV Trade NPV
1 2026-03-10 2026-04-10 0.0849 114.5019 5725.09
2 2026-04-10 2026-05-11 0.0849 114.3285 5716.42
3 2026-05-11 2026-06-10 0.0822 112.2236 5611.18
4 2026-06-10 2026-07-10 0.0822 111.9923 5599.62
5 2026-07-10 2026-08-10 0.0849 113.6527 5682.63
6 2026-08-10 2026-09-10 0.0849 113.3848 5669.24
7 2026-09-10 2026-10-12 0.0877 114.9897 5749.48
8 2026-10-12 2026-11-10 0.0795 109.0391 5451.95
9 2026-11-10 2026-12-10 0.0822 110.7491 5537.45
10 2026-12-10 2027-01-11 0.0877 114.2850 5714.25
11 2027-01-11 2027-02-10 0.0822 110.3341 5516.71
12 2027-02-10 2027-03-10 0.0767 106.3017 5315.09
Enum Value Notes
ql.Option.Call 1 Call cliquet leg
ql.Option.Put -1 Put cliquet leg
Calibration helper strip

ql.SwaptionHelper

Builds the diagonal ATM swaption strip used to calibrate the Bermudan short-rate model against the fixed-final-maturity call schedule.

ql.SwaptionHelper(maturity, length, volatility, index, fixedLegTenor, fixedLegDayCounter, floatingLegDayCounter, termStructure, errorType, strike, nominal, type, shift, settlementDays, averagingMethod)
Factory build_bermudan_short_rate_model
diagonal market.swaption_vol_matrix_bp ql.Sofr(curveHandle) curve handle
Field Current value Notes
index ql.Sofr(curveHandle) Overnight index on the bootstrapped curve
fixedLegTenor ql.Period('1Y') Annual fixed leg used by the helper swap
fixedLegDayCounter ql.Actual360() Fixed-leg basis aligned to the workbook trade
floatingLegDayCounter ql.Actual360() SOFR floating-leg basis
volatilityType ql.Normal Helpers calibrate to ATM normal vols from the matrix
errorType ql.BlackCalibrationHelper.RelativePriceError Calibration objective used by QuantLib
Pillar Exercise Maturity Market vol (bp) Model value Error
1Y x 4Y 2027-03-11 2031-03-12 71.9 0.010730 0.0376062
2Y x 3Y 2028-03-10 2031-03-12 74.5 0.011188 0.00154458
3Y x 2Y 2029-03-09 2031-03-12 75.2 0.008988 0.00715909
4Y x 1Y 2030-03-11 2031-03-12 77.5 0.005100 0.0346589
Enum Value Notes
ql.Normal 1 Normal-vol swaption helpers
ql.RateAveraging.Compound 1 SOFR compounding convention
Callable calibration model

ql.HullWhite or ql.G2 + ql.TreeSwaptionEngine

Calibrates the selected Bermudan short-rate model to the feasible diagonal ATM strip and prices the callable swaption with a lattice engine.

ql.HullWhite(termStructure, a, sigma) or ql.G2(termStructure, a, sigma, b, eta, rho), ql.TreeSwaptionEngine(model, timeSteps)
Factory build_bermudan_short_rate_model
curve handle ql.SwaptionHelper strip mean reversion selected Bermudan model
Field Current value Notes
selectedModel Hull-White 1F Current Bermudan pricing model selected in the trade editor
meanReversion 0.030000 Shared mean-reversion input held fixed during calibration
curveMaxDate 2056-03-13 Upper horizon available from the bootstrapped SOFR curve
Parameter Value Fixed Notes
a 0.030000 Yes Hull-White mean reversion input
sigma 0.007723 No Calibrated Hull-White volatility
Callable option stack

ql.BermudanExercise + ql.Swaption

Defines the Bermudan exercise schedule on top of the forward-starting swap; pricing is delegated to the calibrated tree engine.

ql.BermudanExercise(dates), ql.Swaption(underlying, exercise)
Factory _create_bermudan_swaption
forward-starting ql.OvernightIndexedSwap exercise-date list ql.TreeSwaptionEngine
Field Current value Notes
exerciseDates 2027-03-11, 2028-03-10, 2029-03-09, 2030-03-11 Annual exercise dates until maturity
exerciseCount 4 Actual exercise opportunities in the current trade
firstExercise 2027-03-12 Spot plus non-call period
maturity 2031-03-12 Fixed final maturity of the callable structure
Calibration instrument

ql.MakeOIS

Rebuilds quoted OIS pillars to confirm the curve reprices the input strip.

ql.MakeOIS(swapTenor, overnightIndex, fixedRate, forwardStart)
Factory reprice_sofr_calibration_swaps
curve handle quoted OIS rates
Field Current value Notes
overnightIndex ql.Sofr(curveHandle) Calibration index attached to the bootstrapped curve
forwardStart ql.Period(0, ql.Days) Start immediately from spot conventions
Tenor Quote (%) Calibration object
1W 3.66 ql.MakeOIS(ql.Period('1W'), overnightIndex, 0.036643, ql.Period(0, ql.Days))
2W 3.67 ql.MakeOIS(ql.Period('2W'), overnightIndex, 0.036662, ql.Period(0, ql.Days))
3W 3.67 ql.MakeOIS(ql.Period('3W'), overnightIndex, 0.036710, ql.Period(0, ql.Days))
1M 3.67 ql.MakeOIS(ql.Period('1M'), overnightIndex, 0.036733, ql.Period(0, ql.Days))
2M 3.67 ql.MakeOIS(ql.Period('2M'), overnightIndex, 0.036735, ql.Period(0, ql.Days))
3M 3.67 ql.MakeOIS(ql.Period('3M'), overnightIndex, 0.036729, ql.Period(0, ql.Days))
6M 3.63 ql.MakeOIS(ql.Period('6M'), overnightIndex, 0.036345, ql.Period(0, ql.Days))
9M 3.58 ql.MakeOIS(ql.Period('9M'), overnightIndex, 0.035835, ql.Period(0, ql.Days))
1Y 3.54 ql.MakeOIS(ql.Period('1Y'), overnightIndex, 0.035425, ql.Period(0, ql.Days))
2Y 3.41 ql.MakeOIS(ql.Period('2Y'), overnightIndex, 0.034082, ql.Period(0, ql.Days))
3Y 3.38 ql.MakeOIS(ql.Period('3Y'), overnightIndex, 0.033777, ql.Period(0, ql.Days))
4Y 3.40 ql.MakeOIS(ql.Period('4Y'), overnightIndex, 0.033975, ql.Period(0, ql.Days))
5Y 3.44 ql.MakeOIS(ql.Period('5Y'), overnightIndex, 0.034403, ql.Period(0, ql.Days))
6Y 3.49 ql.MakeOIS(ql.Period('6Y'), overnightIndex, 0.034938, ql.Period(0, ql.Days))
7Y 3.55 ql.MakeOIS(ql.Period('7Y'), overnightIndex, 0.035498, ql.Period(0, ql.Days))
8Y 3.60 ql.MakeOIS(ql.Period('8Y'), overnightIndex, 0.036028, ql.Period(0, ql.Days))
10Y 3.71 ql.MakeOIS(ql.Period('10Y'), overnightIndex, 0.037068, ql.Period(0, ql.Days))
12Y 3.81 ql.MakeOIS(ql.Period('12Y'), overnightIndex, 0.038063, ql.Period(0, ql.Days))
15Y 3.93 ql.MakeOIS(ql.Period('15Y'), overnightIndex, 0.039275, ql.Period(0, ql.Days))
20Y 4.03 ql.MakeOIS(ql.Period('20Y'), overnightIndex, 0.040300, ql.Period(0, ql.Days))
30Y 4.05 ql.MakeOIS(ql.Period('30Y'), overnightIndex, 0.040475, ql.Period(0, ql.Days))
Enum Value Notes
ql.Days 0 Time unit for forwardStart
Research

Swaption and cliquet papers behind the workstation

This section lists the research papers most relevant to the pricing methods in the app, with a separate emphasis on papers explicitly tied to QuantLib's swaption implementation.

Papers

QuantLib-Linked Swaption References

These are the papers and notes most directly tied to the QuantLib swaption machinery used or referenced by this repository. The Jamshidian engine docs explicitly point to Caspers' note on start-delay handling, while the short-rate calibration workflow is closely aligned with Caspers' QuantLib implementation papers on Gaussian and Markov-functional models.

Paper Authors Year Relevance
Jamshidian Swaption Formula Fine Tuned Peter Caspers 2013 Explicitly referenced by QuantLib's Jamshidian swaption engine for start-delay treatment.
One Factor Gaussian Short Rate Model Implementation Peter Caspers 2013 Directly relevant to the repo's one-factor short-rate swaption calibration workflow in QuantLib.
Markov Functional One Factor Interest Rate Model Implementation in QuantLib Peter Caspers 2013 QuantLib-focused paper for the Gaussian and Markov-functional framework used by the broader swaption engine family.
Papers

Foundational European And Bermudan Swaption Papers

These are the papers most relevant to the pricing methods surfaced in the workstation: one-factor decomposition for European swaptions, and dynamic exercise methods for Bermudan swaptions.

Paper Authors Year Relevance
An Exact Bond Option Formula Farshid Jamshidian 1989 Foundational decomposition result underlying Jamshidian-style European swaption valuation in one-factor affine short-rate models.
A Simple Approach to the Pricing of Bermudan Swaptions in the Multi-Factor LIBOR Market Model Leif B. G. Andersen 1999 Classic early-exercise Monte Carlo boundary method for Bermudan swaptions under a multifactor LIBOR market model.
Throwing Away a Billion Dollars: The Cost of Suboptimal Exercise Strategies in the Swaptions Market Francis A. Longstaff, Pedro Santa-Clara, Eduardo S. Schwartz 2001 Seminal paper on the economic importance of correct Bermudan swaption exercise policy.
Papers

Equity Cliquet Papers

These ten references cover pricing, hedging, approximation, stochastic volatility, Levy and jump models, and retail-structured variants of equity cliquet-style products.

Paper Authors Year Relevance
Numerical Methods and Volatility Models for Valuing Cliquet Options Heather A. Windcliff, Peter A. Forsyth, and Kenneth R. Vetzal 2006 Benchmark numerical methods paper for cliquet valuation under alternative volatility models.
Locally-Capped Investment Products and the Retail Investor Carole Bernard, Phelim P. Boyle, and William Gornall 2011 Direct study of locally capped cliquet-style retail structures.
Pricing and Hedging of Cliquet Options and Locally-Capped Contracts Carole Bernard and Wei Li 2013 Core reference for integral representations and hedging of capped local-return structures.
Numerical Experiments on Hedging Cliquet Options Fiodar Kilin, Morten Nalholm, and Uwe Wystup 2014 Peer-reviewed hedging study focused specifically on cliquet options.
Efficient Valuation of Equity-Indexed Annuities Under Levy Processes Using Fourier-Cosine Series Geng Deng, Tim Dulaney, Craig McCann, and Mike Yan 2017 Monthly point-to-point EIA credits are treated as cliquet payoffs and valued with COS methods.
Applications of the Central Limit Theorem for Pricing Cliquet-Style Options Ralf Korn, Busra Zeynep Temocin, and Jorg Wenzel 2017 Analytical approximation and control-variate Monte Carlo for cliquet-style payoffs.
Equity-Linked Annuity Pricing with Cliquet-Style Guarantees in Regime-Switching and Stochastic Volatility Models with Jumps Zhenyu Cui 2017 Transform-based pricing of cliquet-style guarantees under richer stochastic-volatility and jump models.
Cliquet Option Pricing with Meixner Processes Markus Hess 2018 Closed-form and transform methods for cliquets under a Meixner Levy process.
Cliquet Option Pricing in a Jump-Diffusion Levy Model Markus Hess 2018 Jump-diffusion Levy pricing formulas plus Greeks with emphasis on vega.
CVA for Cliquet Options Under Heston Model Yaqin Feng, Min Wang, and Yuanqing Zhang 2019 Extends cliquet valuation into counterparty-risk and Heston-model exposure analytics.
Enums

Enumeration values used by the app

These are the concrete enum members used in calendars, schedules, swap typing, and rate extraction.

Calendars and conventions

Enum Value Notes
ql.UnitedStates.Settlement 0 Calendar market used across curve helpers and schedules
ql.UnitedStates.NYSE 1 Calendar used for the SPX cliquet reset schedule
ql.Following 0 Deposit helper business-day convention
ql.ModifiedFollowing 1 Schedule convention for swaps
ql.DateGeneration.Forward 1 Schedule generation rule

Swap and day-count enums

Enum Value Notes
ql.OvernightIndexedSwap.Payer 1 Pay fixed / receive floating
ql.OvernightIndexedSwap.Receiver -1 Receive fixed / pay floating
ql.Annual 1 Annual compounding/frequency enum used for zero-rate extraction
ql.Normal 1 Normal-volatility type used for swaption calibration helpers
ql.RateAveraging.Compound 1 SOFR averaging method used by swaption helpers

Time units

Enum Value Notes
ql.Days 0 Overnight helper and one-day forward strip
ql.Years 3 OIS maturities and trade tenors