How to Track Congressional and Corporate Insider Trading with Real-Time SEC Data
By Annie
Every insider trade — from Nancy Pelosi's husband buying NVIDIA calls to Elon Musk selling Tesla shares — gets disclosed to the SEC within two business days. It's public information. It's legally required. And most people have no idea how to actually access or use it.
Let's fix that.
What SEC Form 4 filings actually are
When a corporate insider (CEO, CFO, board member, or anyone who owns 10%+ of a company) buys or sells stock in their own company, they must file a Form 4 with the SEC. Same goes for members of Congress under the STOCK Act — they're required to disclose trades within 45 days (though many file faster to avoid looking sketchy).
The Form 4 tells you:
- Who traded (name, title, relationship to the company)
- What they traded (common stock, options, restricted shares, etc.)
- How many shares (exact quantities)
- At what price (if available)
- When it happened (transaction date)
- Whether it was a buy or a sell
All of this lands in the SEC's EDGAR database, which is... let's call it "aggressively unfriendly" to human beings. It's XML wrapped in SGML, indexed like it's 1996, with zero filtering or sorting. Finding out what insiders bought this week requires either a law degree or a data engineering background.
We built kibble.shop's SEC EDGAR Insider Trading dashboard to fix that.
Why insider trading data matters (the legal kind)
Here's the uncomfortable truth: insiders know more than you do. Always. They see the quarterly numbers before earnings. They know if the product launch is going well or falling apart. They sit in strategy meetings where the CEO talks about what's really happening.
And when they trade, they're putting real money where their mouth is.
Academic research is clear: insider purchases consistently outperform the market by 4-8% annually. The signal is strongest when:
- Multiple insiders buy within a short window (cluster buys)
- The purchase is large relative to their compensation
- It's a small or mid-cap company (where information asymmetry is higher)
- The buyer is a CEO or CFO (the people who see everything)
Insider sales, on the other hand, are mostly noise. Insiders sell for a million reasons — taxes, diversification, buying a house, marital drama. An insider selling tells you almost nothing about their conviction in the company.
But an insider buying? That's different. There's really only one reason to do that: they think the stock is going up.
How kibble.shop pulls real-time SEC data
The SEC provides a feed called EFTS (Electronic Filing Transmission System) that pushes filings in near-real-time. We tap into this feed, parse every Form 4 as it arrives, and clean it into something actually usable.
Here's what we do:
- Monitor the SEC's EFTS API for new Form 4 filings every few minutes
- Parse the XML (which is genuinely ugly — nested tables, inconsistent formatting, footnotes that require context to understand)
- Extract transaction details — share counts, prices, dates, transaction codes (buy vs. sell vs. option exercise vs. gift)
- Enrich with company metadata — ticker symbol, company name, sector, market cap
- Classify insider role — CEO, CFO, director, 10% owner, etc.
- Publish to the dashboard within minutes of the filing hitting EDGAR
The data updates in real-time. When Paul Pelosi buys call options or a tech CEO loads up on their own stock after a crash, it shows up on kibble.shop within minutes.
Patterns we've noticed in the data
After parsing thousands of Form 4 filings, a few patterns jump out:
### 1. Congressional trades cluster around major policy events
Senators and Representatives often trade in sectors about to be affected by legislation they're working on. Defense stocks before a military authorization vote. Healthcare before a drug pricing bill. Energy before climate legislation. The timing is... let's say interesting.
### 2. Tech insider buys spiked during the 2022 bear market
When Meta, Google, Amazon, and Microsoft crashed 40-60% in 2022, their executives and board members went on buying sprees. Zuckerberg, Pichai, and others loaded up. A year later, those positions were up 100%+. Insiders were early, but they were right.
### 3. Cluster buys are rare — and powerful
When multiple insiders at the same company buy within the same week, that's a cluster buy. It's statistically rare. And it's one of the strongest signals in the dataset. If three board members and the CFO all bought shares in the same 5-day window, something's up.
### 4. 10b5-1 plans mask the real signal
Many executives set up automated selling plans (10b5-1) to avoid accusations of insider trading. These create steady, scheduled sales that are not informative. The signal is in the discretionary buys — the ones where an insider voluntarily decided to add more exposure.
How to actually use this data
The insider trading dashboard on kibble.shop/sec-edgar-insider-trading lets you:
- Filter by transaction type — show only purchases, or only sales, or everything
- Search by ticker — see all insider activity for a specific company
- Sort by size — find the biggest trades first
- Track specific insiders — follow what Nancy Pelosi, Warren Buffett, or any other filer is doing
- Export to CSV — pull the data into Excel, Python, or whatever you use for analysis
You can also hit our API directly:
```
GET /api/sec-edgar-insider-trading?type=purchase&limit=50
GET /api/sec-edgar-insider-trading?ticker=NVDA
GET /api/sec-edgar-insider-trading?insider=Pelosi
```
Clean JSON. No auth required (for now). Build whatever you want with it.
What insider trading data doesn't tell you
A few caveats before you go reorganize your portfolio based on Form 4 filings:
1. Insiders are often early. They might buy six months before the turnaround actually happens. Insider conviction doesn't mean immediate price appreciation.
2. Not all insiders are created equal. A board member who sits on twelve boards and buys $10k worth of stock is less meaningful than a CEO making the largest purchase of their career.
3. Sales are mostly noise. Unless it's an unusual sale pattern (like multiple insiders selling at the same time), insider sales don't tell you much.
4. Context matters. An insider buying after a 50% crash is a different signal than an insider buying at all-time highs.
5. It's one input, not a strategy. Use insider data as a confirming signal alongside fundamentals, technicals, and macro context. Don't YOLO into a stock just because one board member bought shares.
Why we built this
I'm Annie — a data scientist who got fed up with how hard it was to get clean financial data. The SEC publishes Form 4 filings for free, but actually using that data requires parsing archaic XML, dealing with EDGAR's 1990s-era interface, and writing a bunch of annoying data cleaning code.
kibble.shop's goal is simple: make public financial data actually usable. No enterprise sales calls. No $20k/year subscriptions. Just clean data, fast dashboards, and APIs that work the way you'd expect.
The SEC EDGAR Insider Trading product is one of 185+ datasets we're building. It's free during early access, and we're adding new data products every week.
What's next
We're working on:
- Cluster buy detection — automatic alerts when multiple insiders buy the same stock within a short window
- Historical analysis — backtest insider buying patterns against stock performance to quantify the signal
- Congressional trading tracker — a dedicated view for tracking what members of Congress are buying and selling
- Webhooks and alerts — get notified when insiders at companies you follow make unusual moves
Check it out
The SEC EDGAR Insider Trading dashboard is live right now. Filter for purchases. See what catches your eye. Search for your favorite stock or politician. It's all there, updating in real-time.
And if you want API access or alerts, sign up for early access. We're building this in public, and I'd love to hear what you think.
Because here's the thing: the data exists. It's public. But it's trapped in the SEC's digital basement. Someone's gotta set it free.
— Annie 🐾
Explore the live SEC EDGAR Insider Trading dashboard on kibble.shop — real-time data, clean interface, zero cost. Sign up to get notified when we ship new data products.