Blog / Insider trading
Insider trading

Stock Market Insider Trading: What the Public Data Shows

What "stock market insider trading" data actually is, who has to report it, every transaction code you will see, and how to pull it market-wide, not just by company.

By the SecFeed teamNovember 17, 20268 min read
Key takeaways

"Stock market insider trading" almost always refers to the trades that a company's officers, directors and large shareholders are legally required to report to the SEC, not the rare cases of trading on secret information that make headlines. Every one of those reports becomes a public record, filed under Section 16 of the Securities Exchange Act of 1934, and it covers every listed company at once, not just the few that get written about. This guide explains what that data contains, the codes it uses, and how to query it across the whole market instead of one ticker at a time.

Two different things share one name

In everyday use, "insider trading" covers two different things. The first is the legal, disclosed kind: an officer, director or holder of more than 10% of a company's stock buying or selling that company's securities and reporting it to the SEC, usually within two business days, on Form 4. The second is the illegal kind: trading (or tipping someone else to trade) while in possession of material, nonpublic information, in breach of a duty, which the SEC pursues under Rule 10b-5. The first kind happens constantly and is entirely public. The second is what most news coverage means by the phrase, and it is a small fraction of all reported insider activity. For a closer look at where that legal line sits, see what insider trading means in securities law.

Because most search results about "stock market insider trading" blend both meanings, it is worth being specific: the dataset behind this post is Section 16 disclosure, filed on Forms 3, 4 and 5. It tells you what an insider did with their own holdings and reported to the SEC. It does not tell you why, and it does not say whether a particular trade was based on information the rest of the market did not have.

Who has to report, and on what

Section 16(a) of the Exchange Act requires three groups of people to report their holdings and transactions in a company's equity securities:

They file three forms with the SEC:

FormWhen it is filed
Form 3Within 10 days of becoming an officer, director or 10% owner, to disclose starting holdings
Form 4Within two business days of most transactions (purchases, sales, grants, exercises, gifts)
Form 5Annually, for a small set of transactions that were eligible for deferred reporting during the year

Form 4 is the one that carries almost all of the activity people mean by "stock market insider trading," because it covers actual transactions, not just year-end holdings.

Get this data as clean JSON

SecFeed turns SEC filings into structured data with one API call: GET /v1/insider-trading?startDate=2026-11-10&endDate=2026-11-16&size=50. Free key, no card needed.

Get a free API key →

Every transaction code, not just purchases

A lot of "insider trading" content online narrows straight to open market purchases, because that is the part people treat as a bullish signal. Market-wide data includes far more than that. Each line on a Form 4 carries a one or two letter transaction code that says exactly what happened:

CodeMeaning
POpen market or private purchase
SOpen market or private sale
AGrant or award
MExercise or conversion of a derivative security (exempt)
FPayment of exercise price or tax by delivering securities
GBona fide gift
DDisposition to the issuer
CConversion of a derivative security
XExercise of an in-the-money or at-the-money derivative
LSmall acquisition
JOther acquisition or disposition

Only P and S represent an insider actually buying or selling stock on the open market or in a private transaction. Codes like A, M and F are mechanical: equity compensation vesting, options being exercised, or shares withheld to cover taxes. None of those is the insider deciding, that day, to put money into or take money out of the stock. Form 4 transaction codes covers the full list in more detail if you need every code SecFeed returns.

If you are trying to measure actual buying and selling rather than total Form 4 volume, filter to code=P for purchases and code=S for sales separately. Mixing all codes together will make routine compensation activity look like trading.

Pulling the data market-wide

Most guides to this topic, including the ones already on this blog, query one company at a time: recent insider buying looks at the newest purchases across a short window, and SoFi insider buying scopes everything to one issuer. But the underlying dataset is market-wide by design. SecFeed's Insider Trading API accepts a date range with no ticker or cik at all, which returns every reported transaction from every issuer in that window, ordered by filing date.

from secfeed import Client

client = Client(api_key="YOUR_KEY")

result = client.get("/v1/insider-trading", params={
    "startDate": "2026-11-10",
    "endDate": "2026-11-16",
    "size": 50,
})

for tx in result["transactions"]:
    print(tx["issuer_name"], tx["ticker"], tx["code"], tx["shares"], tx["value"])

A response from a call like that spans many issuers in a single page:

{
  "total": 41820,
  "transactions": [
    {
      "accession": "0001234567-26-000011",
      "tbl": "nonDerivative",
      "code": "S",
      "codeDescription": "Open market or private sale",
      "shares": 4200.0,
      "price": 58.11,
      "value": 244062.0,
      "form": "4",
      "filed": "2026-11-12",
      "issuer_cik": 9999001,
      "issuer_name": "EXAMPLE MANUFACTURING CORP",
      "ticker": "EXMF",
      "owners": [
        {"name": "Example Officer", "isOfficer": true, "isDirector": false, "officerTitle": "Chief Financial Officer"}
      ],
      "aff10b5one": false
    },
    {
      "accession": "0007654321-26-000003",
      "tbl": "nonDerivative",
      "code": "P",
      "codeDescription": "Open market or private purchase",
      "shares": 1500.0,
      "price": 22.4,
      "value": 33600.0,
      "form": "4",
      "filed": "2026-11-12",
      "issuer_cik": 9999002,
      "issuer_name": "EXAMPLE LOGISTICS INC",
      "ticker": "EXLG",
      "owners": [
        {"name": "Example Director", "isOfficer": false, "isDirector": true}
      ],
      "aff10b5one": false
    }
  ]
}

(Issuer and owner names here are placeholders; a real response carries the actual filer and company from that filing.) The total field alone gives a sense of scale: a single week of Form 3, 4 and 5 transactions across the whole market, not just one company, runs into the tens of thousands of rows, because nearly every public company has multiple reporting insiders and most of them file at least a few times a year.

Each transaction carries aff10b5one, a flag added to Form 4 since 2023 that marks whether the trade was made under a pre-arranged Rule 10b5-1 trading plan. That flag is one of the few ways to tell, from the filing itself, whether an insider decided to trade that specific day or was following a schedule set months earlier.

Why raw counts are not a signal

Market-wide insider data is large, routine and mostly uninteresting on its own. Most of the volume is compensation mechanics (codes A, F and M), not a decision to buy or sell. Even restricted to codes P and S, a high count of insider sales in a given week says more about vesting schedules, tax dates and diversification than about anyone's view of the stock, and a cluster of purchases at one company is not a prediction, just a disclosed fact. Treat this data the way you would treat a filing: as a record of what happened, not as investment advice. If you want to go from a market-wide view to one company's full history, the insider trading analysis for one company tutorial walks through that narrower query, and the insider buying screener tutorial shows how to build filtered, ranked views instead of reading the raw feed.

Frequently asked questions

Is all stock market insider trading illegal?

No. Most of what the SEC calls insider trading in its disclosure system is legal and routine: officers, directors and large shareholders reporting their own trades, usually under Section 16 of the Exchange Act. It becomes illegal only when someone trades, or tips another person to trade, while holding material nonpublic information in breach of a duty of trust.

How fast does insider trading data become public?

Most transactions must be reported on Form 4 within two business days of the trade. The filing is public as soon as it is accepted by EDGAR, which SecFeed's Insider Trading API ingests directly from the filing index.

Can I query insider trading across the whole market instead of one stock?

Yes. The /v1/insider-trading endpoint only requires a date range; ticker and cik are optional filters, not requirements, so you can pull every reported transaction from every issuer in a given window.

What is the difference between Form 3, Form 4 and Form 5?

Form 3 discloses an insider's starting holdings when they first become an officer, director or 10% owner. Form 4 reports most individual transactions within two business days. Form 5 is an annual catch-up filing for a narrow set of transactions eligible for deferred reporting.

Does a transaction code tell you whether a trade was planned in advance?

Not by itself, but Form 4 has carried a separate checkbox since 2023 indicating whether the transaction was made under a Rule 10b5-1 trading plan. SecFeed exposes this as the aff10b5one field alongside the transaction code.

Get this data as clean JSON

SecFeed turns SEC filings into structured data with one API call: GET /v1/insider-trading?startDate=2026-11-10&endDate=2026-11-16&size=50. 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.