# Insider Trading Monitor — SEC Form 4 Filings by Ticker (`gochujang/insider-trading-monitor`) Actor

Monitor SEC Form 4 insider trading filings by ticker symbol. Tracks CEO/CFO/Director open-market purchases and sales with signal scoring (strong_buy, buy, sell). Supports Telegram alerts for large insider purchases.

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

## Pricing

from $10.00 / 1,000 filing processeds

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

## Insider Trading Monitor — SEC Form 4 Filings by Ticker

Monitor **SEC Form 4 insider trading filings** for specific stock tickers. Track when CEOs, CFOs, Directors, and other corporate insiders buy or sell shares on the open market. Built on the free [SEC EDGAR](https://www.sec.gov/cgi-bin/browse-edgar) database — no auth required.

### What does Insider Trading Monitor do?

This Actor fetches SEC Form 4 (Statement of Changes in Beneficial Ownership) filings for your specified tickers over a configurable date range. It parses the raw XML filings, filters by insider type and transaction size, and returns structured records with a **signal strength score** (strong_buy / buy / sell / weak_buy). Optional Telegram alerts fire whenever a large insider purchase is detected.

### Why use Insider Trading Monitor?

- **Alpha signal**: Open-market purchases by C-suite insiders are one of the most reliable leading indicators in quantitative finance
- **Real-time SEC data**: EDGAR filings are public and free — no data vendor subscription needed
- **Pre-built filtering**: Skip grants, option exercises, and tax-withholding transactions; focus on true open-market buys/sells
- **Automated alerts**: Telegram notifications when a CEO or CFO makes a large purchase

### How to use

1. Open the Actor in Apify Console and click **Try for free**
2. Enter one or more ticker symbols (e.g. AAPL, NVDA, MSFT)
3. Set `daysBack` to control how far back to search (default: 30 days)
4. Set `minTransactionValue` to filter out small transactions (default: $100,000)
5. Optionally add Telegram credentials for real-time alerts
6. Click **Start** — results appear in the Output tab as the Actor runs

### Input

| Field | Type | Default | Description |
|-------|------|---------|-------------|
| `tickers` | string list | AAPL, NVDA, MSFT | Ticker symbols to monitor |
| `daysBack` | integer | 30 | How many calendar days back to search |
| `minTransactionValue` | number | 100000 | Skip transactions below this USD value |
| `insiderTypes` | string list | CEO, CFO, Director, 10% Owner | Filter by insider type |
| `openMarketOnly` | boolean | true | Only include open-market P/S codes |
| `alertMinValue` | number | 0 | Telegram alert threshold (0 = disabled) |
| `telegramBotToken` | string | — | Bot token from @BotFather |
| `telegramChatId` | string | — | Chat ID from @userinfobot |
| `contactEmail` | string | research@example.com | SEC requires email in User-Agent |

### Output

One record per transaction. Download as JSON, CSV, or Excel from the Output tab.

```json
{
  "ticker": "NVDA",
  "company_name": "NVIDIA Corp",
  "insider_name": "Jensen Huang",
  "insider_title": "CEO",
  "transaction_type": "purchase",
  "shares": 50000,
  "price_per_share": 125.50,
  "total_value": 6275000,
  "transaction_date": "2026-09-20",
  "filing_date": "2026-09-22",
  "days_to_file": 2,
  "shares_owned_after": 850000,
  "is_ceo_or_cfo": true,
  "is_open_market": true,
  "signal_strength": "strong_buy"
}
```

### Signal Logic

| Signal | Condition |
|--------|-----------|
| `strong_buy` | CEO/CFO open-market purchase ≥ $500k |
| `buy` | Any insider open-market purchase ≥ $100k |
| `sell` | Any open-market sale |
| `weak_buy` | Open-market purchase < $100k |
| `non_market` | Grant, option exercise, gift, etc. |

### Pricing

**$0.01 per filing processed**, plus $0.005 per Actor start. For example, 10 processed filings incur $0.105 in event charges.

### Telegram Alert Format

```
👔 Insider Buy: Jensen Huang (CEO) at NVDA — $6,275,000 @ $125.5
```

Alerts fire only for purchases where `total_value >= alertMinValue`.

### Data Source & Legal

Data sourced from [SEC EDGAR](https://www.sec.gov/), which is a public government database. All Form 4 filings are public records. This Actor adds no proprietary data — it only structures what the SEC publishes. Not financial advice.

For questions or custom integrations, open an issue in the Apify Console Issues tab.

# Actor input Schema

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

List of stock tickers to monitor (e.g. AAPL, NVDA, MSFT). Leave empty to scan all recent Form 4 filings.

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

How many calendar days back to search for filings.

## `minTransactionValue` (type: `number`):

Skip transactions below this USD value. 0 = no filter.

## `insiderTypes` (type: `array`):

Only include filings from these insider types. Leave empty for all.

## `openMarketOnly` (type: `boolean`):

If true, only include open-market purchases (P) and sales (S). Excludes grants (A), option exercises (M), etc.

## `alertMinValue` (type: `number`):

Send Telegram alert for purchases at or above this value. 0 = disabled.

## `telegramBotToken` (type: `string`):

Telegram bot token for alerts (get from @BotFather).

## `telegramChatId` (type: `string`):

Telegram chat ID to send alerts to (get from @userinfobot).

## `contactEmail` (type: `string`):

SEC EDGAR requires a contact email in the User-Agent header.

## Actor input object example

```json
{
  "tickers": [
    "AAPL",
    "NVDA",
    "MSFT"
  ],
  "daysBack": 30,
  "minTransactionValue": 100000,
  "insiderTypes": [
    "CEO",
    "CFO",
    "Director",
    "10% Owner"
  ],
  "openMarketOnly": true,
  "alertMinValue": 0,
  "telegramChatId": "",
  "contactEmail": "research@example.com"
}
```

# Actor output Schema

## `dataset` (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 = {
    "daysBack": 30
};

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

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

```

## MCP server setup

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

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/d9VDfTLBryVKP32oG/builds/oC9CqFi4f6lQQJ6y7/openapi.json
