How duaashibli/spx-0dte-svjdb-pricing-hedging works
This is a quantitative research framework for replicating and stress-testing S&P 500 0DTE option pricing and hedging with an SVJD-B model. The documented user-to-result flow runs from market-data ingestion and validation through econometric estimation, pricing, hedging, validation, and publication figures. The sampled master framework implements many analysis stages in one file; unsampled code is represented only where the README documents its capability. Relationships among documented stages rely on README statements where source excerpts do not show the wiring.
Main entry points: run_master_svjdb_framework.py Master Analysis · fit_svjdb_emm.py EMM Estimation · etl.py Data Ingestion · snp_garch.py Auxiliary GARCH Fit
Components 16
Market Data
- ITCH And OPRA Data
- Data Ingestion
src/etl.py - Five-Minute Bars
Econometric Estimation
- Master Analysis
svjdb_framework/run_master_svjdb_framework.py - Physical Estimates
svjdb_framework/run_master_svjdb_framework.py - Jump Detection
svjdb_framework/run_master_svjdb_framework.py - Auxiliary GARCH Fit
src/modeling/snp_garch.py - EMM Estimation
scripts/fit_svjdb_emm.py - EMM Objective
src/modeling/emm.py
Pricing And Risk
- SVJD-B Simulator
src/modeling/svjdb.py - Option Pricing
svjdb_framework/run_master_svjdb_framework.py - Dynamic Hedging
svjdb_framework/run_master_svjdb_framework.py
Validation And Results
- Model Validation
svjdb_framework/run_master_svjdb_framework.py - Publication Figures
svjdb_framework/plots.py - Research Results
svjdb_framework/outputs.md
Other components
- Researcher
Connections 18
- Researcher → Data Ingestion: runs ingestion
README.md - ITCH And OPRA Data → Data Ingestion: loads archives
src/etl.py - Data Ingestion → Five-Minute Bars: aggregates bars
src/etl.py - Researcher → Master Analysis: runs analysis
README.md - Five-Minute Bars → Master Analysis: reads datasets
svjdb_framework/run_master_svjdb_framework.py - Master Analysis → Physical Estimates: estimates parameters
README.md - Master Analysis → Jump Detection: detects jumps
README.md - Five-Minute Bars → Auxiliary GARCH Fit: fits returns
- Auxiliary GARCH Fit → EMM Estimation: provides auxiliary fit
src/modeling/snp_garch.py - EMM Estimation → EMM Objective: builds objective
scripts/fit_svjdb_emm.py - EMM Objective → SVJD-B Simulator: simulates candidates
src/modeling/emm.py - EMM Estimation → SVJD-B Simulator: loads simulator
scripts/fit_svjdb_emm.py - Master Analysis → Option Pricing: prices options
README.md - Master Analysis → Dynamic Hedging: simulates hedges
README.md - Master Analysis → Model Validation: checks model
README.md - Master Analysis → Publication Figures: supplies analysis
svjdb_framework/plots.py - Publication Figures → Research Results: generates figures
README.md - Model Validation → Research Results: reports results