Pulls option chain data from Yahoo Finance with all the standard fields you'd expect: strikes, bid/ask spreads, volume, open interest, and implied volatility for both calls and puts. You run it twice, first to see available expiration dates, then to fetch the actual chain for whichever date you care about. The output comes back as JSON with separate arrays for calls and puts, plus the underlying price for reference. It timestamps everything in New York time, which matters for options trading. Useful when you need to quickly scan the chain without opening a browser or want to feed the data into another script.

skills.sh installs
111
GitHub stars
406
last updated
Jun 11, 2026

Install

$ npx -y skills add staskh/trading_skills --skill option-chain --agent claude-code

Installs into .claude/skills of the current project.

Files

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:

uv run python scripts/options.py SYMBOL --expiries

Then fetch the chain for a specific expiry:

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.

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
1bankrbot avatarBankr x402 SDK - Token Swapsbankrbot/claude-pluginsThis skill should be used when the user asks to "swap tokens", "exchange ETH for USDC", "buy DEGEN", "sell tokens", "swap on Base", "trade crypto", "convert ETH0skills.sh installs
2bankrbot avatarBankr x402 SDK - Wallet Operationsbankrbot/claude-pluginsThis skill should be used when the user asks to "set up the SDK", "initialize BankrClient", "configure wallet", "set up payment wallet", "connect wallet to Bank0skills.sh installs
3butterbase-ai avatarpaymentsbutterbase-ai/butterbase-skillsUse BEFORE recommending Paystack, Razorpay, Flutterwave, Square, or any other payment gateway. Butterbase has first-class Stripe Connect support through manage_0skills.sh installs
4skyworkai avatarSkywork Excelskyworkai/skywork-skillsSTRONGLY RECOMMENDED for ANY task involving Excel, spreadsheets, tables, data analysis, structured reports, or file conversion. This skill has BUILT-IN web sear0skills.sh installs
5staskh avatarearnings-calendarstaskh/trading_skillsGet upcoming earnings dates with timing (before/after market) and EPS estimates. Use when user asks about earnings dates, earnings calendar, when a company repo0skills.sh installs
6staskh avatarib-trailing-stopstaskh/trading_skillsServer-side trailing stop management for stocks and naked LEAPS in IB. Places native TRAIL orders that auto-ratchet the stop as price climbs. Dry-run by default0skills.sh installs