Blog / Insider trading
Insider trading

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.

By the SecFeed teamNovember 16, 20267 min read
Key takeaways

"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:

CodeMeaningCounts as a purchase?
POpen market or private purchaseYes
SOpen market or private saleNo, the opposite
AGrant, award or other acquisition from the companyNo, not bought on the market
MOption or derivative exerciseNo
FShares withheld to pay taxes on vestingNo
GBona fide giftNo
CConversion of a derivative securityNo

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:

  1. 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.
  2. 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.

Net buying is a third useful figure that most "top insider buying" lists skip: subtracting code S (sales) value from code P (purchase) value per company over the same window. An insider who buys $50,000 and separately sells $500,000 in the same month is a net seller, even though they show up on a buying list.

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.

Get a free API key →

What these rankings do not show

A list built correctly from Form 4 code P data still has real gaps:

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.

Get a free API key →

For information only, not investment advice. Data from public SEC filings; verify important figures on SEC.gov. See our AI Disclosure.