Skip to content
Finance
Skill

/earnings-calendar

This skill retrieves upcoming earnings announcements for US stocks using the Financial Modeling Prep (FMP) API. Use this when the user requests earnings calendar data, wants to know which companies are reporting earnings in the upcoming week, or needs a weekly earnings review.

From plugin
claude-trading-skills
6.9k74 skills2 agents2 commands

Claude Code

$ npx -y skills add tradermonty/claude-trading-skills --skill earnings-calendar --agent claude-code

SKILL.md

earnings-calendar.SKILL.md
name: earnings-calendar
description: This skill retrieves upcoming earnings announcements for US stocks using the Financial Modeling Prep (FMP) API. Use this when the user requests earnings calendar data, wants to know which companies are reporting earnings in the upcoming week, or needs a weekly earnings review. The skill focuses on mid-cap and above companies (over $2B market cap) that have significant market impact, organizing the data by date and timing in a clean markdown table format. Supports multiple environments (CLI, Desktop, Web) with flexible API key management.

Earnings Calendar

Overview

This skill retrieves upcoming earnings announcements for US stocks using the Financial Modeling Prep (FMP) API. It focuses on companies with significant market capitalization (mid-cap and above, over $2B) that are likely to impact market movements. The skill generates organized markdown reports showing which companies are reporting earnings over the next week, grouped by date and timing (before market open, after market close, or time not announced).

**Key Features**:

  • Uses FMP API for reliable, structured earnings data
  • Filters by market cap (>$2B) to focus on market-moving companies
  • Includes EPS and revenue estimates
  • Multi-environment support (CLI, Desktop, Web)
  • Flexible API key management
  • Organized by date, timing, and market cap

Prerequisites

FMP API Key

This skill requires a Financial Modeling Prep API key.

**Get Free API Key**: 1. Visit: https://site.financialmodelingprep.com/developer/docs 2. Sign up for free account 3. Receive API key immediately 4. Free tier: 250 API calls/day (sufficient for weekly earnings calendar)

**API Key Setup by Environment**:

**Claude Code (CLI)**:

export FMP_API_KEY="your-api-key-here"

**Claude Desktop**: Set environment variable in system or configure MCP server.

**Claude Web**: API key will be requested during skill execution (stored only for current session).

Core Workflow

Step 1: Get Current Date and Calculate Target Week

**CRITICAL**: Always start by obtaining the accurate current date.

Retrieve the current date and time:

  • Use system date/time to get today's date
  • Note: "Today's date" is provided in the environment (<env> tag)
  • Calculate the target week: Next 7 days from current date

**Date Range Calculation**:

Current Date: [e.g., November 2, 2025]
Target Week Start: [Current Date + 1 day, e.g., November 3, 2025]
Target Week End: [Current Date + 7 days, e.g., November 9, 2025]

**Why This Matters**:

  • Earnings calendars are time-sensitive
  • "Next week" must be calculated from the actual current date
  • Provides accurate date range for API request

**Format dates in YYYY-MM-DD** for API compatibility.

Step 2: Load FMP API Guide

Before retrieving data, load the comprehensive FMP API guide:

Read: references/fmp_api_guide.md

This guide contains:

  • FMP API endpoint structure and parameters
  • Authentication requirements
  • Market cap filtering strategy (via Company Profile API)
  • Earnings timing conventions (BMO, AMC, TAS)
  • Response format and field descriptions
  • Error handling strategies
  • Best practices and optimization tips

Step 3: API Key Detection and Configuration

Detect API key availability based on environment.

**Multi-Environment API Key Detection**: Read `references/api_key_setup_flow.md` when no `FMP_API_KEY` environment variable is found. It holds the environment check, the AskUserQuestion prompt, the free-key instructions and the session-only key handling.

Step 4: Retrieve Earnings Data via FMP API

Use the Python script to fetch earnings data from FMP API.

**Script Location**:

scripts/fetch_earnings_fmp.py

**Execution**:

**Option A: With Environment Variable (CLI)**:

python scripts/fetch_earnings_fmp.py 2025-11-03 2025-11-09

**Option B: With Session API Key (Desktop/Web)**:

python scripts/fetch_earnings_fmp.py 2025-11-03 2025-11-09 "${API_KEY}"

**Script Workflow** (automatic): 1. Validates API key and date parameters 2. Calls FMP Earnings Calendar API for date range 3. Fetches company profiles (market cap, sector, industry) 4. Filters companies with market cap >$2B 5. Normalizes timing (BMO/AMC/TAS) 6. Sorts by date → timing → market cap (descending) 7. Outputs JSON to stdout

**Expected Output Format** (JSON):

[
  {
    "symbol": "AAPL",
    "companyName": "Apple Inc.",
    "date": "2025-11-04",
    "timing": "AMC",
    "marketCap": 3000000000000,
    "marketCapFormatted": "$3.0T",
    "sector": "Technology",
    "industry": "Consumer Electronics",
    "epsEstimated": 1.54,
    "revenueEstimated": 123400000000,
    "fiscalDateEnding": "2025-09-30",
    "exchange": "NASDAQ"
  },
  ...
]

**Save to file** (recommended for use with report generator):

python scripts/fetch_earnings_fmp.py 2025-11-03 2025-11-09 "${API_KEY}" > earnings_data.json

Or capture to variable:

earnings_data=$(python scripts/fetch_earnings_fmp.py 2025-11-03 2025-11-09 "${API_KEY}")

**Error Handling**:

If script returns errors:

  • **401 Unauthorized**: Invalid API key → Verify key or re-enter
  • **429 Rate Limit**: Exceeded 250 calls/day → Wait or upgrade plan
  • **Empty Result**: No earnings in date range → Expand date range or note in report
  • **Connection Error**: Network issue → Retry or use cached data if available

Step 5: Process and Organize Data

Once earnings data is retrieved (JSON format), process and organize it: Read `references/data_processing_steps.md` when parsing and organizing the fetched earnings JSON (steps 5.1 to 5.6).

Step 6: Generate Markdown Report

Use the report generation script to create a formatted markdown report from the JSON data.

**Script Location**:

scripts/generate_report.py

**Execution**:

**Option A: Output to stdout**:

python scripts/generate_report.py earnings_data.json

**Option B: Save to file**:

python scripts/generate_
Read more
@tradermonty
Ships withclaude-trading-skills

Data handling: Privacy policy · Security policy Claude Trading Skills started as a personal project to use AI to improve my own trading process. Claude Trading Skills is a Claude Skills-based trading workflow toolkit for time-constrained individual investors.

6.9k74 skills2 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
6.9k
Star history of tradermonty/claude-trading-skills on GitHub, a chart by star-history.com

Other skills on claude-trading-skills.

More skills from other plugins.

ccxt-cli

ccxt-cli

CCXT command-line interface (ccxt-cli) for interacting with 100+ cryptocurrency exchanges directly from the terminal — no code…

ccxt9d45k
@ccxt@ccxtInstall Skill

Questions about earnings-calendar.

Which coding agents can use earnings-calendar?
earnings-calendar installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.