Welcome to OptionStrat AI
OptionStrat AI is an advanced derivatives simulator that combines Black-Scholes-Merton pricing, AI-powered portfolio analysis, and real-time options data to help you build and analyze complex options strategies.This quickstart guide will have you analyzing your first options strategy in under 5 minutes.
Prerequisites
Before you begin, make sure you have:- Python 3.8+ installed
- Node.js 16+ and npm installed
- An OpenAI API key (for AI insights feature)
Quick Setup
Clone the Repository
If you haven’t already, clone or download the OptionStrat AI source code to your local machine.
Start the Backend Server
Navigate to the backend directory and launch the FastAPI server:The backend will start on
http://127.0.0.1:8000Configure Environment Variables
Create a Edit the
.env file in the backend directory:.env file and add your OpenAI API key:Start the Frontend Client
Open a new terminal window and navigate to the frontend directory:The frontend will start on
http://localhost:5173 (or another port shown in your terminal).Your First Strategy
Now that OptionStrat AI is running, let’s build your first options strategy!Load a Ticker
In the search box at the top right, type a ticker symbol (e.g.,
AAPL) and press Enter.The system will:- Fetch the current spot price from Yahoo Finance
- Load all available expiration dates
- Display the default option chain (closest expiration ≥7 days)
Popular tickers include AAPL, TSLA, NVDA, SPY, MSFT, AMZN, and META. You can also click the quick-select buttons for instant access.
Build a Covered Call
A covered call is a popular strategy where you own 100 shares and sell a call option.
- Add the stock position: In the Strategy Builder panel, click “+100 Acciones (Covered)”
- Sell a call: In the option chain, find a strike price above the current price (e.g., 5-10% OTM)
- Click the green BID price in the CALL column to sell the call
View the Risk Profile
The Heatmap panel automatically updates to show your profit/loss across different scenarios:
- X-axis: Underlying price changes (from -30% to +30%)
- Y-axis: Days until expiration (time decay)
- Colors:
- Green = Profit
- Red = Loss
- Brighter colors = Higher magnitude
- Volatility Shock: Impact of IV changes (Vega risk)
- Days Forward: Fast-forward to see theta decay
The heatmap updates in real-time as you add or remove positions. You can have multiple legs including stocks, calls, and puts for complex spreads like Iron Condors or Butterflies.
Get AI Analysis
Click “Analizar con IA” in the AI Insights panel to get:
- Risk Score (1-10 scale)
- Net Greeks summary (Delta, Gamma, Theta, Vega)
- Quick Tips for portfolio adjustments
- LLM Analysis with contextual market sentiment from FinViz news and insider trading data
- Your net Greek exposures
- Recent news sentiment (bullish/bearish/neutral)
- Insider trading activity (C-suite buying/selling)
- Analyst price targets
Explore Strategy Recommendations
Scroll down to the Strategy Recommender section to get AI-optimized strategies:
- Select your market bias: Bullish, Neutral, or Bearish
- Choose your risk profile:
- Conservative (~85% probability of profit)
- Balanced (~70% POP)
- Aggressive (~50% POP, higher premium)
- Set your DTE range (Days to Expiration)
- Bull Put Spreads (bullish/neutral)
- Iron Condors (neutral, high-probability)
- Credit Spreads (directional bets)
The recommender automatically filters out “zombie options” by requiring minimum volume (>10) and open interest (>50) for reliable execution.
API Verification
Want to verify the backend is working? Test the API endpoints:Next Steps
Installation Guide
Detailed setup instructions, troubleshooting, and system requirements
API Reference
Explore all available endpoints and their parameters
Strategy Builder
Learn how to build complex multi-leg strategies
AI Insights
Understand how the AI analyzes your portfolio risk
Common Use Cases
Building a Protective Put
- Click “+100 Acciones (Covered)” to add stock
- Click the red ASK price on a PUT below current price
- View the limited downside risk in the heatmap
Creating an Iron Condor
- Use the Strategy Recommender with “neutral” bias
- Click “Cargar al Simulador” on a recommended Iron Condor
- View the profit zone in the heatmap (profits when underlying stays in range)
Analyzing Theta Decay
- Build any credit spread (sell options)
- Move the “Days Forward” slider to see profit increase over time
- Check the “Net Theta” in AI Insights to see daily profit from time decay
Need Help?
Troubleshooting
Common issues and solutions
GitHub Issues
Report bugs or request features