Requirements
- Target platform
- OpenClaw
- Install method
- Manual import
- Extraction
- Extract archive
- Prerequisites
- OpenClaw
- Primary doc
- SKILL.md
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.
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.
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.
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
This skill requires a Financial Modeling Prep API key. Get Free API Key: Visit: https://site.financialmodelingprep.com/developer/docs Sign up for free account Receive API key immediately 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).
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.
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
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): Validates API key and date parameters Calls FMP Earnings Calendar API for date range Fetches company profiles (market cap, sector, industry) Filters companies with market cap >$2B Normalizes timing (BMO/AMC/TAS) Sorts by date โ timing โ market cap (descending) 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
Once earnings data is retrieved (JSON format), process and organize it: 5.1 Parse JSON Data Load JSON data from script output: import json earnings_data = json.loads(earnings_json_string) Or if saved to file: with open('earnings_data.json', 'r') as f: earnings_data = json.load(f) 5.2 Verify Data Structure Confirm data includes required fields: โ symbol โ companyName โ date โ timing (BMO/AMC/TAS) โ marketCap โ sector 5.3 Group by Date Group all earnings announcements by date: Sunday, [Full Date] (if applicable) Monday, [Full Date] Tuesday, [Full Date] Wednesday, [Full Date] Thursday, [Full Date] Friday, [Full Date] Saturday, [Full Date] (if applicable) 5.4 Sub-Group by Timing Within each date, create three sub-sections: Before Market Open (BMO) After Market Close (AMC) Time Not Announced (TAS) Data is already sorted by timing from the script, so maintain this order. 5.5 Within Each Timing Group Companies are already sorted by market cap descending (script output): Mega-cap (>$200B) first Large-cap ($10B-$200B) second Mid-cap ($2B-$10B) third This prioritization ensures the most market-moving companies are listed first. 5.6 Calculate Summary Statistics Compute: Total Companies: Count of all companies in dataset Mega/Large Cap Count: Count where marketCap >= $10B Mid Cap Count: Count where marketCap between $2B and $10B Peak Day: Day of week with most earnings announcements Sector Distribution: Count by sector (Technology, Healthcare, Financial, etc.) Highest Market Cap Companies: Top 5 companies by market cap
Before finalizing the report, verify: Data Quality Checks: โ All dates fall within the target week (next 7 days) โ Market cap values are present for all companies โ Each company has timing specified (BMO/AMC/TAS) โ Companies are sorted by market cap within each section โ Summary statistics are accurate โ Report generation date is clearly stated โ EPS and revenue estimates included where available Completeness Checks: โ All days of the target week are included (even if no earnings) โ Major known companies are not missing (verify against external sources if needed) โ Sector information is included where available โ Timing reference section is present โ Data sources are credited (FMP API) Format Checks: โ Markdown tables are properly formatted โ Dates are consistently formatted โ Market caps use consistent units (B for billions, T for trillions) โ All sections follow template structure โ No placeholder text ([PLACEHOLDER]) remains โ EPS and revenue estimates properly formatted
User Request: "Get next week's earnings calendar" Workflow: Get current date (e.g., November 2, 2025) Calculate target week (November 3-9, 2025) Load FMP API guide Detect/request API key Fetch earnings data: python scripts/fetch_earnings_fmp.py 2025-11-03 2025-11-09 > earnings_data.json Generate markdown report: python scripts/generate_report.py earnings_data.json earnings_calendar_2025-11-02.md Notify user with summary Complete One-Liner: python scripts/fetch_earnings_fmp.py 2025-11-03 2025-11-09 > earnings_data.json && \ python scripts/generate_report.py earnings_data.json earnings_calendar_2025-11-02.md
User Request: "What earnings are coming out Monday?" Workflow: Get current date and identify next Monday (e.g., November 4, 2025) Fetch full week data (same as Use Case 1) Generate full report but highlight Monday section Provide verbal summary of Monday's earnings with emphasis
User Request: "Show me earnings for companies over $100B market cap next week" Workflow: Fetch full earnings data (script already filters >$2B) Process and organize as normal When generating report, add a "Mega-Cap Focus" section at top Filter tables to show only companies >$100B Note: Still include full data in appendix for reference
User Request: "What tech companies have earnings next week?" Workflow: Fetch full earnings data Process and organize as normal Filter results by sector = "Technology" Generate report with focus on technology sector Note: Template structure remains the same; content is filtered
Solutions: Verify API key is correct (copy-paste carefully) Check if API key is active (login to FMP dashboard) Ensure no extra spaces before/after key Try generating new API key from FMP dashboard
Solutions: Verify date range is in future (not past dates) Check date format is YYYY-MM-DD Try wider date range (e.g., 14 days instead of 7) Verify companies actually have announced earnings dates for that week
Solutions: Company may not have announced earnings date yet Some companies announce dates very late (1-2 days before) Cross-reference with company investor relations website Market cap may have dropped below $2B threshold
Solutions: Free tier: 250 calls/day Each weekly report uses ~3-5 API calls Check if other tools/scripts are using same API key Wait 24 hours for rate limit reset Consider upgrading to paid tier if needed frequently
Solutions: Verify Python 3 is installed: python3 --version Install requests library: pip install requests Check script has execute permissions: chmod +x fetch_earnings_fmp.py Run with python3 explicitly: python3 fetch_earnings_fmp.py ...
โ Always get current date first before any data retrieval โ Use FMP API as primary source for reliability โ Store API key in environment variable for CLI usage โ Sort by market cap to prioritize high-impact companies โ Group by date then timing for logical organization โ Include summary statistics for quick overview โ Credit data sources in report footer โ Use clean markdown tables for readability โ Provide timing reference section for clarity โ Note data freshness and potential for changes โ Include EPS and revenue estimates when available
โ Don't assume "next week" without calculating from current date โ Don't omit timing information (BMO/AMC/TAS) โ Don't mix date formats within report (stay consistent) โ Don't include micro/small-cap unless specifically requested โ Don't forget to sort by market cap within sections โ Don't share API key in conversations or reports โ Don't include earnings from current week or past dates โ Don't generate report without quality assurance checks โ Don't commit API keys to version control
Important Reminders: โ Use free tier API keys for testing โ Rotate keys regularly โ Don't share conversations containing API keys โ Set API key as environment variable for CLI โ Keys provided in chat are session-only (forgotten after session ends) โ Never commit API keys to Git repositories โ Never use production API keys with sensitive data access Best Practice: For Claude Code (CLI), always use environment variable: # Add to ~/.zshrc or ~/.bashrc export FMP_API_KEY="your-key-here" For Claude Web, understand that: API key entered in chat is temporary Stored only in conversation context Not saved to disk Forgotten when session ends
FMP API: Main Documentation: https://site.financialmodelingprep.com/developer/docs Get API Key: https://site.financialmodelingprep.com/developer/docs Earnings Calendar API: https://site.financialmodelingprep.com/developer/docs/earnings-calendar-api Company Profile API: https://site.financialmodelingprep.com/developer/docs/companies-key-metrics-api Pricing/Rate Limits: https://site.financialmodelingprep.com/developer/docs/pricing Supplementary Sources (for verification): Seeking Alpha: https://seekingalpha.com/earnings/earnings-calendar Yahoo Finance: https://finance.yahoo.com/calendar/earnings MarketWatch: https://www.marketwatch.com/tools/earnings-calendar Skill Resources: FMP API Guide: references/fmp_api_guide.md Python Script: scripts/fetch_earnings_fmp.py Report Template: assets/earnings_report_template.md
This skill provides a reliable, API-driven approach to generating weekly earnings calendars for US stocks. By using FMP API, it ensures structured, accurate data with additional insights like EPS/revenue estimates. The multi-environment support makes it flexible for CLI, Desktop, and Web usage, while the fallback mode ensures functionality even without API access. Key Workflow: Date Calculation โ API Key Setup โ API Data Retrieval โ Processing โ Report Generation โ QA โ Delivery Output: Clean, organized markdown report with earnings grouped by date/timing/market cap, including summary statistics and trading considerations.
Workflow acceleration for inboxes, docs, calendars, planning, and execution loops.
Largest current source with strong distribution and engagement signals.