greeks

Solid

Calculate option Greeks (delta, gamma, theta, vega) and implied volatility for specific options. Use when user asks about Greeks, delta, gamma, theta, vega, IV, or option sensitivity analysis.

AI & Automation 229 stars 56 forks Updated today MIT

Install

View on GitHub

Quality Score: 88/100

Stars 20%
79
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
95
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Option Greeks Calculate Greeks for options using Black-Scholes model. Computes IV from market price via Newton-Raphson. ## Instructions > **Note:** If `uv` is not installed or `pyproject.toml` is not found, replace `uv run python` with `python` in all commands below. ```bash uv run python scripts/greeks.py --spot SPOT --strike STRIKE --type call|put [--expiry YYYY-MM-DD | --dte DTE] [--price PRICE] [--date YYYY-MM-DD] [--vol VOL] [--rate RATE] ``` ## Arguments - `--spot` - Underlying spot price (required) - `--strike` - Option strike price (required) - `--type` - Option type: call or put (required) - `--expiry` - Expiration date YYYY-MM-DD (use this OR --dte) - `--dte` - Days to expiration (alternative to --expiry) - `--date` - Calculate as of this date instead of today (YYYY-MM-DD) - `--price` - Option market price (for IV calculation) - `--vol` - Override volatility as decimal (e.g., 0.30 for 30%) - `--rate` - Risk-free rate (default: 0.05) ## Output Returns JSON with: - `spot` - Underlying spot price - `strike` - Strike price - `days_to_expiry` - Days until expiration - `iv` - Implied volatility (calculated from market price) - `greeks` - delta, gamma, theta, vega, rho ## Examples ```bash # With expiry date and market price (calculates IV) uv run python scripts/greeks.py --spot 630 --strike 600 --expiry 2026-05-15 --type call --price 72.64 # With DTE directly uv run python scripts/greeks.py --spot 630 --strike 600 --dte 30 --type call --price 40 # As of a fut...

Details

Author
staskh
Repository
staskh/trading_skills
Created
3 months ago
Last Updated
today
Language
Python
License
MIT

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Solid

spread-analysis

Analyze option spread strategies like vertical spreads, iron condors, straddles, strangles. Use when user asks about spreads, multi-leg strategies, vertical spread, iron condor, straddle, strangle, or strategy analysis.

229 Updated today
staskh
AI & Automation Listed

options-strategy-advisor

Options trading strategy analysis and simulation tool. Provides theoretical pricing using Black-Scholes model, Greeks calculation, strategy P/L simulation, and risk management guidance. Use when user requests options strategy analysis, covered calls, protective puts, spreads, iron condors, earnings plays, or options risk management. Includes volatility analysis, position sizing, and earnings-based strategy recommendations. Educational focus with practical trade simulation.

1 Updated 1 months ago
JadeGate
AI & Automation Solid

option-chain

Get option chain data including calls and puts with strikes, bids, asks, volume, open interest, and implied volatility. Use when user asks about options, option prices, calls, puts, or option chain for a specific expiration date.

229 Updated today
staskh
AI & Automation Solid

technical-analysis

Compute technical indicators like RSI, MACD, Bollinger Bands, SMA, EMA for a stock. Use when user asks about technical analysis, indicators, RSI, MACD, moving averages, overbought/oversold, or chart analysis.

229 Updated today
staskh
AI & Automation Solid

earnings-calendar

Get upcoming earnings dates with timing (before/after market) and EPS estimates. Use when user asks about earnings dates, earnings calendar, when a company reports, or upcoming earnings.

229 Updated today
staskh