staskh avatar

Earnings Calendar

A straightforward wrapper around yfinance for pulling earnings dates, timing, and EPS estimates. You pass in one or more ticker symbols and get back when they're reporting next, whether it's before or after the bell, and what analysts expect for EPS. The multi-symbol output sorts by date, which is actually useful if you're managing a portfolio and want to see which positions have earnings risk coming up first. It's basic fundamental data, nothing fancy, but it beats manually looking up earnings calendars when you need to check if your holdings are about to report. Works well for planning around volatility or just staying aware of what's on deck.

GitHub stars
248
last updated
Jun 11, 2026

Install

$ npx -y skills add staskh/trading_skills --skill earnings-calendar --agent claude-code

Installs into .claude/skills of the current project.

Files

Earnings Calendar

Retrieve upcoming earnings dates for stocks.

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 scripts/earnings.py SYMBOLS

Arguments

  • SYMBOLS - Ticker symbol or comma-separated list (e.g., AAPL or AAPL,MSFT,GOOGL,NVDA)

Output

Single symbol returns:

  • symbol - Ticker symbol
  • earnings_date - Next earnings date (YYYY-MM-DD)
  • timing - "BMO" (Before Market Open), "AMC" (After Market Close), or null
  • eps_estimate - Consensus EPS estimate, or null if unavailable

Multiple symbols returns:

  • results - Array of earnings info, sorted by date (soonest first)

Examples

# Single symbol
uv run python scripts/earnings.py NVDA

# Multiple symbols (sorted by date)
uv run python scripts/earnings.py AAPL,MSFT,GOOGL,NVDA,META

# Portfolio earnings calendar
uv run python scripts/earnings.py CAT,GOOG,HOOD,IWM,NVDA,PLTR,QQQ,UNH

Use Cases

  • Check when positions have upcoming earnings risk
  • Plan trades around earnings announcements
  • Build an earnings calendar for watchlist

Dependencies

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
1staskh avatarib-trailing-stopstaskh/trading_skillsServer-side trailing stop management for stocks and naked LEAPS in IB. Places native TRAIL orders that auto-ratchet the stop as price climbs. Dry-run by default0skills.sh installs
2staskh avatarwhale-huntingstaskh/trading_skillsDetect institutional whale activity in options for a given underlying. Use when the user asks about unusual options activity, large block trades, whale trades, 0skills.sh installs
3binance 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
4fluxa-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
5tradermonty 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
6tradermonty 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