# US Stock Insider (Form 4), Dark Pools & Odd-Lots API (`francogb/us-stock-insider-darkpool-altdata`) Actor

Official US alternative financial data API combining SEC EDGAR Form 4 insider buys/sells (parsed XML), FINRA RegSHO daily dark pool short volume ratios, and SEC Odd-Lot tender offers into one clean JSON feed for quant bots, fintech apps, and AI agents.

- **URL**: https://apify.com/francogb/us-stock-insider-darkpool-altdata.md
- **Developed by:** [Franco García Bailez](https://apify.com/francogb) (community)
- **Categories:** Business, Automation, Other
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.50 / 1,000 signal records

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
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

## US Stock Insider Trading (SEC Form 4), FINRA Dark Pools & Odd-Lots API

Lightweight, HTTP-native Apify Actor delivering institutional-grade **US equity alternative data** directly from official regulatory feeds (**SEC EDGAR** & **FINRA RegSHO**) into one clean JSON schema—built for quantitative trading bots, fintech dashboards, and AI agents.

### Included Official Data Feeds

| Feed Key | Official Source | Signals & Data Extracted |
| :--- | :--- | :--- |
| `FINRA_DARK_POOL` | [FINRA RegSHO Daily Short Volume](https://cdn.finra.org/) | Daily `shortVolume`, `shortExemptVolume`, `totalVolume`, `shortVolumeRatio`, N-day `avgShortVolumeRatio`, and anomaly signal (`HIGH_SHORT_RATIO`, `ELEVATED_SHORT_RATIO`, `LOW_SHORT_RATIO`) |
| `SEC_FORM_4` | [SEC EDGAR Submissions & XML](https://www.sec.gov/edgar) | Parsed insider transactions from Form 4 XML: `insiderName`, `insiderTitle`, `isOfficer`, `isDirector`, `transactionCode` (`P` buy / `S` sell), `shares`, `pricePerShare`, `totalValueUsd`, `sharesOwnedAfter` |
| `SEC_ODD_LOT` | [SEC EDGAR EFTS (`SC TO-I` / `SC TO-T` / `S-4`)](https://efts.sec.gov/) | Active tender/exchange offers with confirmed `< 100` share **Odd-Lot Priority**, offer price range (`offerPriceMin`, `offerPriceMax`), and `expirationDate` |

### Two Modes: Watchlist Mode or Market-Wide Scanner

- **Watchlist Mode** (`tickers: ["AAPL", "NVDA"]`): Returns FINRA Dark Pool ratios + recent SEC Form 4 insider buys/sells + any active Odd-Lot tender offers for your exact tickers.
- **Market-Wide Scanner** (`tickers: []`): Ranks the highest Dark Pool short-volume ratio stocks across US equities (`totalVolume >= minTotalVolumeFinra`), fetches the latest Form 4 insider trades, and lists open Odd-Lot corporate actions.

### Example Output (FINRA Dark Pool + SEC Form 4)

```json
[
  {
    "recordType": "FINRA_DARK_POOL",
    "symbol": "AAPL",
    "companyName": "Apple Inc.",
    "date": "2026-11-27",
    "signal": "ELEVATED_SHORT_RATIO",
    "shortVolume": 12450321.0,
    "totalVolume": 26120410.0,
    "shortVolumeRatio": 0.4767,
    "avgShortVolumeRatio": 0.4612,
    "finraTradingDaysCount": 5,
    "url": "https://cdn.finra.org/equity/regsho/daily/CNMSshvol20261127.txt"
  },
  {
    "recordType": "SEC_FORM_4",
    "symbol": "AAPL",
    "companyName": "Apple Inc.",
    "date": "2026-11-24",
    "signal": "INSIDER_SELL",
    "insiderName": "Newstead Jennifer",
    "insiderTitle": "SVP, GC and Government Affairs",
    "isOfficer": true,
    "transactionCode": "S",
    "transactionType": "Open-Market Sale",
    "shares": 2398.0,
    "pricePerShare": 347.56,
    "totalValueUsd": 833448.88,
    "sharesOwnedAfter": 22802.0
  }
]
```

### How Much Does It Cost?

This Actor uses transparent **Pay-Per-Event (PPE)** pricing with zero proxy costs and fast 128–512 MB execution:

| Event | Free | Bronze | Silver | Gold / Platinum / Diamond |
| :--- | :---: | :---: | :---: | :---: |
| **Actor Start** (`apify-actor-start`) | `$0.005` | `$0.005` | `$0.005` | `$0.005` |
| **Signal record** (`apify-default-dataset-item`) | `$0.004` | `$0.0035` | `$0.003` | `$0.0025` |

- **Example cost for 100 signals**: **`$0.405`** on the Free tier (`$0.005 + 100 × $0.004`) down to **`$0.255`** on Gold+ (`$0.005 + 100 × $0.0025`).
- **Strict Budget Protection**: Honors Apify's `maxTotalChargeUsd` limit cleanly so automated trading agents never overspend.

### Use with AI Agents (Apify MCP Server — Claude Desktop & Cursor)

Connect this Actor directly to **Claude Desktop**, **Cursor**, or **Windsurf** via the hosted Apify MCP Server:

```json
{
  "mcpServers": {
    "apify": {
      "url": "https://mcp.apify.com/?actors=francogb/us-stock-insider-darkpool-altdata"
    }
  }
}
```

> **Tip:** Load all 5 official-API Actors together in one MCP server by passing a comma-separated list:
> `https://mcp.apify.com/?actors=francogb/eu-public-tenders-aggregator,francogb/eu-company-vat-lei-verifier,francogb/us-stock-insider-darkpool-altdata,francogb/b2b-domain-techstack-dns-email-intel,francogb/clinical-trials-openfda-pharma-api`

**Example AI prompt:**

> *"Run `francogb/us-stock-insider-darkpool-altdata` on `["AAPL", "NVDA", "MSFT"]` for the last 14 days across `FINRA_DARK_POOL` and `SEC_FORM_4`, and highlight any open-market insider buys or unusual dark pool short-volume spikes."*

### Python SDK (`apify-client`) & cURL

#### Python (`apify-client`)

```python
import os
from apify_client import ApifyClient

client = ApifyClient(os.environ["APIFY_TOKEN"])

run = client.actor("francogb/us-stock-insider-darkpool-altdata").call(
    run_input={
        "tickers": ["AAPL", "NVDA"],
        "datasets": ["FINRA_DARK_POOL", "SEC_FORM_4", "SEC_ODD_LOT"],
        "lookbackDays": 14,
        "finraTradingDays": 5,
    }
)

items = list(client.dataset(run["defaultDatasetId"]).iterate_items())
print(f"Fetched {len(items)} regulatory alt-data signals")
```

#### cURL (Synchronous Run for Trading Scripts & n8n)

```bash
curl -X POST "https://api.apify.com/v2/acts/francogb~us-stock-insider-darkpool-altdata/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "tickers": ["AAPL", "NVDA"],
    "datasets": ["FINRA_DARK_POOL", "SEC_FORM_4"],
    "lookbackDays": 14,
    "finraTradingDays": 5
  }'
```

### FAQ

- **Does this Actor scrape third-party financial blogs or require browsers/proxies?**
  No. All signals come straight from official **SEC EDGAR** (`sec.gov`, `efts.sec.gov`) and **FINRA RegSHO** (`cdn.finra.org`) regulatory endpoints over HTTP/JSON and XML.
- **How fresh are the SEC Form 4 and FINRA Dark Pool signals?**
  SEC Form 4 filings are parsed directly from EDGAR submissions as soon as filed; FINRA RegSHO daily short-volume files are fetched for the latest available trading sessions (`finraTradingDays`).
- **Can I scan the entire US market without specifying tickers?**
  Yes. Leave `tickers` empty (`[]`) to run Market-Wide Scanner mode across high-volume US equities and active SEC Odd-Lot corporate actions.
- **Does it work with Apify MCP Server and n8n?**
  Yes. Full input, dataset, and output schemas make it plug-and-play with Claude Desktop, Cursor, n8n, Make, and Python quant pipelines.

### More Fast, Official-API Actors by `francogb`

- **[EU Public Tenders & Procurement API (TED, TenderNed, BOAMP, UK)](https://apify.com/francogb/eu-public-tenders-aggregator)** — Aggregate live European public procurement tenders across TED Europa, TenderNed, BOAMP, and UK Contracts Finder.
- **[EU Company, VAT (VIES) & LEI Verifier & Enricher API](https://apify.com/francogb/eu-company-vat-lei-verifier)** — Validate EU VAT numbers via VIES, resolve legal entity IDs (LEI / KvK / BORME) via GLEIF, and enrich websites.
- **[B2B Domain Tech Stack, DNS/DMARC, RDAP & Email Verifier API](https://apify.com/francogb/b2b-domain-techstack-dns-email-intel)** — Bulk tech-stack detection, DNS/MX/SPF/DMARC deliverability verification, RDAP domain age, and public contacts.
- **[ClinicalTrials.gov v2 & openFDA Pharma / Biotech Data API](https://apify.com/francogb/clinical-trials-openfda-pharma-api)** — ClinicalTrials.gov v2 studies (with PI & site contacts), openFDA Drugs@FDA approvals, and FDA drug recalls.

# Actor input Schema

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

Optional US stock tickers (e.g. AAPL, NVDA, MSFT, CRWD). Leave empty to run a market-wide Dark Pool anomaly and Odd-Lot tender scan.

## `datasets` (type: `array`):

Official data feeds to query. Allowed values: FINRA_DARK_POOL, SEC_FORM_4, SEC_ODD_LOT.

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

Lookback window in calendar days for SEC Form 4 and Odd-Lot filings.

## `finraTradingDays` (type: `integer`):

Number of recent FINRA RegSHO trading days to aggregate for Dark Pool short-volume averages.

## `onlyOpenMarketForm4` (type: `boolean`):

Include only real open-market purchases (P) and sales (S) in SEC Form 4 (excludes routine awards/options grants A/M/F).

## `minTotalVolumeFinra` (type: `integer`):

Minimum daily share volume when scanning market-wide FINRA dark pool anomalies (ignored when explicit tickers are provided).

## `maxResults` (type: `integer`):

Maximum total dataset records to return.

## Actor input object example

```json
{
  "tickers": [
    "AAPL",
    "NVDA"
  ],
  "datasets": [
    "FINRA_DARK_POOL",
    "SEC_FORM_4",
    "SEC_ODD_LOT"
  ],
  "lookbackDays": 14,
  "finraTradingDays": 5,
  "onlyOpenMarketForm4": true,
  "minTotalVolumeFinra": 500000,
  "maxResults": 100
}
```

# Actor output Schema

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

No description

## `results` (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 = {
    "tickers": [
        "AAPL",
        "NVDA"
    ],
    "datasets": [
        "FINRA_DARK_POOL",
        "SEC_FORM_4",
        "SEC_ODD_LOT"
    ],
    "lookbackDays": 14,
    "finraTradingDays": 5,
    "maxResults": 100
};

// Run the Actor and wait for it to finish
const run = await client.actor("francogb/us-stock-insider-darkpool-altdata").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 = {
    "tickers": [
        "AAPL",
        "NVDA",
    ],
    "datasets": [
        "FINRA_DARK_POOL",
        "SEC_FORM_4",
        "SEC_ODD_LOT",
    ],
    "lookbackDays": 14,
    "finraTradingDays": 5,
    "maxResults": 100,
}

# Run the Actor and wait for it to finish
run = client.actor("francogb/us-stock-insider-darkpool-altdata").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 '{
  "tickers": [
    "AAPL",
    "NVDA"
  ],
  "datasets": [
    "FINRA_DARK_POOL",
    "SEC_FORM_4",
    "SEC_ODD_LOT"
  ],
  "lookbackDays": 14,
  "finraTradingDays": 5,
  "maxResults": 100
}' |
apify call francogb/us-stock-insider-darkpool-altdata --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,francogb/us-stock-insider-darkpool-altdata"
        }
    }
}
```

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/T43vC9LKQ6WgqRZIu/builds/hZ6FuZhzGomWGqWld/openapi.json
