staskh avatar

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-code

Installs into .claude/skills of the current project.

Files

Spread Analysis

Analyze multi-leg option strategies.

Instructions

Note: If uv is not installed or pyproject.toml is not found, replace uv run python with python in 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
1insforge avatarinsforge-cliinsforge/insforge-skillsUse this skill whenever someone needs a backend, or a task touches InsForge backend or cloud infrastructure through the InsForge CLI: projects, SQL, migrations,65Kskills.sh installs
2wshobson avatarrisk-metrics-calculationwshobson/agentsCalculate portfolio risk metrics including VaR, CVaR, Sharpe, Sortino, and drawdown analysis. Use when measuring portfolio risk, implementing risk limits, or bu11.4Kskills.sh installs
3getcargohq avatarcargo-billinggetcargohq/cargo-skillsPull usage metrics, check subscription status, view invoices, and manage credits using the Cargo CLI. Use when the user wants billing analytics, usage reports, 11.2Kskills.sh installs
4wshobson avatarpci-compliancewshobson/agentsImplement PCI DSS compliance requirements for secure handling of payment card data and payment systems. Use when securing payment processing, achieving PCI comp10.9Kskills.sh installs
5emblemcompany avataremblem-market-researchemblemcompany/agent-skillsCrypto market intelligence via EmblemAI. Trending tokens, on-chain analytics, derivatives data, and smart money tracking from CoinGecko, CoinGlass, Birdeye, and8.9Kskills.sh installs
6emblemcompany avataremblem-ai-prompt-examplesemblemcompany/agent-skillsCurated prompt and usage examples for research, portfolio review, quote requests, approval-gated drafts, NFT discovery, prediction-market analysis, and assistan8.8Kskills.sh installs