# SEC Insider Trading Monitor (`gochujang/sec-insider-trading`) Actor

Track corporate insider stock trades (Form 4 filings) from SEC EDGAR. Monitor executive and director buy/sell activity for any US public company. No API key required.

- **URL**: https://apify.com/gochujang/sec-insider-trading.md
- **Developed by:** [Hojun Lee](https://apify.com/gochujang) (community)
- **Categories:** Business, Developer tools
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.00 / 1,000 insider trade trackeds

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/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## SEC Insider Trading Monitor

> Track **corporate insider stock trades** (Form 4 filings) in real time. Monitor executive and director buy/sell activity for any US public company — straight from SEC EDGAR. **No API key required.**

### What does SEC Insider Trading Monitor do?

Corporate insiders (executives, directors, and 10%+ shareholders) are required to disclose stock trades within 2 business days under Section 16 of the Securities Exchange Act. This actor scrapes those Form 4 disclosures from SEC EDGAR and returns structured trade records: who bought or sold what, when, and for how much.

Run it with default settings to get the most recent insider trades across all public companies (filtered to $100K+ transactions). Filter by company or ticker to track specific stocks.

***

### Why use this?

- **Alpha signal** — Insiders consistently outperform the market. Research shows insider purchases predict positive returns 12-18 months out. Following cluster buys (multiple insiders buying the same stock) is one of the most reliable signals in quant finance.
- **No subscription fees** — Platforms like Insider Monkey, OpenInsider, and Finviz charge $100–500/month for this data. SEC EDGAR is free and official.
- **Schedulable** — Run weekly on Apify Scheduler to always have fresh insider data.
- **No API key** — SEC EDGAR's official API is free and unrestricted.

***

### Use Cases

1. **Cluster buy detection** — Find stocks where 3+ insiders bought in the same week
2. **Executive conviction signal** — Identify when a CEO buys shares in the open market (vs. options/awards)
3. **Short squeeze research** — Short sellers watch insider selling; pair with short interest data
4. **Quant research** — Export insider trades as a feature for ML-based stock prediction
5. **Corporate governance** — Monitor conflict-of-interest trades before earnings or key announcements

***

### Input Parameters

| Parameter | Type | Default | Description |
|---|---|---|---|
| `company` | string | — | Company name filter (e.g. `Apple`, `Nvidia`) |
| `ticker` | string | — | Stock ticker (e.g. `AAPL`, `NVDA`) |
| `insiderName` | string | — | Insider name filter (partial match) |
| `transactionType` | string | all | `buy`, `sell`, or empty for all |
| `minValue` | integer | 100000 | Min transaction value in USD |
| `daysBack` | integer | 7 | How many days back to search |
| `maxTrades` | integer | 100 | Max records to return |

#### Example inputs

**Recent insider buys at Apple:**

```json
{
  "ticker": "AAPL",
  "transactionType": "buy",
  "daysBack": 30
}
```

**Large insider sells (>$500K) this week:**

```json
{
  "transactionType": "sell",
  "minValue": 500000,
  "daysBack": 7
}
```

**Cluster buys at Nvidia:**

```json
{
  "ticker": "NVDA",
  "transactionType": "buy",
  "daysBack": 90,
  "minValue": 50000
}
```

***

### Output

Each trade record contains:

| Field | Example | Description |
|---|---|---|
| `company` | `Apple Inc.` | Full company name |
| `ticker` | `AAPL` | Stock ticker symbol |
| `insider_name` | `Tim Cook` | Name of the insider |
| `insider_role` | `Chief Executive Officer` | Role at the company |
| `transaction_type` | `buy` | buy, sell, or award |
| `transaction_code` | `P` | SEC code (P=purchase, S=sale, A=award) |
| `shares` | `10000` | Number of shares traded |
| `price_per_share` | `175.25` | Price per share in USD |
| `total_value` | `1752500.00` | Total transaction value |
| `shares_owned_after` | `3450000` | Total shares owned after transaction |
| `transaction_date` | `2026-08-10` | Date of the actual trade |
| `filing_date` | `2026-08-12` | Date the Form 4 was filed with SEC |
| `accession_number` | `0001140361-26-032884` | SEC EDGAR document ID |

***

### Pricing

**Pay-Per-Event**: `$0.001 per actor start` + `$0.001 per trade record`.

| Run | Trades | Cost |
|---|---|---|
| Quick scan (20 trades) | 20 | ~$0.02 |
| Daily monitor (100 trades) | 100 | ~$0.10 |
| Weekly sweep (500 trades) | 500 | ~$0.50 |

vs. Insider Monkey Pro ($199/mo), OpenInsider Pro ($49/mo), Bloomberg Terminal ($24,000/yr).

***

### Automate with Apify Scheduler

Monitor insider trades automatically every day:

**Apify Console → Schedules → + New Schedule:**

| Field | Value |
|---|---|
| Actor | SEC Insider Trading Monitor |
| Cron | `0 9 * * 1-5` (weekdays at 9:00 UTC) |
| Input | `{"minValue": 100000, "daysBack": 1}` |

Connect to a Webhook (Slack, Discord, email) to get daily insider alerts.

***

### Data Source

Data is sourced directly from **SEC EDGAR** (Electronic Data Gathering, Analysis, and Retrieval system), the official repository of all public company filings required by the SEC. Form 4 filings are submitted by corporate insiders under Section 16 of the Securities Exchange Act of 1934.

All data is public government information.

***

### FAQ

**What counts as a "buy"?** Open-market purchases (transaction code P). This excludes option exercises (M) and stock awards (A) unless you remove the `buy` filter.

**Why are awards included?** Form 4 includes all changes in ownership: open-market trades, option exercises, and stock awards. The `transaction_code` field tells you which type.

**How current is the data?** Insiders have 2 business days to file after a trade. This actor shows filings within minutes of SEC publication.

***

### Related Actors (same author)

- [Congressional Trading Tracker](https://apify.com/gochujang/congressional-trading-tracker) — Track US Congress member stock trades
- [Economic Calendar Tracker](https://apify.com/gochujang/economic-calendar-tracker) — FOMC, CPI, NFP macro events
- [Crypto ETF Flow Tracker](https://apify.com/gochujang/crypto-etf-flow-tracker) — BTC/ETH institutional flows

# Actor input Schema

## `company` (type: `string`):

Filter by company name (e.g. 'Apple', 'Nvidia', 'Microsoft'). Leave empty for all companies.

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

Filter by stock ticker (e.g. AAPL, NVDA, MSFT). Leave empty for all.

## `insiderName` (type: `string`):

Filter by insider name (partial match). E.g. 'Cook' to find Tim Cook's trades.

## `transactionType` (type: `string`):

Filter: 'buy' for purchases, 'sell' for sales, empty for both.

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

Filter by role (director, officer, 10%+ owner). Leave empty for all insiders.

## `minValue` (type: `integer`):

Only return trades with total value above this amount. 0 = no filter.

## `daysBack` (type: `integer`):

How many days back to search for Form 4 filings

## `maxTrades` (type: `integer`):

Maximum number of trade records to return

## Actor input object example

```json
{
  "insiderName": "",
  "transactionType": "",
  "roles": [],
  "minValue": 10000,
  "daysBack": 7,
  "maxTrades": 100
}
```

# Actor output Schema

## `trades` (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 = {
    "company": "",
    "ticker": ""
};

// Run the Actor and wait for it to finish
const run = await client.actor("gochujang/sec-insider-trading").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 = {
    "company": "",
    "ticker": "",
}

# Run the Actor and wait for it to finish
run = client.actor("gochujang/sec-insider-trading").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 '{
  "company": "",
  "ticker": ""
}' |
apify call gochujang/sec-insider-trading --silent --output-dataset

```

## MCP server setup

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

```

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/kyBuZQs9VmCEdDPCz/builds/iKHYrHdpyNDe5Xn9N/openapi.json
