
Greeks
This calculates option Greeks using the Black-Scholes model and can back out implied volatility from market prices via Newton-Raphson. You give it spot, strike, expiration (either as a date or days to expiry), and optionally a market price to derive IV. It returns delta, gamma, theta, vega, and rho in JSON format. The implementation is straightforward Python with scipy doing the heavy lifting. It's handy when you need quick sensitivity numbers for a specific option position without spinning up a full options platform. Supports both calls and puts, lets you specify historical dates for backtesting, and handles custom volatility or rate assumptions if you want to override the calculations.
- skills.sh installs
- 128
- GitHub stars
- 406
- last updated
- Jun 11, 2026
Install
$ npx -y skills add staskh/trading_skills --skill greeks --agent claude-codeInstalls into .claude/skills of the current project.
Files
Option Greeks
Calculate Greeks for options using Black-Scholes model. Computes IV from market price via Newton-Raphson.
Instructions
Note: If
uvis not installed orpyproject.tomlis not found, replaceuv run pythonwithpythonin all commands below.
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
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- 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
- Price History
- Scanner Bullish
- Scanner Pmcc
- Spread Analysis
- Whale Hunting
- Technical Analysis598