# SEC Insider Trading Signals: Form 4 Cluster Buys (`donzely/sec-insider-signals`) Actor

Turns SEC Form 4 filings into scored insider trading signals: cluster buying, large buys, CEO/CFO purchases and first buy in months, plus clean open-market trades with value, roles, holdings change and 10b5-1 flag. Official EDGAR data.

- **URL**: https://apify.com/donzely/sec-insider-signals.md
- **Developed by:** [Grzegorz Pryjma](https://apify.com/donzely) (community)
- **Categories:** Automation, Developer tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 85.7% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $10.00 / 1,000 insider signals

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## SEC Insider Trading Signals: Form 4 Cluster Buys, Large Buys & CEO Purchases

**Stop reading hundreds of Form 4 filings. Get the insider trades that matter, scored.** This Actor reads every SEC Form 4 filing in your date range (or for your tickers), keeps only real open-market purchases and sales, and turns them into **insider trading signals**: cluster buying, large buys, CEO/CFO purchases and first purchase in months, each with a **0–100 score** and a one-line summary. Clean, enriched trade rows come with it.

Data comes straight from **SEC EDGAR**, the official source, with no third-party aggregator and no login.

### What you get

**Signal rows** (`type: "signal"`), one per stock and direction:

| Signal | Meaning |
|---|---|
| `CLUSTER_BUY` | 2+ different insiders bought on the open market within 14 days (configurable) |
| `LARGE_BUY` | A purchase of $250k+ or one that raised the insider's holding by 20%+ |
| `CEO_CFO_BUY` | The CEO or CFO bought shares with their own money |
| `FIRST_BUY_IN_MONTHS` | No insider of this company bought on the open market in the previous 6 months |
| `CLUSTER_SELL` / `LARGE_SELL` | 2+ insiders selling, or a $250k+ sale of 20%+ of the holding. Sales under 10b5-1 plans are excluded |

**Trade rows** (`type: "trade"`): ticker, company, insider name, roles (CEO, CFO, Director, 10% owner...), transaction code and description, date, shares, price, **value in USD**, shares owned after, **% change in holdings**, direct or indirect ownership, **10b5-1 plan flag**, footnotes and a link to the filing.

Awards, option exercises, tax withholding and gifts are excluded by default because they say nothing about what insiders think. You can add them back with `transactionCodes`.

#### Signal score (0–100)

| Component | Points |
|---|---|
| Each additional distinct insider | 15 (max 45) |
| Total value ≥ $25k / $100k / $250k / $1M | 6 / 12 / 18 / 25 |
| CEO or CFO among the insiders | 15 |
| Holding changed by ≥ 20% | 10 |
| First open-market buy in 6 months | 10 |

Related entities filing separately, such as two funds of the same investment firm, count as one insider.

### Who it's for

- Investors and traders screening for insider buying
- Builders of stock screeners, newsletters, Discord/Telegram bots and trading dashboards
- Analysts who need clean Form 4 data with values and roles already computed

### Input

| Field | Description |
|---|---|
| `tickers` | Optional. Limit to tickers such as `AAPL`, `NVDA`, `BRK-B`. Empty scans every company |
| `lastDays` | Business days to scan without tickers, default 1. With tickers, calendar days, default 90 |
| `dateFrom`, `dateTo` | Filing date range, `YYYY-MM-DD` |
| `onlySignals` | Output only signal rows |
| `signalTypes`, `minScore` | Keep only chosen signal types, e.g. `CLUSTER_BUY`, and scores above a threshold |
| `transactionCodes` | Default `P` (purchase) and `S` (sale) |
| `minTradeValueUsd`, `roles` | Filter trades by size and insider role |
| `minClusterInsiders`, `clusterWindowDays`, `largeBuyValueUsd`, `largeBuyHoldingsPct`, `firstBuyLookbackMonths` | Tune the signal rules |
| `excludePlannedSales` | Leave 10b5-1 plan sales out of sell signals, default on |
| `maxItems` | Maximum output rows. Signals come first |

Daily insider-buying alerts: schedule the Actor every weekday with `{"onlySignals": true}`.

```json
{ "tickers": ["NVDA", "TSLA"], "lastDays": 180, "onlySignals": false, "maxItems": 100 }
```

### Output example

```json
{
  "type": "signal",
  "direction": "BULLISH",
  "ticker": "MTDR",
  "signals": ["CLUSTER_BUY", "LARGE_BUY", "CEO_CFO_BUY"],
  "score": 82,
  "distinctInsiders": 4,
  "totalValueUsd": 223705,
  "maxHoldingsChangePct": 21.5,
  "summary": "4 insiders bought $224k of MTDR (Calvert Christopher P [CFO], Erman Bryan A [PRESIDENT], ...).",
  "filingUrls": ["https://www.sec.gov/Archives/edgar/data/..."]
}
```

A run summary with the top bullish signals is saved to the key-value store record `SUMMARY`.

### Pricing

Pay per result, no start fee:

- **Signal row: $0.01**
- **Trade row: $0.002**

A daily run with `onlySignals` typically returns 10–30 signals, so about $0.10–0.30.

### Speed and limits

- About 450 Form 4 filings are filed per business day, and each one is read from EDGAR. One business day takes about 1–2 minutes. Use tickers for long periods.
- Today's EDGAR daily index is published in the evening (US Eastern time). Earlier in the day the latest business day is yesterday.
- Prices come from the filing. Some filings report a weighted average price for several fills.
- Signals are mechanical rules, not investment advice.

### SEC fair access

The Actor follows the SEC's [fair access rules](https://www.sec.gov/os/accessing-edgar-data): at most 8 requests per second, below the 10-per-second limit, with a declared User-Agent that names this tool and its public page. It uses only public EDGAR files: the daily form index, company submissions JSON and the filing documents.

### FAQ

**Is this data free to use?** EDGAR filings are public US government records.

**Why are there fewer trades than Form 4 filings?** Most Form 4s report awards, option exercises or tax withholding. Only open-market purchases and sales are kept by default.

**Can I track specific insiders?** Filter the trade rows by `insiderName` or `insiderCik`, or limit to the company tickers they report on.

# Actor input Schema

## `tickers` (type: `array`):

Limit to these US tickers, e.g. AAPL, NVDA, BRK-B. Leave empty to scan every company that filed Form 4 in the period.

## `lastDays` (type: `integer`):

Without tickers: business days of EDGAR filings to scan (about 450 Form 4 filings per day). With tickers: calendar days. Ignored when a date range is set. Default 1 (90 with tickers). Each extra business day adds about 1 minute.

## `dateFrom` (type: `string`):

Optional start of the filing date range.

## `dateTo` (type: `string`):

Optional end of the filing date range. Defaults to today.

## `onlySignals` (type: `boolean`):

Output only signal rows (cluster buys, large buys, CEO/CFO buys, cluster sells), not individual trades.

## `signalTypes` (type: `array`):

Keep only signals that contain at least one of these types. Empty = all.

## `minScore` (type: `integer`):

Keep only signals with at least this score (0-100).

## `transactionCodes` (type: `array`):

Form 4 codes to keep: P = open-market purchase, S = open-market sale. Add A (award), M (option exercise), F (tax withholding), G (gift) if needed.

## `minTradeValueUsd` (type: `integer`):

Skip trades below this value (shares × price).

## `roles` (type: `array`):

Keep only trades by insiders with one of these roles. Empty = all.

## `minClusterInsiders` (type: `integer`):

Distinct insiders trading the same stock in the same direction to count as a cluster.

## `clusterWindowDays` (type: `integer`):

Maximum days between the first and last trade in a cluster.

## `largeBuyValueUsd` (type: `integer`):

A single trade at or above this value triggers LARGE_BUY / LARGE_SELL.

## `largeBuyHoldingsPct` (type: `integer`):

A trade that changes the insider's holdings by at least this % triggers LARGE_BUY / LARGE_SELL.

## `firstBuyLookbackMonths` (type: `integer`):

Flag FIRST_BUY_IN_MONTHS when no insider bought on the open market in this many months before (checked for the 25 largest buys). 0 = off.

## `excludePlannedSales` (type: `boolean`):

Pre-scheduled sales under Rule 10b5-1 plans say little about insider views, so they are left out of sell signals (still listed as trades).

## `includeTrades` (type: `boolean`):

Also output individual trades after the signals. Default: on unless 'Only signals' is set.

## `includeAmendments` (type: `boolean`):

Also parse amended filings.

## `maxFilings` (type: `integer`):

Safety limit for long ranges without tickers (about 2 minutes per 1,000 filings).

## `maxItems` (type: `integer`):

Signals come first, then trades (newest first).

## `proxyConfiguration` (type: `object`):

Not needed normally. SEC allows up to 10 requests per second; this actor uses at most 8.

## Actor input object example

```json
{
  "tickers": [],
  "lastDays": 1,
  "onlySignals": false,
  "minScore": 0,
  "transactionCodes": [
    "P",
    "S"
  ],
  "minTradeValueUsd": 0,
  "minClusterInsiders": 2,
  "clusterWindowDays": 14,
  "largeBuyValueUsd": 250000,
  "largeBuyHoldingsPct": 20,
  "firstBuyLookbackMonths": 6,
  "excludePlannedSales": true,
  "includeAmendments": false,
  "maxFilings": 3000,
  "maxItems": 100,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `signals` (type: `string`):

No description

## `trades` (type: `string`):

No description

## `results` (type: `string`):

No description

## `summary` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "tickers": [],
    "lastDays": 1,
    "maxItems": 100
};

// Run the Actor and wait for it to finish
const run = await client.actor("donzely/sec-insider-signals").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "tickers": [],
    "lastDays": 1,
    "maxItems": 100,
}

# Run the Actor and wait for it to finish
run = client.actor("donzely/sec-insider-signals").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "tickers": [],
  "lastDays": 1,
  "maxItems": 100
}' |
apify call donzely/sec-insider-signals --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,donzely/sec-insider-signals"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/TgrcM2FOaav5IV8P8/builds/0kUjB1FNhem5DZjd4/openapi.json
