Skip to content
Back to skills

Sec Edgar Financials

ASecurity

US SEC EDGAR filing search and financial statement extraction skill (10-K, 10-Q, 8-K, Form 4 insider trading) using edgartools and sec-api. Provides exact numeric extraction for balance sheets, income statements, and cash flows.

  • 16 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added November 12, 2026
datapythongoreactapi

Works with

  • api
  • mcp

Security analysis

A100/100

Scanned November 12, 2026

npx -y skills add hukim1112/frontier_agent_analysis --skill sec-edgar-financials --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Sec Edgar Financials?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Sec Edgar Financials
[![Security: A β€” Skills Directory](https://www.skillsdirectory.com/api/skills/hukim1112-sec-edgar-financials/badge)](https://www.skillsdirectory.com/skills/hukim1112-sec-edgar-financials)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: sec-edgar-financials
description: US SEC EDGAR filing search and financial statement extraction skill (10-K, 10-Q, 8-K, Form 4 insider trading) using edgartools and sec-api. Provides exact numeric extraction for balance sheets, income statements, and cash flows.
category: finance
tags: [sec, edgar, 10-k, 10-q, balance-sheet, income-statement, us-equity, disclosure]
dependencies: [edgartools, pandas, pydantic]
---

# sec-edgar-financials Skill

Automated toolset for querying and extracting regulatory disclosures and financial statements directly from the US Securities and Exchange Commission (SEC) EDGAR system.

## 🎯 Educational & Practical Use Cases (Practical Focus)
- **Corporate Annual & Quarterly Reporting**: Parse 10-K (Annual) and 10-Q (Quarterly) filings for S&P 500 / NASDAQ firms.
- **Accurate Financial Statements**: Extract structured Balance Sheets, Income Statements, and Statements of Cash Flows directly from XBRL data.
- **Material Event Analysis (8-K)**: Detect unscheduled material corporate events, M&A filings, and executive changes.
- **Insider Trading Activity (Form 4)**: Track buying/selling transactions by C-suite executives and board directors.

---

## πŸ› οΈ LangChain & FastMCP Implementation

```python
"""
sec_edgar_tools.py - SEC EDGAR integration tools for LangChain & FastMCP Agents.
"""
from typing import Dict, Any, List, Optional
import os
from edgar import set_identity, Company
from langchain_core.tools import tool

# Set SEC user-agent identity (mandatory by SEC policy: Name email@domain.com)
set_identity("FinancialAgentAdmin admin@financial-agent.com")

@tool
def get_company_filings(ticker: str, form: str = "10-K", count: int = 3) -> List[Dict[str, Any]]:
    """
    Search recent SEC filings for a US listed company.
    :param ticker: Company ticker symbol (e.g. 'AAPL', 'MSFT', 'NVDA')
    :param form: Filing form type ('10-K', '10-Q', '8-K', '4')
    :param count: Maximum number of recent filings to return
    """
    company = Company(ticker)
    filings = company.get_filings(form=form).latest(count)
    
    results = []
    for f in filings:
        results.append({
            "form": f.form,
            "filing_date": str(f.filing_date),
            "accession_number": f.accession_number,
            "period_of_report": str(f.period_of_report) if hasattr(f, "period_of_report") else None,
            "url": f.url
        })
    return results

@tool
def get_latest_financial_statement(ticker: str, statement_type: str = "income") -> Dict[str, Any]:
    """
    Extract the latest structured financial statement from a 10-K or 10-Q filing.
    :param ticker: Stock ticker (e.g. 'NVDA')
    :param statement_type: 'income' (Income Statement), 'balance' (Balance Sheet), 'cash' (Cash Flow)
    """
    company = Company(ticker)
    latest_10k = company.get_filings(form="10-K").latest(1)
    if not latest_10k:
        return {"error": f"No 10-K found for {ticker}"}
    
    filing_obj = latest_10k[0].obj()
    financials = filing_obj.financials
    
    if statement_type == "income" and financials.income_statement:
        df = financials.income_statement.to_dataframe()
    elif statement_type == "balance" and financials.balance_sheet:
        df = financials.balance_sheet.to_dataframe()
    elif statement_type == "cash" and financials.cash_flow_statement:
        df = financials.cash_flow_statement.to_dataframe()
    else:
        return {"error": f"Statement type '{statement_type}' not found or parsed."}

    # Format into lightweight JSON preview
    preview = {}
    for idx, row in df.head(15).iterrows():
        preview[str(row.iloc[0])] = row.iloc[1] if len(row) > 1 else None

    return {
        "ticker": ticker.upper(),
        "statement_type": statement_type,
        "filing_date": str(latest_10k[0].filing_date),
        "data_preview": preview
    }
```

---

## πŸ€– ReAct Agent Scenario

```yaml
agent_interaction:
  user_query: "μ—”λΉ„λ””μ•„(NVDA)의 μ΅œμ‹  10-K μ—°λ‘€λ³΄κ³ μ„œμ—μ„œ μ†μ΅κ³„μ‚°μ„œ μš”μ•½κ³Ό 졜근 8-K μ£Όμš” κ³΅μ‹œ 내역을 μ•Œλ €μ€˜."
  agent_steps:
    1. Call `get_latest_financial_statement(ticker="NVDA", statement_type="income")`.
    2. Call `get_company_filings(ticker="NVDA", form="8-K", count=3)`.
    3. Generate a structured summary of revenue growth and key corporate disclosures.
```

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in data β†’

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.