Top Insider Buying Stocks: How These Lists Are Built
How "top insider buying stocks" lists are actually built from Form 4 data, what counts as a genuine signal, and how to pull a current ranking yourself.
- A "top insider buying stocks" list is just open market purchases (Form 4 code P) ranked by dollar value or by how many different insiders bought in a window.
- The two most useful sort orders are total purchase value per company and the count of distinct insiders buying the same stock, known as a cluster buy.
- Grants, option exercises and tax withholding sales are not purchases; a list that does not filter them out is counting the wrong thing.
- None of this is a trading signal on its own. It tells you what insiders did with their own money, not what will happen to the stock.
"Top insider buying stocks" lists rank companies by how much their officers, directors and large shareholders bought on the open market in a recent period. The underlying data is the same for every version of this list: SEC Form 4 filings tagged with transaction code P. What differs between lists is how they rank and filter that data, and that part is usually left out.
This guide covers what actually goes into a ranking like this, which filters separate a real purchase from routine paperwork, and how to build a current list yourself from the SEC's own data.
What "insider buying" means on Form 4
Officers, directors and anyone who beneficially owns more than 10% of a company's registered equity securities are insiders under Section 16(a) of the Securities Exchange Act of 1934. When their ownership changes, they report it on Form 4, generally within two business days of the transaction. Each line on a Form 4 carries a one letter transaction code describing what happened:
| Code | Meaning | Counts as a purchase? |
|---|---|---|
| P | Open market or private purchase | Yes |
| S | Open market or private sale | No, the opposite |
| A | Grant, award or other acquisition from the company | No, not bought on the market |
| M | Option or derivative exercise | No |
| F | Shares withheld to pay taxes on vesting | No |
| G | Bona fide gift | No |
| C | Conversion of a derivative security | No |
A "top insider buying stocks" list is built almost entirely from code P rows. If a list counts code A (grants) or code M (exercises) toward "buying," it is measuring compensation, not a decision to put money into the stock. See SEC Form 4 explained for the full set of transaction codes and what each one records.
The two ways these lists rank companies
Once you have a clean set of code P rows for a window, there are two common sort orders, and they answer different questions:
- Total purchase value. Sum the dollar value of every code P transaction per company over the window and sort descending. This favors large purchases by one or two insiders, often a founder or a large holder, and the dollar figures can be dominated by a single trade.
- Cluster buying. Count the number of distinct insiders who filed a code P transaction for the same company in the window. Several different officers or directors buying independently, even in smaller amounts, is a different pattern than one person buying once, because it is not one person's individual decision.
Neither ranking is inherently better. A list that only publishes one of the two is only showing you half of what the data supports.
Get this data as clean JSON
SecFeed turns SEC filings into structured data with one API call: GET /v1/insider-trading?code=P&minValue=100000. Free key, no card needed.
What these rankings do not show
A list built correctly from Form 4 code P data still has real gaps:
- It is not forward looking. Insiders report a transaction they already made. The form does not say why, and the SEC does not require a stated reason.
- It excludes Rule 10b5-1 plan trades from being "discretionary." Since April 1, 2023, every Form 4 carries a checkbox for whether the trade followed a prearranged Rule 10b5-1 trading plan. A purchase made under a plan set up months earlier reflects an old decision, not a reaction to anything happening now. A ranking that does not separate the two is mixing two different kinds of signal.
- It only covers reporting insiders. Officers, directors and 10% owners, not every employee who happens to buy shares.
- It says nothing about why the price moved afterward, if it did. Academic studies of insider trading disagree on how predictive it is, and none of that disagreement is resolved by a ranking list.
None of this makes Form 4 data less real. It means a "top insider buying stocks" list is a filtered view of what insiders disclosed, not a verdict on the stock.
Building a current ranking from the API
SecFeed's insider trading API parses every Form 4 into rows with the transaction code, dollar value, shares, role and the Rule 10b5-1 flag already extracted. To pull open market purchases over $100,000 in a recent window:
curl "https://secfeedapi.com/v1/insider-trading?code=P&minValue=100000&startDate=2026-10-01&endDate=2026-11-15&size=50" \
-H "Authorization: Bearer YOUR_API_KEY"
Each row looks like this:
{
"ticker": "EXMPL",
"cik": "0000320193",
"owner": "EXAMPLE INSIDER",
"role": "director",
"code": "P",
"shares": 8000,
"pricePerShare": 31.50,
"value": 252000,
"ownershipType": "D",
"is10b5_1": false,
"filedAt": "2026-11-12"
}
To turn a page of rows into a ranking, group by ticker and sum value for the purchase total, and count distinct owner values for the cluster buy count:
from collections import defaultdict
from secfeed import Client
sf = Client("YOUR_API_KEY")
rows = sf.insider_trades(code="P", minValue=100000, startDate="2026-10-01", endDate="2026-11-15", size=50)
totals = defaultdict(lambda: {"value": 0, "owners": set()})
for r in rows:
t = totals[r["ticker"]]
t["value"] += r["value"]
t["owners"].add(r["owner"])
ranked = sorted(totals.items(), key=lambda kv: kv[1]["value"], reverse=True)
for ticker, t in ranked[:10]:
print(ticker, t["value"], f"{len(t['owners'])} distinct insider(s)")
That loop is the whole mechanism behind most "top insider buying stocks" pages: pull code P rows for a window, group by issuer, sort by value or by distinct owner count. Filtering by minValue before grouping cuts out small, mechanical transactions that would otherwise clutter a value-based ranking.
Checking a ranking without writing code
If you just want to see current activity without building anything, the free insider buying tracker shows the latest open market purchases and flags cluster buys, with no signup required. For the full build, including pulling a whole month of filings in one call instead of paging through individual days, see the insider buying screener tutorial.
Frequently asked questions
What counts as a top insider buying stock?
There is no single official definition. Most rankings use open market purchases (Form 4 transaction code P) in a recent window, sorted either by total dollar value or by how many distinct insiders bought. Lists that include grants (code A) or option exercises (code M) are measuring something other than a purchase decision.
Is insider buying a reliable signal to buy a stock?
No single data point on its own predicts a stock's future price. Insider buying shows what an insider did with their own money, and that is useful context, but it is not a prediction, and the SEC does not represent Form 4 data as one. Treat these lists as what they are: disclosure, not advice.
How often do top insider buying lists update?
Form 4 filings are due within two business days of a transaction under Section 16(a), so a list that pulls directly from EDGAR can be close to current. A list based on a weekly or monthly batch will lag behind what insiders have actually filed.
What is a cluster buy?
A cluster buy is when several different insiders at the same company each file a code P purchase within a short window, independently of each other. It is one of the two main ways "top insider buying" rankings sort companies, the other being total dollar value purchased.
Does insider selling cancel out insider buying on these lists?
Only if the list computes net buying, which most do not. A company can appear on a "top buying" list by dollar value while the same insiders, or others at the company, sold a larger amount in the same window. Checking both code P and code S for a ticker over the same period gives the fuller picture.
Get this data as clean JSON
SecFeed turns SEC filings into structured data with one API call: GET /v1/insider-trading?code=P&minValue=100000. Free key, no card needed.
For information only, not investment advice. Data from public SEC filings; verify important figures on SEC.gov. See our AI Disclosure.