Skip to content

SEC filing feed RSS based Python CLI auto parser script with AI analysis via openrouter.ai. Track any insider stock trades with custom filters!

Notifications You must be signed in to change notification settings

undeemed/SEC-Tracker

Repository files navigation

SEC Filing Tracker

A modular Python service for monitoring, downloading, and AI‑analyzing SEC filings (10‑K, 10‑Q, 8‑K, Form 4).

Quick Start

# Install
pip install -r requirements.txt

# Configure
cat << 'EOF' > .env
SEC_USER_AGENT=Your Name your@email.com
OPENROUTER_API_KEY=sk-or-v1-...
OPENROUTER_MODEL=deepseek/deepseek-chat-v3.1:free
EOF

# Run
python run.py track AAPL           # Track company filings
python run.py form4 NVDA -r 20     # Insider trading
python run.py latest 50            # Market-wide activity
python run.py                      # Show all commands

Commands

Command Module Description
track core/tracker.py Main - Fetch, download, analyze filings
form4 services/form4_company.py Company-specific insider trading
latest services/form4_market.py Market-wide insider scanner
analyze core/analyzer.py AI-powered filing analysis
scan utils/cik.py Ticker → CIK lookup
monitor services/monitor.py System status dashboard
model (built-in) AI model management

Repo Layout

SEC-Tracker/
├── core/       # Tracker, scraper, downloader, analyzer
├── services/   # Form 4 company + market, monitor
├── utils/      # Config, API keys, CIK, shared utilities
├── scripts/    # Cache refresh scripts
└── run.py      # CLI entry point

Architecture (High-Level)

flowchart TB
    run["run.py (CLI Router)"] --> tracker["core/tracker.py"]
    run --> form4_company["services/form4_company.py"]
    run --> form4_market["services/form4_market.py"]
    run --> monitor["services/monitor.py"]
    run --> analyzer["core/analyzer.py"]

    tracker --> scraper["core/scraper.py"]
    tracker --> downloader["core/downloader.py"]
    tracker --> analyzer

    scraper --> sec["SEC EDGAR API"]
    downloader --> sec
    form4_company --> sec
    form4_market --> sec

    analyzer --> openrouter["OpenRouter AI"]

    tracker --> cache["cache/"]
    downloader --> filings["sec_filings/"]
    analyzer --> analysis["analysis_results/"]
Loading

Documentation

  • FLOW.md - System flow diagram (quick visual)
  • WALKTHROUGH.md - Integration guide, API specs, Docker notes

License

MIT

About

SEC filing feed RSS based Python CLI auto parser script with AI analysis via openrouter.ai. Track any insider stock trades with custom filters!

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published