
Spread Analysis
This handles multi-leg options analysis for vertical spreads, straddles, strangles, and iron condors. You pass a symbol, strategy type, expiry date, and the relevant strikes, and it spits back JSON with cost, max profit/loss, breakeven points, and probability of profit based on implied volatility. The breakeven and probability metrics are legitimately useful when you're trying to decide between a bull call spread versus just buying the call outright. All timestamps use New York time since that's where markets actually operate. It wraps yfinance, so you're getting the same data quality and delays that come with that, but the strategic analysis layer saves you from building your own Greeks calculator.
- GitHub stars
- 248
- last updated
- Jun 11, 2026
Install
$ npx -y skills add staskh/trading_skills --skill spread-analysis --agent claude-codeInstalls into .claude/skills of the current project.
Files
Spread Analysis
Analyze multi-leg option strategies.
Instructions
Note: If
uvis not installed orpyproject.tomlis not found, replaceuv run pythonwithpythonin all commands below.
uv run python scripts/spreads.py SYMBOL --strategy STRATEGY --expiry YYYY-MM-DD [options]
Strategies and Options
Vertical Spread (bull/bear call/put spread):
uv run python scripts/spreads.py AAPL --strategy vertical --expiry 2026-01-16 --type call --long-strike 180 --short-strike 185
Straddle (long call + long put at same strike):
uv run python scripts/spreads.py AAPL --strategy straddle --expiry 2026-01-16 --strike 180
Strangle (long call + long put at different strikes):
uv run python scripts/spreads.py AAPL --strategy strangle --expiry 2026-01-16 --put-strike 175 --call-strike 185
Iron Condor (sell strangle + buy wider strangle):
uv run python scripts/spreads.py AAPL --strategy iron-condor --expiry 2026-01-16 --put-short 175 --put-long 170 --call-short 185 --call-long 190
Output
Sponsors
Details
- Repository
- github.com/staskh/trading_skills
- Category
- Finance & Trading
- License
- MIT
- First seen
- Jun 11, 2026
More from staskh/trading_skills
All 28- Whale Hunting
- Technical Analysis598
- News Sentiment246
- Fundamentals182
- Stock Quote131
- Greeks128
- Report Stock117
- Option Chain111
- Risk Assessment105
- Earnings Calendar
- Ib Account
- Ib Collar
- Ib Create Consolidated Report
- Ib Find Short Roll
- Ib Option Chain
- Ib Pmcc Advisor
- Ib Portfolio
- Ib Portfolio Action Report
- Ib Report Delta Adjusted Notional Exposure
- Ib Stop Loss
- Ib Trades History
- Ib Trailing Stop
- Insider Trading
- Markdown To Pdf