earnings-calendar by tradermonty/claude-trading-skills
npx skills add https://github.com/tradermonty/claude-trading-skills --skill earnings-calendar此技能使用 Financial Modeling Prep (FMP) API 检索美国股票的即将到来的收益公告。它专注于可能影响市场走势的具有显著市值(中盘及以上,超过 20 亿美元)的公司。该技能生成有组织的 Markdown 报告,显示接下来一周哪些公司将发布财报,按日期和时间(市场开盘前、市场收盘后或时间未公布)分组。
主要功能:
此技能需要一个 Financial Modeling Prep API 密钥。
获取免费 API 密钥:
按环境设置 API 密钥:
Claude Code (CLI):
export FMP_API_KEY="your-api-key-here"
Claude Desktop:在系统中设置环境变量或配置 MCP 服务器。
Claude Web:API 密钥将在技能执行期间请求(仅存储在当前会话中)。
:始终从获取准确的当前日期开始。
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
检索当前日期和时间:
日期范围计算:
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]
为何重要:
将日期格式化为 YYYY-MM-DD 以确保 API 兼容性。
在检索数据之前,加载全面的 FMP API 指南:
Read: references/fmp_api_guide.md
本指南包含:
根据环境检测 API 密钥的可用性。
多环境 API 密钥检测:
if [ ! -z "$FMP_API_KEY" ]; then
echo "✓ API key found in environment"
API_KEY=$FMP_API_KEY
fi
如果设置了环境变量,则继续步骤 4。
如果未找到环境变量,使用 AskUserQuestion 工具:
问题配置:
Question: "This skill requires an FMP API key to retrieve earnings data. Do you have an FMP API key?"
Header: "API Key"
Options:
1. "Yes, I'll provide it now" → Proceed to 3.3
2. "No, get free key" → Show instructions (3.2.1)
3. "Skip API, use manual entry" → Jump to Step 8 (fallback mode)
3.2.1 如果用户选择 "No, get free key":
提供说明:
To get a free FMP API key:
1. Visit: https://site.financialmodelingprep.com/developer/docs
2. Click "Get Free API Key" or "Sign Up"
3. Create account (email + password)
4. Receive API key immediately
5. Free tier includes 250 API calls/day (sufficient for daily use)
Once you have your API key, please select "Yes, I'll provide it now" to continue.
如果用户有 API 密钥,请求输入:
提示:
Please paste your FMP API key below:
(Your API key will only be stored for this conversation session and will be forgotten when the session ends. For regular use, consider setting the FMP_API_KEY environment variable.)
将会话变量中的 API 密钥存储:
API_KEY = [user_input]
向用户确认:
✓ API key received and stored for this session.
Security Note:
- API key is stored only in current conversation context
- Not saved to disk or persistent storage
- Will be forgotten when session ends
- Do not share this conversation if it contains your API key
Proceeding with earnings data retrieval...
使用 Python 脚本从 FMP API 获取收益数据。
脚本位置:
scripts/fetch_earnings_fmp.py
执行:
选项 A:使用环境变量(CLI):
python scripts/fetch_earnings_fmp.py 2025-11-03 2025-11-09
选项 B:使用会话 API 密钥(桌面端/网页端):
python scripts/fetch_earnings_fmp.py 2025-11-03 2025-11-09 "${API_KEY}"
脚本工作流程(自动):
预期输出格式(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"
},
...
]
保存到文件(推荐用于报告生成器):
python scripts/fetch_earnings_fmp.py 2025-11-03 2025-11-09 "${API_KEY}" > earnings_data.json
或捕获到变量:
earnings_data=$(python scripts/fetch_earnings_fmp.py 2025-11-03 2025-11-09 "${API_KEY}")
错误处理:
如果脚本返回错误:
一旦检索到收益数据(JSON 格式),处理并组织它:
从脚本输出加载 JSON 数据:
import json
earnings_data = json.loads(earnings_json_string)
或者如果保存到文件:
with open('earnings_data.json', 'r') as f:
earnings_data = json.load(f)
确认数据包含必填字段:
按日期对所有收益公告进行分组:
在每个日期内,创建三个子部分:
数据已按脚本中的时间排序,因此保持此顺序。
公司已按市值降序排序(脚本输出):
这种优先级确保了对市场影响最大的公司首先列出。
计算:
使用报告生成脚本从 JSON 数据创建格式化的 Markdown 报告。
脚本位置:
scripts/generate_report.py
执行:
选项 A:输出到标准输出:
python scripts/generate_report.py earnings_data.json
选项 B:保存到文件:
python scripts/generate_report.py earnings_data.json earnings_calendar_2025-11-02.md
脚本功能:
脚本自动处理所有格式,包括:
报告结构:
# Upcoming Earnings Calendar - Week of [START_DATE] to [END_DATE]
**Report Generated**: [Current Date]
**Data Source**: FMP API (Mid-cap and above, >$2B market cap)
**Coverage Period**: Next 7 days
**Total Companies**: [COUNT]
---
## Executive Summary
- **Total Companies Reporting**: [TOTAL_COUNT]
- **Mega/Large Cap (>$10B)**: [LARGE_CAP_COUNT]
- **Mid Cap ($2B-$10B)**: [MID_CAP_COUNT]
- **Peak Day**: [DAY_WITH_MOST_EARNINGS]
---
## [Day Name], [Full Date]
### Before Market Open (BMO)
| Ticker | Company | Market Cap | Sector | EPS Est. | Revenue Est. |
|--------|---------|------------|--------|----------|--------------|
| [TICKER] | [COMPANY] | [MCAP] | [SECTOR] | [EPS] | [REV] |
### After Market Close (AMC)
| Ticker | Company | Market Cap | Sector | EPS Est. | Revenue Est. |
|--------|---------|------------|--------|----------|--------------|
| [TICKER] | [COMPANY] | [MCAP] | [SECTOR] | [EPS] | [REV] |
### Time Not Announced (TAS)
| Ticker | Company | Market Cap | Sector | EPS Est. | Revenue Est. |
|--------|---------|------------|--------|----------|--------------|
| [TICKER] | [COMPANY] | [MCAP] | [SECTOR] | [EPS] | [REV] |
---
[Repeat for each day of week]
---
## Key Observations
### Highest Market Cap Companies This Week
1. [COMPANY] ([TICKER]) - [MCAP] - [DATE] [TIME]
2. [COMPANY] ([TICKER]) - [MCAP] - [DATE] [TIME]
3. [COMPANY] ([TICKER]) - [MCAP] - [DATE] [TIME]
### Sector Distribution
- **Technology**: [COUNT] companies
- **Healthcare**: [COUNT] companies
- **Financial**: [COUNT] companies
- **Consumer**: [COUNT] companies
- **Other**: [COUNT] companies
### Trading Considerations
- **Days with Heavy Volume**: [DATES with multiple large-cap earnings]
- **Pre-Market Focus**: [BMO companies that may move markets]
- **After-Hours Focus**: [AMC companies that may move markets]
---
## Timing Reference
- **BMO (Before Market Open)**: Announcements typically around 6:00-8:00 AM ET before market opens at 9:30 AM ET
- **AMC (After Market Close)**: Announcements typically around 4:00-5:00 PM ET after market closes at 4:00 PM ET
- **TAS (Time Not Announced)**: Specific time not yet disclosed - monitor company investor relations
---
## Data Notes
- **Market Cap Categories**:
- Mega Cap: >$200B
- Large Cap: $10B-$200B
- Mid Cap: $2B-$10B
- **Filter Criteria**: This report includes companies with market cap $2B and above (mid-cap+) with earnings scheduled for the next week.
- **Data Source**: Financial Modeling Prep (FMP) API
- **Data Freshness**: Earnings dates and times can change. Verify critical dates through company investor relations websites for the most current information.
- **EPS and Revenue Estimates**: Analyst consensus estimates from FMP API. Actual results will be reported on earnings date.
---
## Additional Resources
- **FMP API Documentation**: https://site.financialmodelingprep.com/developer/docs
- **Seeking Alpha Calendar**: https://seekingalpha.com/earnings/earnings-calendar
- **Yahoo Finance Calendar**: https://finance.yahoo.com/calendar/earnings
---
*Report generated using FMP Earnings Calendar API with mid-cap+ filter (>$2B market cap). Data current as of report generation time. Always verify earnings dates through official company sources.*
格式化最佳实践:
在最终确定报告之前,验证:
数据质量检查:
完整性检查:
格式检查:
使用适当的文件名保存生成的报告:
文件名约定:
earnings_calendar_[YYYY-MM-DD].md
示例:earnings_calendar_2025-11-02.md
文件名日期代表报告生成日期,而非收益周。
交付:
示例摘要:
✓ Earnings calendar report generated: earnings_calendar_2025-11-02.md
Summary for week of November 3-9, 2025:
- 45 companies reporting earnings
- 28 large/mega-cap, 17 mid-cap
- Peak day: Thursday (15 companies)
- Notable: Apple (Mon AMC), Microsoft (Tue AMC), Tesla (Wed AMC)
Top 5 by market cap:
1. Apple - $3.0T (Mon AMC)
2. Microsoft - $2.8T (Tue AMC)
3. Alphabet - $1.8T (Thu AMC)
4. Amazon - $1.6T (Fri AMC)
5. Tesla - $800B (Wed AMC)
如果 API 访问不可用或用户选择跳过 API:
提供手动输入说明:
Since FMP API is not available, you can manually gather earnings data:
1. Visit Finviz: https://finviz.com/screener.ashx?v=111&f=cap_midover%2Cearningsdate_nextweek
2. Or Yahoo Finance: https://finance.yahoo.com/calendar/earnings
3. Note down companies reporting next week
Please provide the following information for each company:
- Ticker symbol
- Company name
- Earnings date
- Timing (BMO/AMC/TAS)
- Market cap (approximate)
- Sector
I will format this into the standard earnings calendar report.
处理手动输入:
用户请求:"获取下周的收益日历"
工作流程:
获取当前日期(例如,2025 年 11 月 2 日)
计算目标周(2025 年 11 月 3-9 日)
加载 FMP API 指南
检测/请求 API 密钥
获取收益数据:
python scripts/fetch_earnings_fmp.py 2025-11-03 2025-11-09 > earnings_data.json
生成 Markdown 报告:
python scripts/generate_report.py earnings_data.json earnings_calendar_2025-11-02.md
通过摘要通知用户
完整单行命令:
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
用户请求:"周一会发布哪些财报?"
工作流程:
用户请求:"显示下周市值超过 1000 亿美元的公司的财报"
工作流程:
用户请求:"下周有哪些科技公司发布财报?"
工作流程:
解决方案:
解决方案:
解决方案:
解决方案:
解决方案:
python3 --versionpip install requestschmod +x fetch_earnings_fmp.pypython3 fetch_earnings_fmp.py ...✓ 在任何数据检索之前,始终先获取当前日期 ✓ 使用 FMP API 作为主要来源以确保可靠性 ✓ 对于 CLI 使用,将 API 密钥存储在环境变量中 ✓ 按市值排序以优先考虑高影响力公司 ✓ 按日期然后时间分组以实现逻辑组织 ✓ 包含汇总统计以便快速概览 ✓ 在报告页脚注明数据来源 ✓ 使用清晰的 Markdown 表格以提高可读性 ✓ 提供时间参考部分以保持清晰 ✓ 注意数据新鲜度和变化的可能性 ✓ 如果可用,包含每股收益和营收预期
✗ 不要在不从当前日期计算的情况下假设"下周" ✗ 不要省略时间信息(BMO/AMC/TAS) ✗ 不要在报告内混合使用日期格式(保持一致) ✗ 除非特别要求,否则不要包含微盘/小盘股 ✗ 不要忘记在每个部分内按市值排序 ✗ 不要在对话或报告中分享 API 密钥 ✗ 不要包含本周或过去日期的收益 ✗ 不要在没有质量保证检查的情况下生成报告 ✗ 不要将 API 密钥提交到版本控制
重要提醒:
最佳实践:对于 Claude Code (CLI),始终使用环境变量:
# Add to ~/.zshrc or ~/.bashrc
export FMP_API_KEY="your-key-here"
对于 Claude Web,请理解:
FMP API:
补充来源(用于验证):
技能资源:
references/fmp_api_guide.mdscripts/fetch_earnings_fmp.pyassets/earnings_report_template.md此技能提供了一种可靠的、基于 API 的方法来生成美国股票的每周收益日历。通过使用 FMP API,它确保了结构化、准确的数据以及额外的见解,如每股收益/营收预期。多环境支持使其在 CLI、桌面端和网页端使用上具有灵活性,而备用模式确保了即使没有 API 访问也能保持功能。
关键工作流程:日期计算 → API 密钥设置 → API 数据检索 → 处理 → 报告生成 → 质量保证 → 交付
输出:干净、有组织的 Markdown 报告,收益按日期/时间/市值分组,包括汇总统计和交易注意事项。
每周安装次数
225
仓库
GitHub 星标数
412
首次出现
Jan 26, 2026
安全审计
安装于
opencode204
gemini-cli203
cursor202
codex200
github-copilot195
kimi-cli191
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 :
This skill requires a Financial Modeling Prep API key.
Get Free API Key :
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:
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 :
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:
Detect API key availability based on environment.
Multi-Environment API Key Detection :
if [ ! -z "$FMP_API_KEY" ]; then
echo "✓ API key found in environment"
API_KEY=$FMP_API_KEY
fi
If environment variable is set, proceed to Step 4.
If environment variable not found, use AskUserQuestion tool:
Question Configuration :
Question: "This skill requires an FMP API key to retrieve earnings data. Do you have an FMP API key?"
Header: "API Key"
Options:
1. "Yes, I'll provide it now" → Proceed to 3.3
2. "No, get free key" → Show instructions (3.2.1)
3. "Skip API, use manual entry" → Jump to Step 8 (fallback mode)
3.2.1 If user chooses "No, get free key" :
Provide instructions:
To get a free FMP API key:
1. Visit: https://site.financialmodelingprep.com/developer/docs
2. Click "Get Free API Key" or "Sign Up"
3. Create account (email + password)
4. Receive API key immediately
5. Free tier includes 250 API calls/day (sufficient for daily use)
Once you have your API key, please select "Yes, I'll provide it now" to continue.
If user has API key, request input:
Prompt :
Please paste your FMP API key below:
(Your API key will only be stored for this conversation session and will be forgotten when the session ends. For regular use, consider setting the FMP_API_KEY environment variable.)
Store API key in session variable :
API_KEY = [user_input]
Confirm with user :
✓ API key received and stored for this session.
Security Note:
- API key is stored only in current conversation context
- Not saved to disk or persistent storage
- Will be forgotten when session ends
- Do not share this conversation if it contains your API key
Proceeding with earnings data retrieval...
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):
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:
Once earnings data is retrieved (JSON format), process and organize it:
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)
Confirm data includes required fields:
Group all earnings announcements by date:
Within each date, create three sub-sections:
Data is already sorted by timing from the script, so maintain this order.
Companies are already sorted by market cap descending (script output):
This prioritization ensures the most market-moving companies are listed first.
Compute:
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_report.py earnings_data.json earnings_calendar_2025-11-02.md
What the script does :
The script automatically handles all formatting including:
Report Structure :
# Upcoming Earnings Calendar - Week of [START_DATE] to [END_DATE]
**Report Generated**: [Current Date]
**Data Source**: FMP API (Mid-cap and above, >$2B market cap)
**Coverage Period**: Next 7 days
**Total Companies**: [COUNT]
---
## Executive Summary
- **Total Companies Reporting**: [TOTAL_COUNT]
- **Mega/Large Cap (>$10B)**: [LARGE_CAP_COUNT]
- **Mid Cap ($2B-$10B)**: [MID_CAP_COUNT]
- **Peak Day**: [DAY_WITH_MOST_EARNINGS]
---
## [Day Name], [Full Date]
### Before Market Open (BMO)
| Ticker | Company | Market Cap | Sector | EPS Est. | Revenue Est. |
|--------|---------|------------|--------|----------|--------------|
| [TICKER] | [COMPANY] | [MCAP] | [SECTOR] | [EPS] | [REV] |
### After Market Close (AMC)
| Ticker | Company | Market Cap | Sector | EPS Est. | Revenue Est. |
|--------|---------|------------|--------|----------|--------------|
| [TICKER] | [COMPANY] | [MCAP] | [SECTOR] | [EPS] | [REV] |
### Time Not Announced (TAS)
| Ticker | Company | Market Cap | Sector | EPS Est. | Revenue Est. |
|--------|---------|------------|--------|----------|--------------|
| [TICKER] | [COMPANY] | [MCAP] | [SECTOR] | [EPS] | [REV] |
---
[Repeat for each day of week]
---
## Key Observations
### Highest Market Cap Companies This Week
1. [COMPANY] ([TICKER]) - [MCAP] - [DATE] [TIME]
2. [COMPANY] ([TICKER]) - [MCAP] - [DATE] [TIME]
3. [COMPANY] ([TICKER]) - [MCAP] - [DATE] [TIME]
### Sector Distribution
- **Technology**: [COUNT] companies
- **Healthcare**: [COUNT] companies
- **Financial**: [COUNT] companies
- **Consumer**: [COUNT] companies
- **Other**: [COUNT] companies
### Trading Considerations
- **Days with Heavy Volume**: [DATES with multiple large-cap earnings]
- **Pre-Market Focus**: [BMO companies that may move markets]
- **After-Hours Focus**: [AMC companies that may move markets]
---
## Timing Reference
- **BMO (Before Market Open)**: Announcements typically around 6:00-8:00 AM ET before market opens at 9:30 AM ET
- **AMC (After Market Close)**: Announcements typically around 4:00-5:00 PM ET after market closes at 4:00 PM ET
- **TAS (Time Not Announced)**: Specific time not yet disclosed - monitor company investor relations
---
## Data Notes
- **Market Cap Categories**:
- Mega Cap: >$200B
- Large Cap: $10B-$200B
- Mid Cap: $2B-$10B
- **Filter Criteria**: This report includes companies with market cap $2B and above (mid-cap+) with earnings scheduled for the next week.
- **Data Source**: Financial Modeling Prep (FMP) API
- **Data Freshness**: Earnings dates and times can change. Verify critical dates through company investor relations websites for the most current information.
- **EPS and Revenue Estimates**: Analyst consensus estimates from FMP API. Actual results will be reported on earnings date.
---
## Additional Resources
- **FMP API Documentation**: https://site.financialmodelingprep.com/developer/docs
- **Seeking Alpha Calendar**: https://seekingalpha.com/earnings/earnings-calendar
- **Yahoo Finance Calendar**: https://finance.yahoo.com/calendar/earnings
---
*Report generated using FMP Earnings Calendar API with mid-cap+ filter (>$2B market cap). Data current as of report generation time. Always verify earnings dates through official company sources.*
Formatting Best Practices :
Before finalizing the report, verify:
Data Quality Checks :
Completeness Checks :
Format Checks :
Save the generated report with an appropriate filename:
Filename Convention :
earnings_calendar_[YYYY-MM-DD].md
Example: earnings_calendar_2025-11-02.md
The filename date represents the report generation date, not the earnings week.
Delivery :
Example Summary :
✓ Earnings calendar report generated: earnings_calendar_2025-11-02.md
Summary for week of November 3-9, 2025:
- 45 companies reporting earnings
- 28 large/mega-cap, 17 mid-cap
- Peak day: Thursday (15 companies)
- Notable: Apple (Mon AMC), Microsoft (Tue AMC), Tesla (Wed AMC)
Top 5 by market cap:
1. Apple - $3.0T (Mon AMC)
2. Microsoft - $2.8T (Tue AMC)
3. Alphabet - $1.8T (Thu AMC)
4. Amazon - $1.6T (Fri AMC)
5. Tesla - $800B (Wed AMC)
If API access is unavailable or user chooses to skip API:
Provide Instructions for Manual Entry :
Since FMP API is not available, you can manually gather earnings data:
1. Visit Finviz: https://finviz.com/screener.ashx?v=111&f=cap_midover%2Cearningsdate_nextweek
2. Or Yahoo Finance: https://finance.yahoo.com/calendar/earnings
3. Note down companies reporting next week
Please provide the following information for each company:
- Ticker symbol
- Company name
- Earnings date
- Timing (BMO/AMC/TAS)
- Market cap (approximate)
- Sector
I will format this into the standard earnings calendar report.
Process Manual Input :
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 :
User Request : "Show me earnings for companies over $100B market cap next week"
Workflow :
User Request : "What tech companies have earnings next week?"
Workflow :
Solutions :
Solutions :
Solutions :
Solutions :
Solutions :
python3 --versionpip install requestschmod +x fetch_earnings_fmp.pypython3 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 :
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:
FMP API :
Supplementary Sources (for verification):
Skill Resources :
references/fmp_api_guide.mdscripts/fetch_earnings_fmp.pyassets/earnings_report_template.mdThis 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.
Weekly Installs
225
Repository
GitHub Stars
412
First Seen
Jan 26, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykFail
Installed on
opencode204
gemini-cli203
cursor202
codex200
github-copilot195
kimi-cli191
Python PDF处理教程:合并拆分、提取文本表格、创建PDF文件
58,600 周安装