Finance & Risk

kTRM — Options Analytics Engine

Intraday vol surface calibration, skew monitoring, and arbitrage detection across SPX, VIX, SPY, QQQ, ES, and OEX — built from a native C++ solver up through interactive dashboards.

Private Repo — Request Access

Results

Key Metrics

9,500+

Contracts per Session

8

Per-Tenor Diagnostics

6

Underlyings (SPX/VIX/ES...)

3

Output Modes (TUI/Web/Export)

Approach

Technical Overview

C++ Implied Volatility Solver

The Jaeckel method is implemented in native C++ with OpenMP threading and exposed to Python via zero-copy ctypes bindings. The solver processes 9,500+ option contracts per session across the full chain, converting raw prices to implied volatilities that feed directly into surface fitting.

eSSVI Surface Calibration

Fitted surfaces use the extended Surface SVI parameterization with penalty terms that enforce no-arbitrage constraints — butterfly and calendar spread violations are penalized during optimization. Each tenor produces 8 diagnostic metrics (ATM IV, 25-delta risk reversal, 25-delta butterfly, skew, variance swap level, forward vol, IV spread, and R²) plus residual plots.

Data Pipeline

Databento L1 options market data is fetched, validated, and stored as Parquet files through an integrated download manager. The pipeline maintains a contract hierarchy across SPX, OEX, VIX, SPY, QQQ, and ES with automatic expiry resolution and forward price computation.

Terminal UI + Web Dashboard

The Textual TUI supports tenor navigation, four coordinate modes (IV, total variance, sigma-squared, ATM term structure), bid/ask/mid series toggles, CSV export, and an autocompleting command bar. The Dash web UI adds interactive Plotly charts, a 3D surface viewer, eSSVI fit overlays, strike-level inspection via ag-Grid, and a paginated arbitrage scanner that flagged 189 violations (185 butterfly, 4 calendar) on SPY alone.

Gallery

Output & Visualizations

Terminal UI — ATM Term Structure
Web — Volatility Smile + eSSVI Fit
Web — Smile Controls + Stats
Web — Surface Diagnostics
Web — Strike Inspector
Web — Arbitrage Scan

Terminal UI — ATM Term StructureTUI home tab showing tenor list, ASCII term structure chart, stats grid, and strike table for SPY

Web — Volatility Smile + eSSVI FitDash dashboard with smile plot, eSSVI fit overlay, stats grid, and strike table for SPY 2025-01-16

Web — Smile Controls + StatsCoordinate mode buttons, series toggles, ATM marker, export, and 8-metric stats grid

Web — Surface Diagnostics3D eSSVI surface, selected-tenor fit slice, residuals, parameter terms, and fit quality by tenor

Web — Strike InspectorStrike table with per-row detail inspector showing moneyness, bid/ask IV, and validity status

Web — Arbitrage Scan189 violations detected (185 butterfly, 4 calendar) with type, expiration, and constraint details

Stack

Technologies Used

Language
C++Python
Performance
OpenMP
Bindings
ctypes
TUI
TextualRich
Web
DashPlotlyag-Grid
Data
DatabentoPolarsNumPy