Callable cross-currency quant lab.
A transparent research view of the 10Y NC2 EUR €STR versus USD fixed swap: economics, calibrated Hull–White rate factors, lognormal EURUSD diffusion, domestic-measure quanto drift, Monte Carlo valuation, least-squares stopping policy, exercise profile, and numerical controls.
Value decomposition and Monte Carlo uncertainty.
Values are read from result.json. Opening this page does not recalibrate or simulate; rerun the standalone pricer to refresh the snapshot.
Relative value map
Absolute bar length is scaled to the largest displayed PV; color preserves economic sign.
Numerical configuration
Independent samples fit and value the stopping policy, avoiding same-sample look-ahead bias.
- Training paths
- 10,000
- Pricing paths
- 30,000
- Time-grid nodes
- 169
- Maximum step
- 0.08333 years
- Random generator
- NUMPY_PCG64_ANTITHETIC
- Seed
- 1729
- Runtime
- 0.979 seconds
Cash flows, exchanges, and cancellation rights.
Positive values and receipts are stated from the exercise holder’s perspective. Reporting and collateral currency are both USD.
Two-leg structure
The sample notionals are aligned at the initial EURUSD spot of 1.1000 USD per EUR.
Lifecycle
Contractual event ordering is explicit: due cash flows are paid before cancellation terminates only the remaining tail.
- Effective
- 2026-08-18
- Maturity
- 2036-08-18
- Non-call
- 2Y
- Call frequency
- 1Y
- Style
- CANCEL_REMAINING_SWAP
- Event order
- PAY_DUE_THEN_CANCEL
- Initial / final exchange
- YES / YES
Full generated schedule · 20 USD coupons · 40 EUR coupons · 8 call dates
2027-02-18 · 2027-08-18 · 2028-02-18 · 2028-08-18 · 2029-02-20 · 2029-08-20 · 2030-02-19 · 2030-08-19 · 2031-02-18 · 2031-08-18 · 2032-02-18 · 2032-08-18 · 2033-02-18 · 2033-08-18 · 2034-02-21 · 2034-08-18 · 2035-02-20 · 2035-08-20 · 2036-02-19 · 2036-08-18
2026-11-18 · 2027-02-18 · 2027-05-18 · 2027-08-18 · 2027-11-18 · 2028-02-18 · 2028-05-18 · 2028-08-18 · 2028-11-20 · 2029-02-20 · 2029-05-18 · 2029-08-20 · 2029-11-19 · 2030-02-19 · 2030-05-20 · 2030-08-19 · 2030-11-18 · 2031-02-18 · 2031-05-19 · 2031-08-18 · 2031-11-18 · 2032-02-18 · 2032-05-18 · 2032-08-18 · 2032-11-18 · 2033-02-18 · 2033-05-18 · 2033-08-18 · 2033-11-18 · 2034-02-21 · 2034-05-18 · 2034-08-18 · 2034-11-20 · 2035-02-20 · 2035-05-18 · 2035-08-20 · 2035-11-19 · 2036-02-19 · 2036-05-19 · 2036-08-18
Two Hull–White factors and lognormal FX.
All dynamics are simulated jointly under the USD money-market measure with EURUSD quoted as USD per EUR.
Domestic-measure dynamics
The negative EUR quanto term is required by the measure and FX quotation. The log-FX update includes the Itô correction.
Curve fit, rate smiles, and FX term structure.
Rate calibration uses normal-vol diagonal swaptions. FX diffusion buckets are solved in the full stochastic-rate hybrid to reproduce selected ATM Black targets.
Exact implementation definition. Each diagonal swaption helper has equal weight, so “weighted RMS” in the versioned JSON means weights wi = 1. It measures typical relative pricing error, penalizes larger misses quadratically, and is dimensionless. The page reports it as a percentage; for example 0.02319 is 2.319%.
Hull–White diagonal fits
Market and model values are normalized helper prices; errors are relative price errors.
| CCY | Expiry × tenor | Market | Model | Rel. error |
|---|---|---|---|---|
| USD | 2Yx8Y | 0.02809149 | 0.02823800 | +0.522% |
| USD | 3Yx7Y | 0.02988325 | 0.02965293 | -0.771% |
| USD | 4Yx6Y | 0.02935183 | 0.02877446 | -1.967% |
| USD | 5Yx5Y | 0.02696429 | 0.02628480 | -2.520% |
| USD | 6Yx4Y | 0.02303108 | 0.02260830 | -1.836% |
| USD | 7Yx3Y | 0.01802357 | 0.01793323 | -0.501% |
| USD | 8Yx2Y | 0.01234518 | 0.01253616 | +1.547% |
| USD | 9Yx1Y | 0.00621240 | 0.00652875 | +5.092% |
| EUR | 2Yx8Y | 0.02501406 | 0.02516354 | +0.598% |
| EUR | 3Yx7Y | 0.02686633 | 0.02660112 | -0.987% |
| EUR | 4Yx6Y | 0.02664139 | 0.02598706 | -2.456% |
| EUR | 5Yx5Y | 0.02467529 | 0.02390188 | -3.134% |
| EUR | 6Yx4Y | 0.02119475 | 0.02070884 | -2.293% |
| EUR | 7Yx3Y | 0.01665274 | 0.01654662 | -0.637% |
| EUR | 8Yx2Y | 0.01143456 | 0.01165248 | +1.906% |
| EUR | 9Yx1Y | 0.00574993 | 0.00611418 | +6.335% |
EURUSD ATM Black calibration
Market implied vol differs from the hybrid diffusion coefficient because both interest rates are stochastic.
| Instrument | Market vol | Model vol | Hybrid σ |
|---|---|---|---|
| EURUSD-ATM-1Y | 12.500% | 12.500% | 12.438% |
| EURUSD-ATM-2Y | 12.200% | 12.200% | 11.651% |
| EURUSD-ATM-3Y | 12.000% | 12.000% | 11.099% |
| EURUSD-ATM-5Y | 11.700% | 11.700% | 10.217% |
| EURUSD-ATM-7Y | 11.500% | 11.500% | 9.003% |
| EURUSD-ATM-10Y | 11.200% | 11.200% | 6.584% |
Full curve and FX-forward repricing ledger · 46 instruments
USD-OIS
| Tenor | Market rate / forward | Model rate / forward | Error |
|---|---|---|---|
| 1W | 4.100000% | 4.100000% | -5.468e-11 bp |
| 1M | 4.080000% | 4.080000% | +1.693e-11 bp |
| 3M | 4.040000% | 4.040000% | +5.343e-12 bp |
| 6M | 3.980000% | 3.980000% | +5.294e-11 bp |
| 1Y | 3.900000% | 3.900000% | -7.633e-13 bp |
| 2Y | 3.780000% | 3.780000% | +6.939e-14 bp |
| 3Y | 3.720000% | 3.720000% | +4.292e-10 bp |
| 4Y | 3.700000% | 3.700000% | +2.429e-12 bp |
| 5Y | 3.710000% | 3.710000% | -1.672e-11 bp |
| 6Y | 3.730000% | 3.730000% | -6.578e-11 bp |
| 7Y | 3.760000% | 3.760000% | -1.232e-10 bp |
| 8Y | 3.790000% | 3.790000% | -7.452e-11 bp |
| 9Y | 3.820000% | 3.820000% | -4.864e-11 bp |
| 10Y | 3.850000% | 3.850000% | -3.067e-11 bp |
| 12Y | 3.900000% | 3.900000% | -9.916e-11 bp |
| 15Y | 3.950000% | 3.950000% | -6.939e-14 bp |
EUR-OIS
| Tenor | Market rate / forward | Model rate / forward | Error |
|---|---|---|---|
| 1W | 2.550000% | 2.550000% | +1.478e-11 bp |
| 1M | 2.540000% | 2.540000% | +1.370e-11 bp |
| 3M | 2.520000% | 2.520000% | +6.939e-14 bp |
| 6M | 2.490000% | 2.490000% | +6.523e-12 bp |
| 1Y | 2.450000% | 2.450000% | +4.279e-10 bp |
| 2Y | 2.400000% | 2.400000% | +5.089e-10 bp |
| 3Y | 2.380000% | 2.380000% | +5.794e-12 bp |
| 4Y | 2.380000% | 2.380000% | +1.183e-10 bp |
| 5Y | 2.400000% | 2.400000% | -1.290e-10 bp |
| 6Y | 2.420000% | 2.420000% | -7.244e-11 bp |
| 7Y | 2.450000% | 2.450000% | -1.437e-10 bp |
| 8Y | 2.480000% | 2.480000% | -8.996e-11 bp |
| 9Y | 2.510000% | 2.510000% | -6.120e-11 bp |
| 10Y | 2.540000% | 2.540000% | -3.979e-11 bp |
| 12Y | 2.600000% | 2.600000% | -1.036e-10 bp |
| 15Y | 2.670000% | 2.670000% | +6.939e-14 bp |
EUR-EFFECTIVE-USD-COLLATERAL
| Tenor | Market rate / forward | Model rate / forward | Error |
|---|---|---|---|
| 1M | 1.101400 | 1.101400 | +0.000e+00 |
| 3M | 1.104100 | 1.104100 | +0.000e+00 |
| 6M | 1.108200 | 1.108200 | +0.000e+00 |
| 1Y | 1.116500 | 1.116500 | +0.000e+00 |
| 2Y | 1.133200 | 1.133200 | +0.000e+00 |
| 3Y | 1.150200 | 1.150200 | -2.220e-16 |
| 4Y | 1.167400 | 1.167400 | +0.000e+00 |
| 5Y | 1.184900 | 1.184900 | +0.000e+00 |
| 6Y | 1.202700 | 1.202700 | +0.000e+00 |
| 7Y | 1.220700 | 1.220700 | +0.000e+00 |
| 8Y | 1.239000 | 1.239000 | +0.000e+00 |
| 9Y | 1.257600 | 1.257600 | +0.000e+00 |
| 10Y | 1.276500 | 1.276500 | +0.000e+00 |
| 12Y | 1.315200 | 1.315200 | +0.000e+00 |
Backward regression, forward stopping.
The holder cancels the remaining swap only when its estimated cancellable continuation value is negative beyond the configured tolerance.
Decision rule
Common cash flows due at the event date are excluded from the comparison, paid, and then retained regardless of the decision.
Regression state includes standardized USD/EUR rate factors, log FX, conditional PV features, squares, and cross terms. The frozen policy is applied to an independent pricing sample.
Forward exercise distribution
Unconditional probability by first stopping date. “No exercise” means the deal survives to maturity.
LSM regression diagnostics · 8 exercise regressions
| Call | Date | Paths | Rank / basis | Condition no. | Residual RMS | Backward ex. |
|---|---|---|---|---|---|---|
| 1 | 2028-08-18 | 10,000 | 10 / 10 | 4.730 | $20,658,669.37 | 14.12% |
| 2 | 2029-08-20 | 10,000 | 10 / 10 | 4.866 | $19,321,627.72 | 19.68% |
| 3 | 2030-08-19 | 10,000 | 10 / 10 | 4.826 | $18,019,286.34 | 22.19% |
| 4 | 2031-08-18 | 10,000 | 10 / 10 | 5.027 | $16,235,162.01 | 24.78% |
| 5 | 2032-08-18 | 10,000 | 10 / 10 | 5.352 | $14,331,088.71 | 25.89% |
| 6 | 2033-08-18 | 10,000 | 10 / 10 | 5.419 | $12,068,384.62 | 27.06% |
| 7 | 2034-08-18 | 10,000 | 10 / 10 | 5.782 | $10,267,111.56 | 27.35% |
| 8 | 2035-08-20 | 10,000 | 10 / 10 | 5.946 | $8,111,077.67 | 40.71% |
Martingales, reproducibility, and known limits.
These diagnostics are evidence for a research implementation, not a substitute for independent model validation or production approval.
Domestic-numeraire martingales
Sample expectations are compared with analytic targets; the indicator shown uses a three-standard-error diagnostic band.
| Asset | Sample | Target | z-score | Status |
|---|---|---|---|---|
| USD discount bond | 0.68013228 | 0.68023411 | -0.179 | pass |
| FX-converted EUR zero coupon | 0.86818648 | 0.86845707 | -0.146 | pass |
| FX-converted EUR bank account | 1.10016822 | 1.10000000 | +0.085 | pass |
Model limitations
Explicit boundaries prevent the reference result from being mistaken for a fully governed trading model.
- Reference implementation; independent model validation is required before production use.
- Rate volatility is one-piece constant per currency in model version 1.
- Forecast/discount and cross-currency basis are deterministic.
- FX uses ATM lognormal volatility and does not fit a strike smile.
- EUR overnight compounding uses the continuous-time bank-account equivalent with zero lookback and lockout.
- The LSM estimate is a lower bound and must be convergence-tested against a dual or nested-MC benchmark.
QuantLib where native; explicit hybrid logic where required.
The Flask page is observational. The standalone engine remains the source of pricing results.
QuantLib responsibilities
- Calendars, schedules, day counts, OIS helpers, yield curves, and discount factors.
- ql.HullWhite, ql.SwaptionHelper, and ql.JamshidianSwaptionEngine for rate calibration.
- Black-vol quote conventions and analytic building blocks used by calibration.
- Reproducible curve and helper repricing diagnostics.
Explicit Python responsibilities
- Joint USD-measure transition with the EUR quanto drift and stochastic-rate FX drift.
- Exact OU kernels, interval covariance integration, and correlated antithetic paths.
- Pathwise cross-currency cash flows, notional exchanges, discounting, and FX conversion.
- Two-sample LSM cancellation policy, exercise accounting, confidence intervals, and martingale tests.
Refresh the reference valuation
Run from the repository root. Reload this page after the command completes.
./.venv/bin/python standalone_xccy_pricer.py \
--market data/xccy_market_eurusd.json \
--deal data/xccy_deal_10y_nc2.json \
--output result.json
Data lineage and reproducibility metadata
- Market source
- ILLUSTRATIVE_REPLACE_WITH_APPROVED_MARKET_SNAPSHOT
- Market input
- data/xccy_market_eurusd.json
- Deal input
- data/xccy_deal_10y_nc2.json
- Result snapshot
- result.json
- Normalized input SHA-256
- c391d15407e6875f30957faa2fc76c91f5d5d4c00ea35b602a5cad3f1fed3d84
- Run ID
- 4373720a-0bab-4f4d-be53-d6d815847e95
- QuantLib / NumPy / Python
- 1.43 / 2.5.2 / 3.13.5