edgartools

GitHub

用于访问和分析SEC EDGAR文件的Python库。支持提取财务报表、XBRL数据、内幕交易及机构持仓等结构化信息,适用于公司筛选、多期财务分析及各类监管文件查询。

bundled/skills/edgartools/SKILL.md foryourhealth111-pixel/Vibe-Skills

Trigger Scenarios

查询SEC EDGAR filings 获取财务报表(10-K/10-Q) 分析XBRL金融数据 查询内幕交易(Form 4) 查看机构持仓(13F) 搜索特定公司或股票代码的监管文件

Install

npx skills add foryourhealth111-pixel/Vibe-Skills --skill edgartools -g -y
More Options

Non-standard path

npx skills add https://github.com/foryourhealth111-pixel/Vibe-Skills/tree/main/bundled/skills/edgartools -g -y

Use without installing

npx skills use foryourhealth111-pixel/Vibe-Skills@edgartools

指定 Agent (Claude Code)

npx skills add foryourhealth111-pixel/Vibe-Skills --skill edgartools -a claude-code -g -y

安装 repo 全部 skill

npx skills add foryourhealth111-pixel/Vibe-Skills --all -g -y

预览 repo 内 skill

npx skills add foryourhealth111-pixel/Vibe-Skills --list

SKILL.md

Frontmatter
{
    "name": "edgartools",
    "license": "MIT",
    "metadata": {
        "skill-author": "K-Dense Inc."
    },
    "description": "Python library for accessing, analyzing, and extracting data from SEC EDGAR filings. Use when working with SEC filings, financial statements (income statement, balance sheet, cash flow), XBRL financial data, insider trading (Form 4), institutional holdings (13F), company financials, annual\/quarterly reports (10-K, 10-Q), proxy statements (DEF 14A), 8-K current events, company screening by ticker\/CIK\/industry, multi-period financial analysis, or any SEC regulatory filings."
}

edgartools — SEC EDGAR Data

Python library for accessing all SEC filings since 1994 with structured data extraction.

Authentication (Required)

The SEC requires identification for API access. Always set identity before any operations:

from edgar import set_identity
set_identity("Your Name your.email@example.com")

Set via environment variable to avoid hardcoding: EDGAR_IDENTITY="Your Name your@email.com".

Installation

uv pip install edgartools
# For AI/MCP features:
uv pip install "edgartools[ai]"

Core Workflow

Find a Company

from edgar import Company, find

company = Company("AAPL")        # by ticker
company = Company(320193)         # by CIK (fastest)
results = find("Apple")           # by name search

Get Filings

# Company filings
filings = company.get_filings(form="10-K")
filing = filings.latest()

# Global search across all filings
from edgar import get_filings
filings = get_filings(2024, 1, form="10-K")

# By accession number
from edgar import get_by_accession_number
filing = get_by_accession_number("0000320193-23-000106")

Extract Structured Data

# Form-specific object (most common approach)
tenk = filing.obj()              # Returns TenK, EightK, Form4, ThirteenF, etc.

# Financial statements (10-K/10-Q)
financials = company.get_financials()     # annual
financials = company.get_quarterly_financials()  # quarterly
income = financials.income_statement()
balance = financials.balance_sheet()
cashflow = financials.cashflow_statement()

# XBRL data
xbrl = filing.xbrl()
income = xbrl.statements.income_statement()

Access Filing Content

text = filing.text()             # plain text
html = filing.html()             # HTML
md = filing.markdown()           # markdown (good for LLM processing)
filing.open()                    # open in browser

Key Company Properties

company.name                     # "Apple Inc."
company.cik                      # 320193
company.ticker                   # "AAPL"
company.industry                 # "ELECTRONIC COMPUTERS"
company.sic                      # "3571"
company.shares_outstanding       # 15115785000.0
company.public_float             # 2899948348000.0
company.fiscal_year_end          # "0930"
company.exchange                 # "Nasdaq"

Form → Object Mapping

Form Object Key Properties
10-K TenK financials, income_statement, balance_sheet
10-Q TenQ financials, income_statement, balance_sheet
8-K EightK items, press_releases
Form 4 Form4 reporting_owner, transactions
13F-HR ThirteenF infotable, total_value
DEF 14A ProxyStatement executive_compensation, proposals
SC 13D/G Schedule13 total_shares, items
Form D FormD offering, recipients

Important: filing.financials does NOT exist. Use filing.obj().financials.

Common Pitfalls

  • filing.financials → AttributeError; use filing.obj().financials
  • get_filings() has no limit param; use .head(n) or .latest(n)
  • Prefer amendments=False for multi-period analysis (amended filings may be incomplete)
  • Always check for None before accessing optional data

Reference Files

Load these when you need detailed information:

  • companies.md — Finding companies, screening, batch lookups, Company API
  • filings.md — Working with filings, attachments, exhibits, Filings collection API
  • financial-data.md — Financial statements, convenience methods, DataFrame export, multi-period analysis
  • xbrl.md — XBRL parsing, fact querying, multi-period stitching, standardization
  • data-objects.md — All supported form types and their structured objects
  • entity-facts.md — EntityFacts API, FactQuery, FinancialStatement, FinancialFact
  • ai-integration.md — MCP server setup, Skills installation, .docs and .to_context() properties

Version History

  • f627ab5 Current 2026-07-25 04:41

Same Skill Collection

bundled/skills/.system/skill-creator/SKILL.md
bundled/skills/.system/skill-installer/SKILL.md
bundled/skills/aeon/SKILL.md
bundled/skills/algorithmic-art/SKILL.md
bundled/skills/architecture-patterns/SKILL.md
bundled/skills/astropy/SKILL.md
bundled/skills/autonomous-builder/SKILL.md
bundled/skills/brainstorming/SKILL.md
bundled/skills/cancel-ralph/SKILL.md
bundled/skills/chembl-database/SKILL.md
bundled/skills/citation-management/SKILL.md
bundled/skills/claude-skills/SKILL.md
bundled/skills/clinical-reports/SKILL.md
bundled/skills/clinicaltrials-database/SKILL.md
bundled/skills/clinpgx-database/SKILL.md
bundled/skills/code-reviewer/SKILL.md
bundled/skills/coding-tutor/SKILL.md
bundled/skills/commit-with-reflection/SKILL.md
bundled/skills/comprehensive-research-agent/SKILL.md
bundled/skills/content-research-writer/SKILL.md
bundled/skills/context-fundamentals/SKILL.md
bundled/skills/context-hunter/SKILL.md
bundled/skills/create-plan/SKILL.md
bundled/skills/creating-data-visualizations/SKILL.md
bundled/skills/cs-foundations/SKILL.md
bundled/skills/dask/SKILL.md
bundled/skills/data-artist/SKILL.md
bundled/skills/data-quality-frameworks/SKILL.md
bundled/skills/data-storytelling/SKILL.md
bundled/skills/datacommons-client/SKILL.md
bundled/skills/datavis/SKILL.md
bundled/skills/denario/SKILL.md
bundled/skills/designing-experiments/SKILL.md
bundled/skills/detecting-data-anomalies/SKILL.md
bundled/skills/detecting-performance-regressions/SKILL.md
bundled/skills/dialectic/SKILL.md
bundled/skills/digital-brain/SKILL.md
bundled/skills/dnanexus-integration/SKILL.md
bundled/skills/doc/SKILL.md
bundled/skills/docs-review/SKILL.md
bundled/skills/docs-write/SKILL.md
bundled/skills/document-skills/docx/SKILL.md
bundled/skills/document-skills/pdf/SKILL.md
bundled/skills/document-skills/pptx/SKILL.md
bundled/skills/document-skills/SKILL.md
bundled/skills/documentation-lookup/SKILL.md
bundled/skills/docx-comment-reply/SKILL.md
bundled/skills/docx/SKILL.md
bundled/skills/embedding-strategies/SKILL.md

Metadata

Files
0
Version
f627ab5
Hash
a63fb2e1
Indexed
2026-07-25 04:41

- 위키
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-07 16:38
浙ICP备14020137号-1 $방문자$