option-chain
Scannednpx machina-cli add skill staskh/trading_skills/option-chain --openclawOption Chain
Fetch option chain data from Yahoo Finance for a specific expiration date.
Instructions
Note: If
uvis not installed orpyproject.tomlis not found, replaceuv run pythonwithpythonin 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, impliedVolatilityputs- Array of put options with same fieldsunderlying_price- Current stock price for reference
Present data as a table. Highlight high volume/OI strikes and notable IV levels.
Dependencies
pandasyfinance
Source
git clone https://github.com/staskh/trading_skills/blob/main/.claude/skills/option-chain/SKILL.mdView on GitHub Overview
Fetches calls and puts for a specific expiration date from Yahoo Finance. Returns a structured JSON with arrays for calls and puts plus the underlying price. This enables quick comparison of strikes, liquidity, and implied volatility to inform option strategies.
How This Skill Works
The skill first lists available expirations for a SYMBOL using the options script with --expiries. Once you choose an expiry, it fetches the chain with --expiry YYYY-MM-DD. The result is JSON containing calls, puts, and underlying_price, designed to be displayed as a table with high-volume, high-OI strikes and notable IV highlighted.
When to Use It
- You need all call and put data for a specific expiration date to evaluate a strategy.
- You want to compare strike prices, bid/ask spreads, volume, and open interest for a stock.
- You’re analyzing implied volatility across strikes for a given expiry.
- You need the underlying price alongside options data to contextualize pricing.
- You’re preparing a liquidity-focused option snapshot for a client or report.
Quick Start
- Step 1: Fetch available expirations for SYMBOL (e.g., python script with --expiries).
- Step 2: Pick an expiry date (YYYY-MM-DD) and run the fetch command with --expiry.
- Step 3: Review the returned JSON of calls, puts, and underlying_price, presented as a table with highlighted strikes.
Best Practices
- Always fetch the available expiries first to pick a valid date.
- Filter results by high volume or open interest to identify liquid contracts.
- Pay attention to implied volatility levels across near-the-money strikes.
- Cross-check the underlying price to ensure accurate interpretation of options data.
- Present data as a table and highlight high-volume/OI strikes and notable IV.
Example Use Cases
- AAPL options for 2026-03-15 expiry: identify the most liquid calls and puts with the highest IV.
- TSLA options for 2026-04-20 expiry: compare near-the-money strikes across calls and puts.
- SPY options for 2026-05-19 expiry: scan for high-volume, high-OI strikes to assess liquidity.
- MSFT options for a given expiry with underlying price displayed for contextual pricing.
- Use the chain to prepare a concise liquidity snapshot for a client presentation.