# SEC Insider Cluster-Buy & Whale Trade Scanner (Form 4) (`jiro90/sec-insider-cluster-buy-scanner`) Actor

Real-time SEC EDGAR Form 4 scanner detecting high-conviction insider cluster buys, C-suite accumulations (CEO, CFO, Board), and multi-buyer patterns before market breakout.

- **URL**: https://apify.com/jiro90/sec-insider-cluster-buy-scanner.md
- **Developed by:** [Jiro](https://apify.com/jiro90) (community)
- **Categories:** Business, Developer tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $45.00 / 1,000 cluster_buy_alerts

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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 Form 4 Insider Cluster-Buy & Whale Trade Scanner 📈

Real-time SEC EDGAR Form 4 scanner detecting **insider cluster buying**, C-suite accumulations (CEO, CFO, Board members), and open-market whale purchases before mainstream market attention.

***

### Why Insider Cluster Buying Matters

Academic research and quantitative hedge funds consistently demonstrate that **insider open-market purchases (Transaction Code 'P')** produce significant excess alpha. Insiders sell for dozens of routine reasons (taxes, options expiry, estate planning), but **they only buy for one reason: they believe the stock is undervalued**.

#### The Most Bullish Signal: "Cluster Buying"

When multiple corporate insiders (e.g., CEO, CFO, and independent directors) buy stock within the same week using their own personal cash, the signal strength is dramatically higher than isolated insider buys.

This Actor continuously monitors the official SEC EDGAR feed, extracts and parses raw Form 4 XML filings, filters out routine stock grants and options exercises, and calculates an **Alpha Conviction Score (0–100)** for each cluster.

***

### Key Features

- ⚡ **Direct SEC EDGAR Atom Feed & XML Parsing**: Zero third-party API dependencies or delayed middlemen.
- 🎯 **Open-Market Filter (Code 'P')**: Excludes stock grants, option exercises, gifts, and transfers.
- 👥 **Cluster Detection**: Identifies companies where $\ge 2$ distinct executives/directors are buying concurrently.
- 👔 **C-Suite Multipliers**: Prioritizes filings from CEOs, CFOs, COOs, and Board Chairmen.
- 🐋 **Whale Trade Alerts**: Detects single large conviction purchases ($\ge $200,000$).
- 🛡️ **10b5-1 Plan Filter**: Optionally separate pre-scheduled corporate plans from spontaneous discretionary buys.
- 📊 **Pay-Per-Event (PPE)**: Ultra-cost-effective for automated 5-minute or 15-minute cron triggers.

***

### Input Configuration

| Parameter | Type | Default | Description |
|:---|:---:|:---:|:---|
| `maxFilingsToScan` | integer | `60` | Number of recent Form 4 filings to scan from SEC EDGAR (up to 200). |
| `minClusterBuyers` | integer | `2` | Minimum distinct insiders buying to trigger a cluster alert. |
| `minTotalBuyUsd` | integer | `25000` | Minimum aggregate purchase amount ($) across the company. |
| `includeSingleLargeBuys` | boolean | `true` | Include single whale executive purchases $\ge singleBuyMinUsd$. |
| `singleBuyMinUsd` | integer | `200000` | Dollar threshold for single whale purchases. |
| `exclude10b51` | boolean | `false` | Exclude pre-planned Rule 10b5-1 transactions. |
| `maxAlerts` | integer | `50` | Maximum number of alerts to output into the dataset. |

***

### Output Dataset Schema

Each alert record provides rich structured intelligence:

```json
{
  "ticker": "ACME",
  "companyName": "Acme Robotics Corp",
  "cik": "0001234567",
  "score": 92,
  "type": "CLUSTER_BUY",
  "buyersCount": 3,
  "buyers": [
    {
      "name": "Jane Doe",
      "title": "Chief Executive Officer",
      "isOfficer": true,
      "isDirector": true,
      "shares": 10000,
      "totalUsd": 250000
    },
    {
      "name": "John Smith",
      "title": "Chief Financial Officer",
      "isOfficer": true,
      "isDirector": false,
      "shares": 4000,
      "totalUsd": 100000
    }
  ],
  "totalBuyUsd": 350000,
  "totalShares": 14000,
  "avgPrice": 25.00,
  "hasCSuite": true,
  "secFilingUrl": "https://www.sec.gov/Archives/edgar/data/1234567/0001234567-24-000001.txt",
  "scannedAt": "2026-11-20T01:45:00.000Z"
}
```

***

### Recommended Automation Schedule

For live trading alerts, set up an Apify schedule:

- **Frequency**: Every 10–15 minutes during US market hours (9:00 AM – 5:30 PM EST).
- **Webhook / Slack**: Pipe high-conviction alerts (`score >= 80`) directly into Discord, Slack, or trading execution bots.

# Actor input Schema

## `maxFilingsToScan` (type: `integer`):

Number of recent Form 4 filings to fetch from the SEC EDGAR Atom feed (up to 200).

## `minClusterBuyers` (type: `integer`):

Minimum number of distinct insiders buying company stock to trigger a Cluster Buy alert.

## `minTotalBuyUsd` (type: `integer`):

Minimum aggregate dollar value of insider purchases across the cluster to qualify.

## `includeSingleLargeBuys` (type: `boolean`):

Also alert when a single high-profile insider or C-suite executive makes an exceptionally large open-market purchase.

## `singleBuyMinUsd` (type: `integer`):

Threshold for single executive whale purchases when includeSingleLargeBuys is enabled.

## `exclude10b51` (type: `boolean`):

Filter out pre-scheduled 10b5-1 trading plan transactions to focus purely on spontaneous discretionary buys.

## `maxAlerts` (type: `integer`):

Maximum number of high-conviction cluster alerts to output into the dataset.

## Actor input object example

```json
{
  "maxFilingsToScan": 60,
  "minClusterBuyers": 2,
  "minTotalBuyUsd": 25000,
  "includeSingleLargeBuys": true,
  "singleBuyMinUsd": 200000,
  "exclude10b51": false,
  "maxAlerts": 50
}
```

# Actor output Schema

## `alerts` (type: `string`):

Dataset containing high-conviction insider cluster buys, C-suite purchases, and conviction scores.

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

Key-value store record with scan statistics, top insider clusters, and parameters.

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("jiro90/sec-insider-cluster-buy-scanner").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 = {}

# Run the Actor and wait for it to finish
run = client.actor("jiro90/sec-insider-cluster-buy-scanner").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 '{}' |
apify call jiro90/sec-insider-cluster-buy-scanner --silent --output-dataset

```

## MCP server setup

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

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/6Zb8F70VuKAlJXbwe/builds/ts2Zd5GxW6wAcGu1g/openapi.json
