How ericwang-finmktdatalab/options_data_analysis works
This is an options-data analysis pipeline for quant research and education. Its main workflow selects the top five S&P 500 stocks, retrieves near-term option chains and spot prices, enriches contracts with Black–Scholes Greeks and open-interest z-scores, then produces IV plots and CSV datasets, including an unusual-OI subset. The graph distinguishes the pipeline orchestrator from acquisition, analytics, and output components. Relationships are based on the README and excerpted source; unsampled implementation details are not inferred.
Main entry points: run_pipeline.py Pipeline runner · data_fetcher.py Stock universe selection · greeks.py Black–Scholes Greeks · visualizer.py IV surface plotting
Components 14
Pipeline workflow
- Pipeline runner
run_pipeline.py - Unusual OI filter
run_pipeline.py - Event logging
src/utils.py
Market data acquisition
- Stock universe selection
src/data_fetcher.py - Spot and option data
src/data_fetcher.py - Slickcharts
- Yahoo Finance
Options analytics
- Black–Scholes Greeks
src/greeks.py - OI statistics
src/signals.py
Analysis outputs
- IV surface plotting
src/visualizer.py - Enriched chain CSV
data - Unusual OI CSV
data - IV surface images
data
Other components
- Researcher
Connections 14
- Researcher → Pipeline runner: runs
README.MD - Pipeline runner → Stock universe selection: requests tickers
run_pipeline.py - Stock universe selection → Slickcharts: fetches constituents
src/data_fetcher.py - Pipeline runner → Spot and option data: requests prices and chains
run_pipeline.py - Spot and option data → Yahoo Finance: fetches market data
src/data_fetcher.py - Pipeline runner → Black–Scholes Greeks: enriches contracts
run_pipeline.py - Pipeline runner → OI statistics: enriches OI statistics
run_pipeline.py - Pipeline runner → Unusual OI filter: selects z-score above 2
run_pipeline.py - Pipeline runner → IV surface plotting: requests IV plot
run_pipeline.py - Pipeline runner → Enriched chain CSV: writes enriched data
run_pipeline.py - Pipeline runner → Unusual OI CSV: writes filtered data
run_pipeline.py - IV surface plotting → IV surface images: saves image
src/visualizer.py - Pipeline runner → Event logging: logs progress
run_pipeline.py - Black–Scholes Greeks → Event logging: logs diagnostics
src/greeks.py