option-chain — Claude Code skill: fetch option quotes
Skill pulls option chain data from Yahoo Finance: calls and puts with strike prices, bids, asks, volumes, and implied volatility. Use it to check option quotes for a specific expiration date.
MIT 117 installs ★ 417 updated 2026-10-21
npx skills add staskh/trading_skills --skill option-chain -a claude-codeWhat option-chain does
The skill runs a Python script that queries option data by stock ticker. Start by listing available expiration dates using the --expiries flag, then fetch the chain for your target date with --expiry YYYY-MM-DD. Output is JSON: separate arrays for calls and puts, each with bid and ask prices, volume, open interest, and implied volatility. The skill presents data in a table and flags high-volume strikes and notable IV levels.
Requires pandas and yfinance libraries. If uv is not installed or pyproject.toml is missing, use python instead of uv run python in commands. All timestamps operate in America/New_York timezone; JSON responses include generated_at and data_delay fields.
What it helps with
- list expiration dates for an option
- retrieve calls and puts for a specific date
- compare bid-ask spreads across strikes
- identify strikes with high volume or open interest
- track implied volatility across the chain
Example prompts for the agent
- Show all expiration dates for AAPL options
- Get the SPY option chain for 2025-01-17
- Which strikes on TSLA have the highest open interest in late January?
How to install option-chain
1Skills CLI (Vercel)
npx skills add staskh/trading_skills --skill option-chain -a claude-code2Manually: put the files in place
~/.claude/skills/option-chain/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/option-chain/
1Skills CLI (Vercel)
npx skills add staskh/trading_skills --skill option-chain -a codex2Manually: put the files in place
.agents/skills/option-chain/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add staskh/trading_skills --skill option-chain -a cursor2Manually: put the files in place
.cursor/skills/option-chain/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install staskh/trading_skills .claude/skills/option-chain2Manually: put the files in place
.github/skills/option-chain/SKILL.md1Skills CLI (Vercel)
npx skills add staskh/trading_skills --skill option-chain -a gemini-cli2Platform CLI
gemini skills install https://github.com/staskh/trading_skills --path .claude/skills/option-chainManually: put the files in place
.devin/skills/option-chain/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add staskh/trading_skills --skill option-chain -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about option-chain
How do I install option-chain for Claude Code?
Run npx skills add staskh/trading_skills --skill option-chain -a claude-code, then edit ~/.claude/skills/option-chain/SKILL.md.
What does this skill return?
JSON with arrays of calls and puts: each includes strike, bid, ask, volume, open interest, and implied volatility. Also includes the current stock price as reference.
What dependencies are required?
The skill needs pandas and yfinance. If uv is not available, substitute python for uv run python.
Source text
SKILL.md · MIT
--- name: option-chain description: 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. dependencies: ["trading-skills"] --- # Option Chain Fetch option chain data from Yahoo Finance for a specific expiration date. ## Instructions > **Note:** If `uv` is not installed or `pyproject.toml` is not found, replace `uv run python` with `python` in all commands below. First, get available expiration dates: ```bash uv run python scripts/options.py SYMBOL --expiries ``` Then fetch the chain for a specific expiry: ```bash uv run python scripts/options.py SYMBOL --expiry YYYY-MM-DD ``` ## Arguments - `SYMBOL` - Ticker symbol (e.g., AAPL, SPY, TSLA) - `--expiries` - List available expiration dates only - `--expiry YYYY-MM-DD` - Fetch chain for specific date ## Output Returns JSON with: - `calls` - Array of call options with strike, bid, ask, volume, openInterest, impliedVolatility - `puts` - Array of put options with same fields - `underlying_price` - Current stock price for reference Present data as a table. Highlight high volume/OI strikes and notable IV levels. ## Dependencies - `pandas` - `yfinance` ## Timezone All timestamps and time-based calculations must use the `America/New_York` timezone. All JSON output must include `generated_at` (NY time string) and `data_delay` fields.
© staskh · MIT · staskh/trading_skills