Scans option chains for institutional-sized trades using a two-pass approach: first it flags anomalous daily volume across the chain via Yahoo Finance, then drills down with per-second bars from the Massive API to pinpoint exact block trades. You get JSON with timestamps, invested dollars, and call/put flow ratios. Requires a Massive API key for the good stuff, otherwise it falls back to daily data only. Useful when you need to see where the smart money moved today rather than just reading about unusual activity in a newsletter tomorrow. The modified Z-score detection on per-second data is solid for catching single-transaction blocks, which tend to be the cleanest institutional signals.

GitHub stars
248
last updated
Jun 11, 2026

Install

$ npx -y skills add staskh/trading_skills --skill whale-hunting --agent claude-code

Installs into .claude/skills of the current project.

Files

Whale Hunting

Scans option chains for a given underlying to identify institutional-sized trades using a two-step approach:

  1. Crude scan (Yahoo Finance) — finds contracts with anomalous daily investment vs the rest of the chain.
  2. Precise drill-down (Massive API) — fetches per-second bars for each candidate and flags seconds with outlier dollar invested.

Instructions

Note: If uv is not installed or pyproject.toml is not found, replace uv run python with python in all commands below.

uv run python .claude/skills/whale-hunting/scripts/whale_hunting.py SYMBOL [--months N] [--date YYYY-MM-DD] [--sigma F] [--sigma-z F] [--summary]

Arguments

  • SYMBOL — Underlying ticker (e.g. AAPL, NVDA, SPY)
  • --months — Max months until option expiration to consider (default: 2)
  • --date — Trading date to analyze in YYYY-MM-DD format (default: latest trading day)
  • --sigma — Std-deviation multiplier for crude outlier threshold (default: 3.0)
  • --sigma-z — Modified Z-Score threshold for per-second small-sample detection (default: 3.5)
  • --summary — Also compute per-ticker summary and include it in the JSON output

Output

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
1binance avatarsquare-postbinance/binance-skills-hubUse when the user wants to publish new content to Binance Square — short text, multi-image posts (up to 4), long-form articles with an optional cover, or videos38.4Kskills.sh installs
2fluxa-agent-payment avatarfluxa-agent-walletfluxa-agent-payment/fluxa-ai-wallet-mcpAI agent co-wallet enabling secure payments, USDC transfers, x402 API payments, and payment-enabled skills.8.9Kskills.sh installs
3tradermonty avatarmacro-regime-detectortradermonty/claude-trading-skillsDetect structural macro regime transitions (1-2 year horizon) using cross-asset ratio analysis. Analyze RSP/SPY concentration, yield curve, credit conditions, s3.9Kskills.sh installs
4tradermonty avatarsector-analysttradermonty/claude-trading-skillsThis skill should be used when analyzing sector rotation patterns and market cycle positioning. It fetches sector uptrend data from CSV (no API key required) an3.7Kskills.sh installs
5tradermonty avatarmarket-breadth-analyzertradermonty/claude-trading-skillsQuantifies market breadth health using TraderMonty's public CSV data. Generates a 0-100 composite score across 6 components (100 = healthy). No API key required3.7Kskills.sh installs
6tradermonty avataredge-strategy-designertradermonty/claude-trading-skillsConvert abstract edge concepts into strategy draft variants and optional exportable ticket YAMLs for edge-candidate-agent export/validation.3.6Kskills.sh installs