# SEC Insider Trading Tracker (Form 4) (`tuhin/sec-insider-trading-tracker`) Actor

Track the latest SEC Form 4 insider transactions — open-market buys and sells by company officers, directors and 10% owners — from EDGAR public data.

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

## Pricing

from $5.00 / 1,000 results

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?

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 Tracker (Form 4)

**See what company insiders are actually buying and selling — the latest SEC Form 4 transactions, parsed and ranked.**

Pulls the most recent Form 4 filings from SEC EDGAR, parses each insider's non-derivative transactions (open-market **buys**/**sells**, grants, option exercises), and returns clean rows with dollar value and signals.

> **Public data** — SEC EDGAR. SEC requires a contact in the request User-Agent; set yours in `userAgentContact`.

### Who it's for

Retail traders, funds, and researchers who track insider activity as a signal.

### Input

| Field | Default | Description |
|-------|---------|-------------|
| `tickers` | – | Only keep these tickers (e.g. `["AAPL","NVDA"]`). Empty = all recent filings. |
| `transactionTypes` | `["P","S"]` | Codes to keep. `P`=buy, `S`=sell, `A`=grant, `M`=option exercise, `G`=gift, `F`=tax, or `all`. |
| `maxFilings` | `80` | How many recent Form 4 filings to parse. |
| `minTransactionValueUsd` | `0` | Skip transactions below this dollar value. |
| `userAgentContact` | – | **Required by SEC** — your name + email. |

#### Example

```json
{ "transactionTypes": ["P"], "minTransactionValueUsd": 100000, "maxFilings": 200, "userAgentContact": "Jane Doe jane@example.com" }
```

### Output (per transaction)

```json
{
  "ticker": "WULF", "issuer": "TERAWULF INC.",
  "ownerName": "Prager Paul B.", "ownerTitle": "CEO",
  "isDirector": true, "isOfficer": true, "isTenPercentOwner": false,
  "transactionCode": "S", "transactionType": "sell", "acquiredDisposed": "D",
  "shares": 137500, "pricePerShare": 17.06, "valueUsd": 2345654, "sharesOwnedAfter": 4200000,
  "transactionDate": "2026-08-28", "filingDate": "2026-08-28",
  "accessionNumber": "0001214659-26-011109", "cik": "1211677",
  "url": "https://www.sec.gov/Archives/edgar/data/…/form4.xml",
  "signals": ["insider-sell","large","ceo"],
  "collectedAt": "2026-08-30T18:00:00Z"
}
```

**Signals:** `insider-buy` (code P) · `insider-sell` (S) · `large` (≥ $1M) · `ceo` (CEO filer).

### Scheduling

Schedule it (e.g. hourly) to build a live insider-activity feed. Duplicate/amended filings of the same trade are de-duplicated.

### Notes

- Parses **non-derivative** transactions (direct share buys/sells). Not financial advice.
- Be considerate of SEC's fair-access rate limits — the actor throttles requests.

# Actor input Schema

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

Only keep filings for these tickers (e.g. "AAPL", "TSLA"). Empty = all recent Form 4 filings.

## `transactionTypes` (type: `array`):

Which transaction codes to keep. P = open-market buy, S = open-market sell, A = grant/award, M = option exercise, G = gift, F = tax. Empty = P and S only.

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

How many of the most-recent Form 4 filings to fetch and parse.

## `minTransactionValueUsd` (type: `integer`):

Skip transactions below this dollar value (shares × price). 0 = keep all.

## `userAgentContact` (type: `string`):

SEC requires a contact in the request User-Agent. Put your name + email, e.g. "Jane Doe jane@example.com".

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

Optional. EDGAR works without a proxy; be mindful of SEC's fair-access rate limits.

## Actor input object example

```json
{
  "tickers": [
    "AAPL",
    "NVDA"
  ],
  "transactionTypes": [
    "P",
    "S"
  ],
  "maxFilings": 80,
  "minTransactionValueUsd": 0,
  "userAgentContact": "Apify Insider Tracker contact@example.com",
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `transactions` (type: `string`):

One row per Form 4 non-derivative transaction (buys/sells/grants) with value and signals.

# 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("tuhin/sec-insider-trading-tracker").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("tuhin/sec-insider-trading-tracker").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 tuhin/sec-insider-trading-tracker --silent --output-dataset

```

## MCP server setup

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

```

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/szqX27K2i2vYd5Bb9/builds/1QzEAm9QVSB9AZsIG/openapi.json
