Skip to content
Finance
Skill

/economic-calendar-fetcher

Fetch upcoming economic events and data releases using FMP API. Retrieve scheduled central bank decisions, employment reports, inflation data, GDP releases, and other market-moving economic indicators for specified date ranges (default: next 7 days). The script outputs raw JSON

BOOST
From plugin
claude-trading-skills
3k74 skills2 agents2 commands
Install
$ npx -y skills add tradermonty/claude-trading-skills --skill economic-calendar-fetcher --agent claude-code

How it fires

How this skill gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.
  • Slash command/economic-calendar-fetcher

Context preview

The summary Claude sees to decide when to auto-load this skill.

Fetch upcoming economic events and data releases using FMP API. Retrieve scheduled central bank decisions, employment reports, inflation data, GDP releases, and other market-moving economic indicators for specified date ranges (default: next 7 days). The script outputs raw JSON

SKILL.md

economic-calendar-fetcher.SKILL.md
name: economic-calendar-fetcher
description: "Fetch upcoming economic events and data releases using FMP API. Retrieve scheduled central bank decisions, employment reports, inflation data, GDP releases, and other market-moving economic indicators for specified date ranges (default: next 7 days). The script outputs raw JSON or text; the assistant filters, assesses impact, and generates the Markdown report."

Economic Calendar Fetcher

Overview

Retrieve upcoming economic events and data releases from the Financial Modeling Prep (FMP) Economic Calendar API. This skill fetches scheduled economic indicators including central bank monetary policy decisions, employment reports, inflation data (CPI/PPI), GDP releases, retail sales, manufacturing data, and other market-moving events that impact financial markets.

The skill uses a Python script to query the FMP API and returns raw JSON or text output. The assistant then filters events, assesses market impact, and generates a chronological Markdown report for each scheduled event. No files are generated automatically.

**Key Capabilities:**

  • Fetch economic events for specified date ranges (max 90 days)
  • Support flexible API key provision (environment variable or CLI argument)
  • Filter by impact level, country, or event type (filtering performed by the assistant)
  • Present filtered results as structured Markdown reports with impact analysis (assistant-generated, not script-generated)
  • Default to next 7 days for quick market outlook

**Data Source:**

  • FMP Economic Calendar API: `https://financialmodelingprep.com/stable/economic-calendar` (singular "economic")
  • Covers major economies: US, EU, UK, Japan, China, Canada, Australia
  • Event types: Central bank decisions, employment, inflation, GDP, trade, housing, surveys
  • Note: the legacy `api/v3/economic_calendar` endpoint was fully retired by FMP on 2025-08-31 and now returns `403 Legacy Endpoint` — do not use it, including as a fallback.

When to Use This Skill

Use this skill when the user requests:

1. **Economic Calendar Queries:**

  • "What economic events are coming up this week?"
  • "Show me the economic calendar for the next two weeks"
  • "When is the next FOMC meeting?"
  • "What major economic data is being released next month?"

2. **Market Event Planning:**

  • "What should I watch for in the markets this week?"
  • "Are there any high-impact economic releases coming?"
  • "When is the next jobs report / CPI release / GDP report?"

3. **Specific Date Range Requests:**

  • "Get economic events from January 1 to January 31"
  • "What's on the economic calendar for Q1 2025?"

4. **Country-Specific Queries:**

  • "Show me US economic data releases next week"
  • "What ECB events are scheduled?"
  • "When is Japan releasing their inflation data?"

**DO NOT use this skill for:**

  • Past economic events (use market-news-analyst for historical analysis)
  • Corporate earnings calendars (this skill excludes earnings)
  • Real-time market data or live quotes
  • Technical analysis or chart interpretation

Prerequisites

  • **FMP API Key** (required): Sign up at https://financialmodelingprep.com for a free key (250 requests/day). Set via `FMP_API_KEY` environment variable or pass `--api-key` to the script.
  • **Python 3.10+**: Required to run `skills/economic-calendar-fetcher/scripts/get_economic_calendar.py`.
  • **No third-party packages**: The script uses only the Python standard library.

Workflow

Follow these steps to fetch and analyze the economic calendar:

Step 1: Obtain FMP API Key

**Check for API key availability (in priority order):**

1. **Recommended:** Check if `FMP_API_KEY` environment variable is set — this keeps the key out of session logs 2. **Acceptable:** Use `--api-key` CLI argument for one-off runs 3. **Not recommended:** Asking the user to paste the key into chat — session logs may retain it 4. If user doesn't have an API key, provide instructions:

  • Visit https://financialmodelingprep.com
  • Sign up for free account (250 requests/day limit)
  • Navigate to API dashboard to obtain key

**Example user interaction:**

User: "Show me economic events for next week"
Assistant: "I'll fetch the economic calendar. I'll use the FMP_API_KEY environment variable if it's set. Otherwise, please pass the key via --api-key when running the script."

Step 2: Determine Date Range

**Set appropriate date range based on user request:**

**Default (no specific dates):** Today + 7 days **User specifies period:** Use exact dates (validate format: YYYY-MM-DD) **Maximum range:** 90 days (FMP API limitation)

**Examples:**

  • "Next week" → Today to +7 days
  • "Next two weeks" → Today to +14 days
  • "January 2025" → 2025-01-01 to 2025-01-31
  • "Q1 2025" → 2025-01-01 to 2025-03-31

**Validate date range:**

  • Ensure start date ≤ end date
  • Ensure range ≤ 90 days
  • Warn if querying past dates

Step 3: Execute API Fetch Script

**Run the get_economic_calendar.py script with appropriate parameters:**

**Basic usage (default 7 days):**

python3 skills/economic-calendar-fetcher/scripts/get_economic_calendar.py --api-key YOUR_KEY

**With specific date range:**

python3 skills/economic-calendar-fetcher/scripts/get_economic_calendar.py \
  --from 2025-01-01 \
  --to 2025-01-31 \
  --api-key YOUR_KEY \
  --format json

**Using environment variable (no --api-key needed):**

export FMP_API_KEY=your_key_here
python3 skills/economic-calendar-fetcher/scripts/get_economic_calendar.py \
  --from 2025-01-01 \
  --to 2025-01-07

**Script parameters:**

  • `--from`: Start date (YYYY-MM-DD) - default: today
  • `--to`: End date (YYYY-MM-DD) - default: today + 7 days
  • `--api-key`: FMP API key (optional if FMP_API_KEY env var set)
  • `--format`: Output format (json or text) - default: json
  • `--output`: Output file path (optional, default: stdout)

**Handle errors and empty results:**

  • Invalid API key → Ask user to verify key
  • Rate limit excee
Read more
Ships withclaude-trading-skills

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.

Get the whole plugin

Other skills on claude-trading-skills.