Skip to main content
skill CX Codex

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

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add staskh/trading_skills --skill option-chain -a claude-code
Open on GitHub

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

2Manually: put the files in place

~/.claude/skills/option-chain/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/option-chain/

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

Similar skills

All skills for Finance and business →

From the same set12

The whole set →
fundamentals The fundamentals skill retrieves financial statements, earnings, and company metrics from Yahoo Finance. Use it when an agent needs fundamental analysis for a ticker. CX Codex +1 188installs stock-quote stock-quote is a Claude Code skill that fetches current price, volume, change, and 52-week range for any ticker. CX Codex +1 138installs greeks Skill computes option Greeks (delta, gamma, theta, vega) and implied volatility using the Black-Scholes model. Use it to understand how your position reacts to price changes, time decay, and shifts in volatility. CX Codex +1 137installs report-stock report-stock builds stock research reports in Markdown or PDF covering market trends, PMCC viability, and company fundamentals. CX Codex +1 123installs risk-assessment risk-assessment calculates risk metrics for stocks and positions: volatility, beta, Value at Risk, and maximum drawdown. Use it to assess position risk and determine sizing. CX Codex +1 113installs ib-portfolio ib-portfolio — a skill for Claude Code fetches open positions and holdings from Interactive Brokers. The agent invokes it when asked about current stocks, portfolio value, or account assets. CX Codex +1 107installs spread-analysis The spread-analysis skill performs quantitative analysis of multi-leg option strategies for Claude Code. It triggers on requests concerning vertical spreads, iron condors, straddles, or strangle strategies. CX Codex +1 105installs ib-account The ib-account Claude Code skill fetches an Interactive Brokers account summary. It activates for questions about balances, buying power, or available cash. CX Codex +1 103installs

Project sponsors

Companies that keep this analytics open