Scans option chains for a given ticker to detect institutional-sized trades using Yahoo Finance and Massive API. Reports whale events, call/put ratios, and open interest walls.
Ships in ib-options-income. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Scans option chains for a given underlying to identify institutional-sized trades using a two-step approach:
The scan always covers a two-session window: the latest trading session plus the one before it. During market hours that means today so far plus the full previous day. Past dates are not supported because Yahoo option chains are a live snapshot.
Note: If
uvis not installed orpyproject.tomlis not found, replaceuv run pythonwithpythonin all commands below.
uv run python .claude/skills/whale-hunting/scripts/whale_hunting.py SYMBOL [--months N] [--sigma-z F] [--summary]
SYMBOL — Underlying ticker (e.g. AAPL, NVDA, SPY)--months — Max months until option expiration to consider (default: 2)--sigma-z — Modified Z-Score threshold for outlier detection in both the crude scan and the per-second drill-down (default: 3.5)--summary — Also compute per-ticker summary and include it in the JSON outputReturns JSON with:
underlying — The scanned symboltrading_date — Latest trading sessionwindow_dates — [previous session, latest session]; all totals cover bothsource — "massive" (per-second data) or "yahoo" (daily chain data fallback)total_whales — Total whale events foundfailed_fetches — Per-second drill-down requests (one per contract per session) that errored; each is logged to stderrtotal_call_invested — Sum of invested dollars in call whale eventstotal_put_invested — Sum of invested dollars in put whale eventscall_put_ratio — Call invested / put invested (null if no puts)put_call_ratio — Put invested / call invested (null if no calls)whale_call_wall / whale_put_wall — {strike, invested}: the strike with the most whale dollars per side (null if none)open_interest — Positioning from every fetched chain (expiries up to --months), not only whale contracts:
call_oi, put_oi, put_call_oi_ratio (null if no call OI)call_wall / put_wall — {strike, open_interest}: the strike with the most open interest per side, summed across expiries (null if none)directional_call_invested — Call invested where break-even is ≥ 1.5% above spotdirectional_put_invested — Put invested where break-even is ≥ 1.5% below spotdirectional_call_put_ratio — Directional call / directional put invested (null if no directional puts)whales — List of whale events:
timestamp, ticker, type, strike, spot (underlying price at trade time), expiryclose, volume, transactions, invested, break_even, pct_from_spot (break-even distance from spot, %)spot for a trade before the first underlying bar) are nullsummary (present only when --summary is passed) — List of per-ticker aggregates:
ticker, type, strike, expiry, whale_count, total_invested, break_even# Hunt whales for AAPL (latest and previous trading sessions)
uv run python .claude/skills/whale-hunting/scripts/whale_hunting.py AAPL
# With per-ticker summary
uv run python .claude/skills/whale-hunting/scripts/whale_hunting.py HOOD --months 3 --summary
# Looser detection threshold
uv run python .claude/skills/whale-hunting/scripts/whale_hunting.py SPY --sigma-z 2.0
After running the script, present the results as follows.
Header line:
Whale activity for {underlying} on {window_dates[0]} – {window_dates[1]} — source: {source} Call flow: ${total_call_invested:,.0f} | Put flow: ${total_put_invested:,.0f} | C/P ratio: {call_put_ratio:.2f} Directional (≥1.5% B/E from spot) — Calls: ${directional_call_invested:,.0f} | Puts: ${directional_put_invested:,.0f} | C/P ratio: {directional_call_put_ratio:.2f} Open interest — P/C ratio: {open_interest.put_call_oi_ratio:.2f} | Call wall: {open_interest.call_wall.strike} | Put wall: {open_interest.put_wall.strike}
Print — for any null ratio or wall.
When --summary was requested, render the summary array as a table:
| Time (ET) | Ticker | Type | Strike | Expiry | # Events | Total Invested | Break Even |
|---|---|---|---|---|---|---|---|
| {timestamp} | {ticker} | {type} | {strike} | {expiry} | {whale_count} | ${total_invested:,.0f} | {break_even} |
Sort by total_invested descending. For multi-event rows use the time range of first–last event (e.g. 11:46–12:33).
Interpretation guidance:
source: "massive" — High-confidence; per-second block trade data from Massive APIsource: "yahoo" — Fallback; daily-level data from Yahoo chains (Massive API key missing, or the drill-down found no whales). No spot/pct_from_spot, so directional totals are 0directional_call_put_ratio, not call_put_ratio — trades with break-even within 1.5% of spot (deep ITM stock replacement, hedges) carry no directional signaltransactions: 1 — Single block trade; strongest whale signalfailed_fetches > 0 — Totals may be understated; mention the count alongside the header lineMASSIVE_API_KEY environment variable for per-second data. Without it, falls back to Yahoo Finance daily data (source: "yahoo"). An invalid key or a plan without 1-second aggregates is an error, not a fallback.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.
What SKILL.md sets; muted values are Claude Code's defaults
30 skills in this plugin
/calendarReport scheduled US economic events (CPI, NFP, FOMC, GDP, PCE, ISM, jobless claims...) with times in ET, impact, actual/consensus/previous. Use when user asks about the economic calendar, macro events, what data comes out today/this week, or release times. Optional ForexFactory cross-check for the current week./chart-ema-rsiRenders a JPG chart of a ticker's daily candles with EMA 9/20 lines, their golden/death crossovers marked, and an RSI 14 panel with 70/30 bands. Use when the user asks for a chart, candle plot, EMA crossover chart or RSI chart of a stock./earnings-calendarGet upcoming earnings dates with timing (before/after market) and EPS estimates. Use when user asks about earnings dates, earnings calendar, when a company reports, or upcoming earnings./fundamentalsGet fundamental financial data including financials, earnings, and key metrics. Use when user asks about financials, earnings, revenue, profit, balance sheet, income statement, or company fundamentals./greeksCalculate option Greeks (delta, gamma, theta, vega) and implied volatility for specific options. Use when user asks about Greeks, delta, gamma, theta, vega, IV, or option sensitivity analysis./ib-accountGet account summary from Interactive Brokers including cash balance, buying power, and account value. Use when user asks about their account, balance, buying power, or available cash. Requires TWS or IB Gateway running locally./staskh-ib-options-income:whale-huntingfrom ib-options-income
Generated from the plugin's indexed repository (staskh/trading_skills) — no native marketplace selected
npx claudepluginhub p/staskh-ib-options-incomeOther plugins' skills for the same job