Finnhub Pro
Finnhub 美股金融数据 CLI。实时报价、公司档案、新闻、分析师推荐、内部人交易、盈利日历、基本面财务、同行比较。Python 脚本封装,免费层 60 次/分钟。Use when: 查股价、查公司信息、看最新新闻、了解内部人是否在买卖、查看近期财报日期。NOT for: K线数据、目标价、情绪分析(需付费层)。
dtbllsj
@lsj210001
What This Skill Does
Command-line interface for Finnhub US stock market data. Provides real-time quotes, company profiles, news, analyst recommendations, insider transactions, earnings calendars, fundamental financials, and peer comparisons via a Python script. Requires a free Finnhub API key set as an environment variable.
Replaces manually checking multiple financial websites or building custom API integrations by exposing 10 key Finnhub free-tier endpoints through a single CLI with consistent flags.
When to Use It
- Check real-time stock price for a US ticker like AAPL or NVDA
- View company profile and basic financial metrics for a stock
- Read recent news articles about a specific company
- See if insiders have been buying or selling shares recently
- Look up upcoming earnings dates for a stock or all companies
- Find peer companies in the same industry as a given stock
Install
$ openclaw skills install @lsj210001/finnhub-proFinnhub Pro — 美股金融数据 CLI
Python CLI 封装 Finnhub API,聚焦免费层实际可用的 10 个功能。
安装
pip install finnhub-python
API Key
- 去 finnhub.io 注册获取免费 API Key
- 设置环境变量:
export FINNHUB_API_KEY="your-key-here" - 或写入
~/.openclaw/.env
⚠️ 脚本不硬编码 Key,必须通过环境变量 FINNHUB_API_KEY 传入!
使用方法
# 基础格式
FINNHUB_API_KEY="your-key" python3 scripts/finnhub_cli.py <command> [args] [--json] [--limit N]
# 推荐:设好环境变量后直接用
python3 scripts/finnhub_cli.py quote AAPL
免费层支持的命令(10 个)
实时报价
python3 scripts/finnhub_cli.py quote AAPL
python3 scripts/finnhub_cli.py quote NVDA --json # 原始 JSON
公司档案
python3 scripts/finnhub_cli.py profile AAPL
公司新闻(最近 7 天)
python3 scripts/finnhub_cli.py news NVDA
python3 scripts/finnhub_cli.py news AAPL --from 2026-02-01 --to 2026-02-21 --limit 5
分析师推荐趋势
python3 scripts/finnhub_cli.py recommend NVDA
内部人交易记录(最近 90 天)
python3 scripts/finnhub_cli.py insiders AAPL
python3 scripts/finnhub_cli.py insiders NVDA --from 2026-01-01 --to 2026-02-21
盈利日历(未来 30 天)
python3 scripts/finnhub_cli.py earnings # 所有股票
python3 scripts/finnhub_cli.py earnings NVDA # 指定股票
python3 scripts/finnhub_cli.py earnings --from 2026-02-21 --to 2026-03-07
基本面财务指标
python3 scripts/finnhub_cli.py financials AAPL
python3 scripts/finnhub_cli.py financials NVDA --json # 全部指标
市场状态
python3 scripts/finnhub_cli.py market # 默认美国
python3 scripts/finnhub_cli.py market NYSE
同行公司
python3 scripts/finnhub_cli.py peers AAPL
股票代码搜索
python3 scripts/finnhub_cli.py search "apple"
不可用功能(付费层)
- K 线数据(
stock_candles) - 分析师目标价(
price_target) - 新闻情绪分析(
news_sentiment)
限制
- 免费层:60 次/分钟
- 403 = 需付费升级
- 429 = 触发限速
依赖
- Python 3.10+
finnhub-python(pip install finnhub-python)
Top skills in this category
SuperDesign
@mpociotExpert frontend design guidelines for creating beautiful, modern UIs. Use when building landing pages, dashboards, or any user interface.
Video Frames
@steipeteExtract frames or short clips from videos using ffmpeg.
Frontend Design
@michaelmonetizedCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when building web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
Remotion Video Toolkit
@shreefentsarComplete toolkit for programmatic video creation with Remotion + React. Covers animations, timing, rendering (CLI/Node.js/Lambda/Cloud Run), captions, 3D, charts, text effects, transitions, and media handling. Use when writing Remotion code, building video generation pipelines, or creating data-driven video templates.
Feishu Evolver Wrapper
@autogame-17(Depreciated: This skill is no longer maintained; its related functions have been absorbed by the Evolver main body.) Feishu-integrated wrapper for the capability-evolver. Manages the evolution loop lifecycle (start/stop/ensure), sends rich Feishu card reports, and provides...