Edgar Agent Tool
Features
- 🔍 Company Lookup — Convert stock tickers to SEC CIK numbers
- 📑 Filing Retrieval — Fetch recent filings for any public company
- 🧩 Automatic Section Parsing — Extract specific sections (Risk Factors, MD&A, etc.)
- 🌐 Cross-Company Search — Find filings across all companies by date
- 🤖 LLM-Friendly — Clean markdown output, structured returns, designed for AI agents
- ⚡ Smart Caching — Built-in TTL caches to respect SEC rate limits
Developer Guide
If you are new to using nbdev here are some useful pointers to get you
started.
Install edgar_tool in Development mode
# make sure edgar_tool package is installed in development mode
$ pip install -e .
# make changes under nbs/ directory
# ...
# compile to have changes apply to edgar_tool
$ nbdev_prepare
Usage
Installation
pip install edgar-agent-tool
Or install from GitHub for the latest version:
pip install git+https://github.com/problemsolversguild/edgar-agent-tool.git
Documentation
Documentation can be found hosted on this GitHub repository’s pages. Additionally you can find package manager specific guidelines on conda and pypi respectively.
Quick Start
First, set up your SEC User-Agent (required by SEC):
export SEC_USER_AGENT="YourName your@email.com"
from edgar_agent_tool.filings import get_filing, get_recent_filings
# Get Apple's latest 10-K with automatic section parsing
filing = get_filing("AAPL", filing_type="10-K")
print(filing["summary"])
ModuleNotFoundError: No module named 'edgar_agent_tool'
[31m---------------------------------------------------------------------------[39m
[31mModuleNotFoundError[39m Traceback (most recent call last)
[36mCell[39m[36m [39m[32mIn[1][39m[32m, line 1[39m
[32m----> [39m[32m1[39m [38;5;28;01mfrom[39;00m[38;5;250m [39m[34;01medgar_agent_tool[39;00m[34;01m.[39;00m[34;01mfilings[39;00m[38;5;250m [39m[38;5;28;01mimport[39;00m get_filing, get_recent_filings
[32m 3[39m [38;5;66;03m# Get Apple's latest 10-K with automatic section parsing[39;00m
[32m 4[39m filing = get_filing([33m"[39m[33mAAPL[39m[33m"[39m, filing_type=[33m"[39m[33m10-K[39m[33m"[39m)
[31mModuleNotFoundError[39m: No module named 'edgar_agent_tool'
# Extract a specific section (e.g., Risk Factors)
filing = get_filing("AAPL", filing_type="10-K", section="1A")
print(f"Risk Factors: {len(filing['section']['content'])} characters")
# Get a list of recent 8-K filings
filings = get_recent_filings("MSFT", filing_type="8-K", count=5)
for f in filings:
print(f"{f['filingDate']}: {f['form']} - {f['primaryDocDescription']} - {f['items']}")
2025-12-08: 8-K - 8-K - 5.02,5.07
2025-10-29: 8-K - 8-K - 2.02,7.01,9.01
2025-09-30: 8-K - 8-K - 5.02
2025-07-30: 8-K - 8-K - 2.02,9.01
2025-07-01: 8-K - 8-K - 5.03,9.01
Key Functions
| Function | Description |
|---|---|
get_filing(ticker, filing_type, section) |
Get a parsed filing with automatic section extraction |
get_recent_filings(ticker, filing_type, count) |
List recent filings for a company |
get_latest_filings(filing_type, start_date, end_date) |
Search filings across all companies |
ticker_to_cik(ticker) |
Convert ticker to SEC CIK number |
get_filing_document(url) |
Fetch raw filing content as markdown |
Filing Classes
For more control, use the typed filing classes directly:
| Class | Description |
|---|---|
Filing10K |
Annual reports with 23 standard items across 4 parts |
Filing10Q |
Quarterly reports with financial statements and MD&A |
Filing8K |
Current reports for material events (earnings, exec changes, etc.) |
Each class provides: - Lazy content loading — Content fetched only
when accessed - Automatic section parsing — Structured access to all
standard items - Convenience properties — .business,
.risk_factors, .mda, .financials - Summary generation —
Human-readable filing overviews
Section Reference
10-K Sections
- Item 1: Business description
- Item 1A: Risk Factors ⭐
- Item 7: Management’s Discussion & Analysis (MD&A) ⭐
- Item 8: Financial Statements ⭐
10-Q Sections
- I-1: Financial Statements
- I-2: MD&A ⭐
- II-1A: Risk Factor updates
8-K Items
- 2.02: Results of Operations (earnings) ⭐
- 5.02: Director/Officer changes
- 7.01: Regulation FD Disclosure
- 8.01: Other Events
Metadata
Release files for edgar_agent_tool 0.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| edgar_agent_tool-0.0.4.tar.gz | 23.8 kB | Without provenance | Details for edgar_agent_tool-0.0.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| edgar_agent_tool-0.0.4-py3-none-any.whl | Python 3 | none | any | Details for edgar_agent_tool-0.0.4-py3-none-any.whl |
Total release size: 44.9 kB
Release files / edgar_agent_tool-0.0.4.tar.gz
| Download URL | edgar_agent_tool-0.0.4.tar.gz |
|---|---|
| Size | 23.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
49b3c9d4c76d2f8e50bbb16e65e61b92edc2c1f1e51dd3c961061bcf087045f7
|
|
BLAKE2b-256 checksum How to use checksums |
0c5fb1847c4655f226b413188d3e2e9da98530728d74c3b88202f18fc02f5fa8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.12
|
Release files / edgar_agent_tool-0.0.4-py3-none-any.whl
| Download URL | edgar_agent_tool-0.0.4-py3-none-any.whl |
|---|---|
| Size | 21.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7d258e872f2aca55bc56d38e5326dfb64f614cf4524d633da6a73d26b766915a
|
|
BLAKE2b-256 checksum How to use checksums |
0776be1691246748201b1b30c1e0aa9d0caab03ff5521da741328ff4da4962a4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.12
|
Security for edgar_agent_tool 0.0.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.