xonevn-ai/xone-trading-skills/economic-calendar-fetcher
Claude Code and agent skill by xonevn-ai/xone-trading-skills
- community
Checking that the SKILL.md file is still in the repository.
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.
Install
npx vskill@latest install xonevn-ai/xone-trading-skills/economic-calendar-fetcherSKILL.md
The same SKILL.md was published earlier as xonevn-ai/xone-trading-skills/economic-calendar-fetcher.
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/api/v3/economic_calendar - Covers major economies: US, EU, UK, Japan, China, Canada, Australia
- Event types: Central bank decisions, employment, inflation, GDP, trade, housing, surveys
When to Use This Skill
Use this skill when the user requests:
- 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?"
- 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?"
- Specific Date Range Requests:
- "Get economic events from January 1 to January 31"
- "What's on the economic calendar for Q1 2025?"
- 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_KEYenvironment variable or pass--api-keyto 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):
- Recommended: Check if
FMP_API_KEYenvironment variable is set — this keeps the key out of session logs - Acceptable: Use
--api-keyCLI argument for one-off runs - Not recommended: Asking the user to paste the key into chat — session logs may retain it
- 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:
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):
With specific date range:
Using environment variable (no --api-key needed):
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:
- Invalid API key → Ask user to verify key
- Rate limit exceeded (429) → Suggest waiting or upgrading FMP tier
- Network errors → Check your connection and re-run the script
- Invalid date format → Provide correct format example
Step 4: Parse and Filter Events
Process the JSON response from the script:
- Parse event data: Extract all events from API response
- Apply user filters if specified:
- Impact level: "High", "Medium", "Low"
- Country: "US", "EU", "JP", "CN", etc.
- Event type: FOMC, CPI, Employment, GDP, etc.
- Currency: USD, EUR, JPY, etc.
Filter examples:
- "Show only high-impact events" → Filter impact == "High"
- "US events only" → Filter country == "US"
- "Central bank decisions" → Search event name for "Rate", "Policy", "FOMC", "ECB", "BOJ"
Event data structure:
Step 5: Assess Market Impact
Evaluate the market significance of each event:
Impact Level Classification (from FMP):
- High Impact: Major market-moving events
- FOMC rate decisions, ECB/BOJ policy meetings
- Non-Farm Payrolls (NFP), CPI, GDP
- Market typically shows 0.5-2%+ intraday volatility
- Medium Impact: Significant but less volatile
- Retail Sales, Industrial Production
- PMI surveys, Consumer Confidence
- Housing data, Durable Goods Orders
- Low Impact: Minor indicators
- Weekly jobless claims (unless extreme)
- Regional manufacturing surveys
- Minor auction results
Additional Context Factors:
- Current Market Sensitivity:
- High inflation environment → CPI/PPI elevated importance
- Recession fears → Employment data more critical
- Rate cut speculation → Central bank meetings crucial
- Surprise Potential:
- Compare estimate vs. previous reading
- Large expected changes = higher attention
- Consensus uncertainty = higher impact potential
- Event Clustering:
- Multiple related events same day = amplified impact
- Example: CPI + Retail Sales + Fed speech = Very High impact day
- Forward Significance:
- Does this event influence upcoming central bank decisions?
- Is this a preliminary or final reading?
- Will this data be revised?
Step 6: Generate Output Report
Responsibility: The script outputs raw JSON or text. This step is performed by the assistant using the script's output. No Markdown files are generated automatically; results are displayed in chat and can be saved toreports/on request.
Create structured markdown report with the following sections:
Report Header:
Event Listing (Chronological):
For each event, provide:
Example Event Entry:
Summary Section:
Add analytical summary at the end:
Filtering Notes:
If user requested specific filters, note at top:
Output:
- Results are displayed in chat. No files are generated automatically.
- To save raw JSON/text data: use
--output reports/economic_calendar_[START]_to_[END].jsonwhen running the script. - To save the Markdown report: ask the assistant to write it to
reports/after generating it in chat.
Assistant-Generated Report Format
Markdown structure requirements:
- Chronological ordering: Events sorted by date and time (earliest first)
- Impact level indicators: Use (High Impact), (Medium Impact), (Low Impact) labels
- Time zone clarity: Always specify UTC; ET/PT conversions are performed by the assistant based on US DST calendar
- Data completeness: Include all available fields (previous, estimate, actual if past)
- Null handling: Display "N/A" or "No estimate" for null values
- Impact assessment: Every high/medium impact event must have market implications analysis
Table format option (for dense listings):
Language: All reports in English
Resources
Python Script:
skills/economic-calendar-fetcher/scripts/get_economic_calendar.py: Main API fetch script with CLI interface
Reference Documentation:
references/fmp_api_documentation.md: Complete FMP Economic Calendar API reference- Authentication and API key management
- Request parameters and date formats
- Response field definitions
- Rate limits and error handling
- Best practices for caching and efficiency
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/economic-calendar-fetcher/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/xonevn-ai/xone-trading-skills/economic-calendar-fetcher)