# U.S. SEC Form 4 Open-Market Insider & Cluster Buy Signal Feed (`quantforge_data/sec-form4-cluster-insider`) Actor

Prebuilt U.S. SEC EDGAR Form 4 structured snapshots separating open-market buys (P) and sales (S) from awards/exercises, with Rule 10b5-1 flags, officer/director roles, and cluster insider counts. Strictly PII-free. Pay-Per-Event & Standby MCP.

- **URL**: https://apify.com/quantforge_data/sec-form4-cluster-insider.md
- **Developed by:** [QuantForge Data](https://apify.com/quantforge_data) (community)
- **Categories:** Business, Automation, MCP servers
- **Features:** Limited permissions, Single-tenant, Server interface
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.60 / 1,000 form 4 filing items

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

Learn more: https://docs.apify.com/actors/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

## U.S. SEC Form 4 Open-Market Insider & Cluster Buy Signal Feed

Published by **QuantForge Data** (`quantforge_data`).

A clean, prebuilt, **strictly PII-free** U.S. SEC EDGAR Form 4 signal feed built for event-driven equity bots, swing/day trading systems, quantitative researchers, and AI financial agents. Raw SEC Form 4 XML filings are filled with non-directional noise (RSU grants, option exercises, tax withholdings, and pre-scheduled Rule 10b5-1 sales). This Actor streams daily pre-parsed snapshots that isolate discretionary open-market buys (code `P`) and sales (code `S`), flag Rule 10b5-1 trading plans, expose corporate executive roles, and count multi-insider clusters per ticker — with zero cloud EDGAR scraping overhead.

### Why Use This Actor

- **Clean Open-Market vs. Compensation Separation**: Classifies every filing into `open_market_buy` (code `P`), `open_market_sell` (code `S`), or `non_open_market_award_or_exercise` (`A`/`M`/`F`/`G`), with aggregated USD notional and share totals.
- **One-Flag Rule 10b5-1 Filtering**: Parses `<aff10b5One>` checkboxes (and footnote disclosures) into `has_10b5_1_flag`, letting trading bots exclude routine scheduled executive sales with `exclude_10b5_1: true`.
- **Multi-Insider Cluster Detection**: Computes `cluster_insider_count` (distinct corporate insiders filing on the same ticker within the snapshot) so you can immediately isolate high-conviction executive cluster buys.
- **Strictly PII-Free by Design**: Personal insider names, home/street addresses, signatures, emails, and phone numbers are stripped before snapshot creation; only corporate role flags and titles are emitted.
- **Batch, Standby REST API, and Native MCP Support**: Run scheduled Apify dataset pulls, query the Standby REST endpoint (`GET`/`POST /v1/filings`), or integrate directly with AI agents over JSON-RPC 2.0 MCP (`POST /mcp`).

### Output Data Fields

Each returned dataset item (or Standby/MCP record) includes:

| Field | Type | Description |
|---|---|---|
| `accession_number` | `string` | Unique SEC EDGAR filing accession number |
| `filing_date` | `string` | SEC filing date (`YYYY-MM-DD`) |
| `issuer_cik` | `string` | 10-digit zero-padded issuer Central Index Key (CIK) |
| `issuer_name` | `string` | Public issuer legal name |
| `ticker` | `string` | Normalized uppercase issuer trading symbol |
| `insider_role` | `object` | Corporate role flags only (`is_director`, `is_officer`, `is_ten_percent_owner`, `officer_title`) — no personal names or addresses |
| `has_10b5_1_flag` | `boolean` | `true` if filed under a Rule 10b5-1 pre-scheduled trading plan |
| `transactions` | `object` | Aggregated `open_market_buy_usd`, `open_market_sell_usd`, `net_open_market_usd`, `buy_shares`, `sell_shares`, and `transaction_codes` |
| `signal_tag` | `string` | `"open_market_buy"`, `"open_market_sell"`, or `"non_open_market_award_or_exercise"` |
| `cluster_insider_count` | `integer` | Count of distinct insiders filing for the same ticker in the snapshot |
| `source_url` | `string` | Direct link to the public SEC EDGAR Form 4 XML filing |
| `attribution` | `string` | Source attribution string |

### Filter Inputs

| Input Field | Type | Default | Description |
|---|---|---|---|
| `ticker` | `string` | `null` | Single ticker or comma-separated list (case-insensitive, e.g., `AAPL,MSFT`) |
| `signal_tag` | `string` | `null` | One of `open_market_buy`, `open_market_sell`, `non_open_market_award_or_exercise` |
| `min_buy_usd` | `number` | `null` | Minimum `transactions.open_market_buy_usd` notional in USD |
| `exclude_10b5_1` | `boolean` | `false` | Exclude filings where `has_10b5_1_flag` is `true` |
| `officers_only` | `boolean` | `false` | Require `insider_role.is_officer == true` |
| `min_cluster_insiders` | `integer` | `null` | Minimum `cluster_insider_count` per ticker (`>= 1`) |
| `sort_by` | `string` | `"snapshot"` | Sort order: `snapshot`, `buy_usd`, `sell_usd`, `net_usd`, `cluster`, `filing_date` |
| `limit` | `integer` | `50` | Maximum records returned (`1` to `1000`) |
| `snapshot_url` | `string` | env default | Optional HTTPS URL override pointing to a custom `snapshot.jsonl` |

#### Example Batch Input

```json
{
  "signal_tag": "open_market_buy",
  "exclude_10b5_1": true,
  "officers_only": true,
  "min_buy_usd": 10000,
  "min_cluster_insiders": 2,
  "sort_by": "buy_usd",
  "limit": 25
}
```

### Standby REST API & MCP Server

When enabled in Apify Standby Mode, the Actor exposes low-latency HTTP and MCP endpoints:

- `GET /` — Service metadata, pricing, attribution, and Apify container readiness probe
- `GET /health` — Health status JSON
- `GET /v1/filings` — Query filtered filings via URL query parameters (e.g., `?signal_tag=open_market_buy&exclude_10b5_1=true&limit=20`)
- `POST /v1/filings` — Query filtered filings with a JSON filter body
- `POST /mcp` — JSON-RPC 2.0 MCP endpoint (`initialize`, `ping`, `tools/list`, `tools/call`)

#### MCP Tool: `query_sec_form4_insiders`

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "query_sec_form4_insiders",
    "arguments": {
      "signal_tag": "open_market_buy",
      "exclude_10b5_1": true,
      "officers_only": true,
      "limit": 10
    }
  }
}
```

### Pricing (Pay-Per-Event)

| Event Name | Price (USD) | Description |
|---|---|---|
| `apify-actor-start` | `$0.00005` | Standard Apify startup event per run (covers first 5 seconds of compute) |
| `form4-filing-item` | `$0.002` | Per filtered Form 4 signal record returned (`$2.00 / 1,000 items`) |

### More Feeds & MCP Servers by QuantForge Data

- [**U.S. SEC Form D Startup & Private Funding Leads Feed**](https://apify.com/quantforge_data/sec-form-d-funding-leads) — Daily PII-free Regulation D private placement & startup fundraising leads from SEC EDGAR.
- [**Crypto Perpetual Funding Rate APR & Cross-Venue Spread Feed**](https://apify.com/quantforge_data/crypto-perp-funding-arb) — Hourly multi-venue funding APR, basis, OI, and delta-neutral carry spreads.
- [**Polymarket Probability Inefficiency & Liquidity Scanner Feed**](https://apify.com/quantforge_data/polymarket-inefficiency-scanner) — Multi-outcome NegRisk overround/underround and bid-ask spread scanner.
- [**Doc-to-LLM Markdown, Table JSON, RAG Chunker & PII Redactor MCP**](https://apify.com/quantforge_data/doc-to-llm-markdown-mcp) — Zero-scraping deterministic HTML-to-Markdown, table parser, RAG chunker, and PII redactor.

### FAQ, Legal Attribution & PII Exclusion

#### Why does this feed strip personal insider names?

To keep B2B quant pipelines, AI agents, and CRM integrations strictly PII-free (`pii_excluded: true`). Every record still preserves corporate governance role (`is_officer`, `is_director`, `is_ten_percent_owner`, `officer_title`), multi-insider cluster count, and the direct `source_url` to the official SEC EDGAR XML filing.

#### How often are Form 4 snapshots refreshed?

Every 6 hours via compliant SEC EDGAR daily-index ingestion adhering strictly to SEC Fair Access guidelines.

- **Data Source**: Unofficial structured extract derived from public U.S. Securities and Exchange Commission (SEC) EDGAR Form 4 filings (`https://www.sec.gov/search-filings/edgar-search-assistance/accessing-edgar-data`). Upstream batch ingestion adheres strictly to the SEC EDGAR Fair Access Policy (descriptive User-Agent and <= 3 req/sec rate limit).
- **PII Strictly Excluded**: Personal names (`rptOwnerName`), personal home/street addresses (`reportingOwnerAddress`), signatures, emails, and phone numbers are **completely excluded** from all snapshots and API outputs. Distinct insider counts are computed via transient one-way in-memory hashes that are never persisted or emitted.
- **Disclaimer**: Provided as an unofficial structured extract for informational and quantitative research purposes only. Not investment advice; verify critical decisions against primary SEC filings via `source_url`.

### Local CLI & Standby Smoke Testing

The reader uses only the Python 3 standard library locally (`apify` is imported dynamically only inside Apify Cloud):

```bash
python main.py --snapshot-file snapshot.jsonl --signal-tag open_market_buy --exclude-10b5-1 --limit 5
python main.py --snapshot-file snapshot.jsonl --serve-standby --port 4321
```

# Actor input Schema

## `ticker` (type: `string`):

Optional equity ticker symbol or comma-separated list (case-insensitive, e.g., AAPL,MSFT,HSIC).

## `signal_tag` (type: `string`):

Filter filings by normalized transaction classification.

## `min_buy_usd` (type: `number`):

Filter filings where transactions.open_market_buy_usd is greater than or equal to this USD amount.

## `exclude_10b5_1` (type: `boolean`):

When enabled, exclude filings flagged with a Rule 10b5-1 pre-scheduled trading plan (has_10b5_1_flag = true).

## `officers_only` (type: `boolean`):

When enabled, return only filings where insider_role.is_officer is true.

## `min_cluster_insiders` (type: `integer`):

Filter tickers with at least this many distinct insiders filing within the snapshot (cluster_insider_count >= N).

## `sort_by` (type: `string`):

Ordering of returned filing records.

## `limit` (type: `integer`):

Maximum number of filtered filing records to return (1..1000).

## `snapshot_url` (type: `string`):

Optional HTTPS URL to a prebuilt snapshot.jsonl. Overrides the Actor SNAPSHOT_URL environment variable when provided.

## Actor input object example

```json
{
  "exclude_10b5_1": false,
  "officers_only": false,
  "sort_by": "snapshot",
  "limit": 50
}
```

# Actor output Schema

## `resultsDataset` (type: `string`):

Normalized PII-free SEC Form 4 filing records with open-market notional values, 10b5-1 flags, and cluster counts.

## `summaryOutput` (type: `string`):

Matched count, delivered count, charged PPE events, and active query filter metadata.

# 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("quantforge_data/sec-form4-cluster-insider").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("quantforge_data/sec-form4-cluster-insider").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 quantforge_data/sec-form4-cluster-insider --silent --output-dataset

```

## MCP server setup

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

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/EhbQfdQLWsZaZ8qTt/builds/TFX4CEvUGCpYaYaK4/openapi.json
