whale-hunting
БесплатноЗапускает вложенные скриптыНе проверенDetect institutional whale activity in options for a given underlying. Use when the user asks about unusual options activity, large block trades, whale…
от staskh★ 427 звёзд на GitHubОб этом скилле
Whale Hunting
Scans option chains for a given underlying to identify institutional-sized trades using a two-step approach:
- Crude scan (Yahoo Finance) — finds contracts with anomalous daily investment vs the rest of the chain.
- Precise drill-down (Massive API) — fetches per-second bars for each candidate and flags seconds with outlier dollar invested. Minimum whale order is $50k per transaction; in thin contracts (fewer than 10 traded seconds in the day) any second averaging more than $50k per transaction is a whale.
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.
Instructions
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]
Arguments
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 output
Output
Returns 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, %)- Missing values (e.g.
spotfor a trade before the first underlying bar) arenull
summary(present only when--summaryis passed) — List of per-ticker aggregates:ticker,type,strike,expiry,whale_count,total_invested,break_even
Examples
# 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
Reporting
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; pe
Установить whale-hunting в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл whale-hunting?
Detect institutional whale activity in options for a given underlying. Use when the user asks about unusual options activity, large block trades, whale trades, or institutional options flow for a specific symbol.
Как установить скилл whale-hunting?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл whale-hunting запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic