Analyzes stock options and pricing with AI-powered interpretation to assess stock strength. Built with Streamlit and GPT-4o.
- Real-Time Options Chain Analysis — Fetch live options data for any stock ticker
- AI-Powered Research Reports — GPT-4o generates institutional-quality equity research summaries
- Greeks Dashboard — Delta, gamma, theta, vega, and rho calculations at a glance
- Technical Indicators — SMA-20/50/200, RSI, Put/Call ratio, and more
- Volatility Analysis — Historical vs. implied volatility comparison
- Options Strategy Builder — Educational tool for constructing and visualizing strategies
- Watchlist & Compare — Track multiple tickers and compare side-by-side
- PDF Export — Download analysis reports as formatted PDFs
- Database Caching — Avoid redundant GPT calls with PostgreSQL-backed caching
# Clone the repo
git clone https://github.com/natedoggzCD/OptionsToolkit.git
cd OptionsToolkit
# Install dependencies
pip install -r requirements.txt
# Set your OpenAI API key
export OPENAI_API_KEY="your-key-here" # Linux/Mac
set OPENAI_API_KEY=your-key-here # Windows CMD
$env:OPENAI_API_KEY="your-key-here" # PowerShell
# Run the app
streamlit run app.pyThe app will open at http://localhost:8501.
| Variable | Description | Required |
|---|---|---|
OPENAI_API_KEY |
OpenAI API key for GPT-4o analysis | Yes |
DATABASE_URL |
PostgreSQL connection string for caching | No (optional) |
OptionsToolkit/
├── app.py # Main Streamlit application
├── utils/
│ ├── data_fetcher.py # Stock & options data retrieval
│ ├── options_analyzer.py # Greeks & options calculations
│ ├── gpt_analyzer.py # GPT-4o integration
│ ├── strategy_builder.py # Options strategy construction
│ ├── visualizations.py # Plotly chart generation
│ ├── pdf_export.py # PDF report generation
│ └── database.py # PostgreSQL caching layer
├── requirements.txt
├── pyproject.toml
└── LICENSE
- streamlit — Interactive web dashboard
- yfinance — Real-time stock & options data
- openai — GPT-4o AI analysis
- plotly — Interactive charts
- scipy — Options pricing models
- reportlab — PDF generation
- psycopg2-binary — PostgreSQL driver (optional)