Token导航 LogoToken导航TokenDH.com
研究检索敏感数据clawhub未标认证来源可访问clear审计通过

finance-data财务数据

Agent Skill

用于辅助数据整理、表格处理、CSV/Excel 分析、指标计算和图表准备。它适合让 Agent 清洗字段、汇总数据、发现异常、生成统计口径或把分析结果转成可读说明。使用时需要确认数据来源、字段含义和时间范围,避免把样本数据当全量事实;涉及敏感数据、导出文件或批量写回时,应先确认权限和脱敏边界。

总安装

5,777

周安装

236

GitHub Stars

1

下载量

1,850
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:finance-data(财务数据)
来源仓库:https://github.com/1shadow1/finance-data
安装命令:
openclaw skills install finance-data
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install finance-data

简介

整合 Yahoo Finance 与 SEC EDGAR 数据源,提供股票行情与公司财务信息。

  • 适用于量化分析、基本面研究或投资组合构建的数据支撑场景。
  • 支持历史价格、财报下载与事件驱动查询,覆盖美股主流上市公司。
  • SEC 数据存在爬取延迟,实时性不如交易所官方推送渠道。
  • 不保证数据绝对准确,使用前建议比对多个信源交叉验证。

SKILL.md

name
finance-data
description
Fetch professional stock market data from Yahoo Finance (yfinance) and SEC EDGAR. Use when: user asks about stock prices, market data, company financials, earnings, analyst recommendations, SEC filings (10-K, 10-Q, 8-K), insider transactions, options chains, dividend history, company profiles, XBRL financial concepts, or any equity research task. Supports US stocks, Chinese A-shares (e.g. 600519.SS), and international markets.
metadata
{ "openclaw": { "emoji": "📊", "requires": { "bins": ["python3"] } } }

Finance Data Skill

Fetch professional stock and financial data from Yahoo Finance (via yfinance) and SEC EDGAR (free public API).

Setup

Install the Python dependency (one-time):

pip install -r skills/finance-data/scripts/requirements.txt

SEC EDGAR requires a User-Agent header identifying the requester. Set the env var (optional — a default is provided):

export SEC_EDGAR_USER_AGENT="YourName your@email.com"

Ticker Formats

MarketFormatExample
US stocksSymbolAAPL, MSFT, GOOGL
Shanghai A-sharesCode.SS600519.SS (Moutai)
Shenzhen A-sharesCode.SZ000858.SZ (Wuliangye)
Hong KongCode.HK0700.HK (Tencent)
TokyoCode.T7203.T (Toyota)
LondonCode.LHSBA.L (HSBC)
ETFs / IndicesSymbolSPY, QQQ, ^GSPC, ^HSI

Yahoo Finance Commands

All commands output JSON to stdout.

Current Quote

python3 scripts/yfinance_query.py quote AAPL

Returns: price, volume, market cap, P/E, EPS, 52-week range, moving averages, dividend yield, beta, profit margins, etc.

Historical Prices (OHLCV)

# Last month, daily
python3 scripts/yfinance_query.py history AAPL

# Last year, weekly
python3 scripts/yfinance_query.py history AAPL --period 1y --interval 1wk

# Last 5 days, 5-minute bars
python3 scripts/yfinance_query.py history AAPL --period 5d --interval 5m

Period options: 1d, 5d, 1mo, 3mo, 6mo, 1y, 2y, 5y, 10y, ytd, max Interval options: 1m, 2m, 5m, 15m, 30m, 60m, 90m, 1h, 1d, 5d, 1wk, 1mo, 3mo

Financial Statements

# All statements (income, balance sheet, cash flow) — annual
python3 scripts/yfinance_query.py financials AAPL

# Quarterly income statement only
python3 scripts/yfinance_query.py financials AAPL --statement income --quarterly

# Balance sheet only
python3 scripts/yfinance_query.py financials AAPL --statement balance

# Cash flow only
python3 scripts/yfinance_query.py financials AAPL --statement cashflow

Full Company Profile

python3 scripts/yfinance_query.py info AAPL

Returns all available metadata: sector, industry, description, officers, full-year financials, etc.

Shareholders

python3 scripts/yfinance_query.py holders AAPL

Returns institutional holders, major holders breakdown, and insider transactions.

Analyst Recommendations & Price Targets

python3 scripts/yfinance_query.py analysts AAPL

Returns recent analyst recommendations (buy/hold/sell) and consensus price targets.

Dividend History

python3 scripts/yfinance_query.py dividends AAPL

Options Chain

# Nearest expiry (default)
python3 scripts/yfinance_query.py options AAPL

# Specific expiry date
python3 scripts/yfinance_query.py options AAPL --expiry 2025-06-20

Returns calls and puts with strike, bid, ask, volume, open interest, implied volatility.

Earnings

python3 scripts/yfinance_query.py earnings AAPL

Returns quarterly and annual earnings (revenue, earnings, surprise).

News

python3 scripts/yfinance_query.py news AAPL

Returns recent news headlines with links.

SEC EDGAR Commands

Free public API — no API key required. All US public company filings.

Full-Text Search

# Search across all filings
python3 scripts/sec_edgar.py search --query "artificial intelligence" --limit 10

# Filter by form type and date
python3 scripts/sec_edgar.py search --query "revenue growth" --form-type 10-K --date-from 2024-01-01

Company Filings

# Recent filings by ticker
python3 scripts/sec_edgar.py filings AAPL --limit 20

# Filter by form type
python3 scripts/sec_edgar.py filings AAPL --form-type 10-K
python3 scripts/sec_edgar.py filings AAPL --form-type 10-Q
python3 scripts/sec_edgar.py filings AAPL --form-type 8-K

# By CIK number
python3 scripts/sec_edgar.py filings 320193 --form-type 10-K

Common form types: 10-K (annual), 10-Q (quarterly), 8-K (current events), DEF 14A (proxy), S-1 (IPO), 13F-HR (institutional holdings).

Read Filing Content

Download and extract readable text from an SEC filing. Use the url from the filings command output.

# Read full filing (first 50000 chars by default)
python3 scripts/sec_edgar.py read-filing --url "https://www.sec.gov/Archives/edgar/data/320193/000032019325000079/aapl-20250927.htm"

# Read a specific 10-K section (much more focused)
python3 scripts/sec_edgar.py read-filing --url "URL" --section 7    # MD&A
python3 scripts/sec_edgar.py read-filing --url "URL" --section 1    # Business
python3 scripts/sec_edgar.py read-filing --url "URL" --section 1a   # Risk Factors
python3 scripts/sec_edgar.py read-filing --url "URL" --section 8    # Financial Statements

# Control output length
python3 scripts/sec_edgar.py read-filing --url "URL" --max-chars 100000

10-K section numbers: 1 (Business), 1a (Risk Factors), 2 (Properties), 5 (Market), 7 (MD&A), 7a (Quantitative Disclosures), 8 (Financial Statements), 9a (Controls), 10 (Directors), 11 (Executive Compensation), 12 (Security Ownership).

Recommended workflow for reading annual reports:

# Step 1: find the latest 10-K filing
python3 scripts/sec_edgar.py filings AAPL --form-type 10-K --limit 1

# Step 2: read a specific section using the url from step 1
python3 scripts/sec_edgar.py read-filing --url "<url_from_step_1>" --section 7

Filing Document Index

List all documents within a filing package (useful for finding exhibits, XBRL files, etc.):

python3 scripts/sec_edgar.py filing-index AAPL --accession "0000320193-25-000079"

Company Metadata

python3 scripts/sec_edgar.py submissions AAPL

Returns company name, CIK, SIC code, address, phone, fiscal year end, exchanges, and filing count.

Structured Financial Data (XBRL)

# List all available XBRL concepts for a company
python3 scripts/sec_edgar.py company AAPL

# Get time-series for a specific concept
python3 scripts/sec_edgar.py concept AAPL --concept Revenue
python3 scripts/sec_edgar.py concept AAPL --concept NetIncomeLoss
python3 scripts/sec_edgar.py concept AAPL --concept EarningsPerShareBasic
python3 scripts/sec_edgar.py concept AAPL --concept Assets
python3 scripts/sec_edgar.py concept AAPL --concept StockholdersEquity

Useful XBRL concepts: Revenue, NetIncomeLoss, EarningsPerShareBasic, EarningsPerShareDiluted, Assets, Liabilities, StockholdersEquity, OperatingIncomeLoss, CashAndCashEquivalentsAtCarryingValue, LongTermDebt.

Insider Transactions

python3 scripts/sec_edgar.py insider AAPL --limit 20

Returns Forms 3, 4, 5 filings (insider buys/sells/grants) with links to SEC documents.

Common Workflows

Quick stock check:

python3 scripts/yfinance_query.py quote TSLA

Fundamental analysis:

python3 scripts/yfinance_query.py financials MSFT --statement income
python3 scripts/yfinance_query.py financials MSFT --statement balance
python3 scripts/sec_edgar.py concept MSFT --concept Revenue
python3 scripts/sec_edgar.py concept MSFT --concept NetIncomeLoss

Read the latest annual report (10-K):

# 1. Find the latest 10-K
python3 scripts/sec_edgar.py filings AAPL --form-type 10-K --limit 1
# 2. Read the MD&A section (most important for investors)
python3 scripts/sec_edgar.py read-filing --url "<url>" --section 7
# 3. Read the risk factors
python3 scripts/sec_edgar.py read-filing --url "<url>" --section 1a

Due diligence / SEC filings:

python3 scripts/sec_edgar.py filings NVDA --form-type 10-K --limit 5
python3 scripts/sec_edgar.py insider NVDA --limit 20
python3 scripts/sec_edgar.py submissions NVDA

Compare multiple stocks:

Run quote or financials commands for each ticker and compare the JSON output side by side.

Notes

  • yfinance data is sourced from Yahoo Finance — may have a 15-minute delay for real-time prices
  • SEC EDGAR is official SEC data — always accurate but filings may lag by a few days
  • SEC rate limit: max 10 requests/second per IP; the scripts respect this by default
  • Chinese A-share tickers use .SS (Shanghai) or .SZ (Shenzhen) suffix in yfinance
  • XBRL concepts are case-sensitive (e.g. Revenue not revenue)

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

73.6%
按下载量换算1,362

安全审计

VirusTotal

未展示

ClawScan

通过

Static analysis

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills