# SEC Insider Trades for AI Agents (`accquantic/insider-trades-for-agents`) Actor

Ticker in, clean JSON out: recent Form 4 insider buys and sells (who, role, shares, price, date, filing link) from official SEC EDGAR data. One flat price per company. Built for MCP and AI agents.

- **URL**: https://apify.com/accquantic/insider-trades-for-agents.md
- **Developed by:** [accquantic](https://apify.com/accquantic) (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 company packs

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

## SEC Insider Trades for AI Agents

**Ticker in, clean insider trades out.** Give a US ticker (`NVDA`) or SEC CIK (`1045810`) and get back one compact JSON "company pack" built from official SEC EDGAR **Form 4** filings:

- Every recent insider transaction: **who** (name), **role** (CEO, CFO, Director, 10% owner…), **buy or sell**, **shares**, **price**, **value**, **date**, and the **filing link**
- Shares owned after the trade, direct or indirect ownership, and whether it was reported under a **10b5-1 plan**
- A one-line plain-English **summary**: open-market buys and sells, and the net dollar value
- Option exercises, awards, tax withholding and gifts are labelled, or switch on `onlyOpenMarket` to keep just real buys (code P) and sells (code S)

**One flat price per company, not per trade. Unknown tickers and duplicates are never charged as packs.**

### Why this Actor

- **Built for AI agents and MCP.** One small, predictable JSON pack per company instead of a stream of per-trade rows. Works through the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp) in Claude, Cursor, VS Code / GitHub Copilot and any MCP client.
- **Official source, no scraping.** Reads the SEC's own `data.sec.gov` and `sec.gov/Archives` endpoints with a compliant User-Agent, at no more than 10 requests per second. No API key needed.
- **Traceable.** Every transaction carries the SEC accession number and a link to the filing.
- **Simple pricing.** One event per company.

### Input

```json
{
  "companies": ["NVDA", "AAPL", "1045810"],
  "lookbackDays": 90,
  "maxFilings": 25,
  "onlyOpenMarket": false
}
```

| Field | Default | Notes |
|---|---|---|
| `companies` | required | Tickers or CIKs, up to 50 per run. A company given twice is charged once. |
| `lookbackDays` | 90 | 1-730 days |
| `maxFilings` | 25 | 1-100 Form 4 filings read per company, newest first. `filingsCapReached` tells you if there were more. |
| `onlyOpenMarket` | false | Keep only purchases (P) and sales (S) |

### Output (one dataset item per company, shortened)

```json
{
  "ticker": "NVDA",
  "name": "NVIDIA CORP",
  "lookbackDays": 90,
  "form4FilingsRead": 25,
  "filingsCapReached": true,
  "summary": {
    "openMarketBuys": 0, "openMarketSells": 12, "netOpenMarketValueUsd": -123456789,
    "text": "NVIDIA CORP: 0 open-market buys ($0) and 12 sells ($...) by insiders in the last 90 days, from 40 reported transactions."
  },
  "transactions": [
    { "insider": "DOE JANE", "role": "Director, Chief Executive Officer", "transactionDate": "2026-10-20",
      "action": "sell", "code": "S", "shares": 1000, "pricePerShare": 12.5, "valueUsd": 12500,
      "sharesOwnedAfter": 50000, "ownership": "direct", "plan10b5_1": true,
      "accession": "0001234567-26-000002", "filingUrl": "https://www.sec.gov/Archives/edgar/data/..." }
  ],
  "source": "SEC EDGAR Form 4 filings (sec.gov/Archives). Reported as filed; not investment advice."
}
```

The numbers above are illustrative. Run the Actor for real data. Not-found inputs return `{ "error": "NOT_FOUND" }` and are not charged as packs.

### Use it from an AI agent (MCP)

```
https://mcp.apify.com?tools=accquantic/insider-trades-for-agents
```

Then ask, for example: *"Have NVIDIA insiders been buying or selling in the last 90 days? Show the biggest trades."*

### Pricing

Pay per event: **$0.01 per company pack returned**, plus Apify's standard $0.00005 run-start fee. Not-found tickers and duplicates are not charged as packs. The run stops cleanly at your spending limit.

### Coverage and limits

- Covers Form 4 and 4/A filings that EDGAR lists in a company's recent filings. Very active filers may have older Form 4s beyond that window.
- Form 4 shows what insiders reported, sometimes days after the trade. Many sales are pre-planned (10b5-1), shown in `plan10b5_1`.
- Not covered in this version: Form 3/5, Schedule 13D/G, and 13F fund holdings.

### FAQ

**Is this investment advice?** No. It returns filings exactly as reported to the SEC.

**Do I need an SEC API key?** No. EDGAR is free and public.

**Something looks wrong?** Open an issue on the Actor's Issues tab with the ticker and the date. Each transaction includes its accession number.

# Actor input Schema

## `companies` (type: `array`):

US-listed companies as tickers (NVDA, AAPL, BRK-B) or SEC CIK numbers (1045810). Up to 50 per run. You pay once per company found; not-found inputs are free.

## `lookbackDays` (type: `integer`):

Only transactions from the last N days (1-730).

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

Cap on Form 4 filings read per company (1-100), newest first. Keeps runs fast; the pack says if the cap was reached.

## `onlyOpenMarket` (type: `boolean`):

Keep only transaction codes P (purchase) and S (sale). Drops awards, option exercises, tax withholding and gifts.

## Actor input object example

```json
{
  "companies": [
    "NVDA"
  ],
  "lookbackDays": 90,
  "maxFilings": 25,
  "onlyOpenMarket": false
}
```

# Actor output Schema

## `companyPacks` (type: `string`):

All company packs from this run as JSON (one item per company).

## `overview` (type: `string`):

Short table view: ticker, company and the one-line summary.

# 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 = {
    "companies": [
        "NVDA"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("accquantic/insider-trades-for-agents").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 = { "companies": ["NVDA"] }

# Run the Actor and wait for it to finish
run = client.actor("accquantic/insider-trades-for-agents").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 '{
  "companies": [
    "NVDA"
  ]
}' |
apify call accquantic/insider-trades-for-agents --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,accquantic/insider-trades-for-agents"
        }
    }
}
```

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/zalfAuhewOnexz2ac/builds/5vNl1cZyBd485TPi5/openapi.json
