# Stock Sympathy Play Scanner: Peers That Follow Leaders (`the100/sympathy-play-finder`) Actor

When a stock moves on news, find the peers that reliably follow it, how far and how fast, and which haven't caught up yet. Market-adjusted event study, hit rate vs normal days, live laggard signals. Free Alpaca data.

- **URL**: https://apify.com/the100/sympathy-play-finder.md
- **Developed by:** [Christopher Dorado](https://apify.com/the100) (community)
- **Categories:** AI, Business
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $16.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.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

### What is the Stock Sympathy Play Scanner?

**When a stock rips or dumps on news, which peers reliably follow it, how far, how fast, and which ones haven't caught up yet?**

Give it a leader (or let it auto-pick today's real movers) and get a ranked list of sympathy peers with hard statistics and a live signal for each:

| Signal | Meaning |
|---|---|
| `LAGGARD … group moving - strongest setup` | The group is moving with the leader, but this peer hasn't caught up to its usual move yet |
| `IN PLAY` | Moving with the leader about as much as it usually does |
| `EXTENDED` | Already past its usual sympathy move (chase risk) |
| `DIVERGING` | Moving against the leader today |
| `… group NOT moving` | The leader's news looks company-specific; sympathy is less likely |
| `WATCH` | The leader isn't moving enough (versus its own volatility) to count yet |

### How does it work? (Why it isn't just a correlation list)

1. **Catalyst days only.** It finds the leader's real news days: a move of at least 2 sigma versus its own recent volatility, on 1.3× or more normal volume, over about 2 years.
2. **Market-adjusted.** Every stock's move has SPY × beta removed, so "the whole market went up" never counts as sympathy.
3. **Versus normal days.** Hit rate on catalyst days is compared with the same peer on ordinary days. Lift = real linkage, not just a volatile stock.
4. **Recency-weighted and shrunk.** Recent events count more (1-year half-life). Small samples are pulled toward normal, so 2-for-2 can't outrank 14-for-18.
5. **When it moves.** `reactionAtOpenPct` shows how much of the reaction is already in the opening gap. `avgOpenToCloseOnLeaderDaysPct` shows what was left to catch during the day. `nextDayFollowThroughPct` shows whether it keeps going the next day or gives it back.
6. **Where to look.** SEC industry codes (exact → broad, or the whole market), plus curated cross-industry themes (AI chips & power, quantum, crypto miners, nuclear, space, drones, and more), plus your own watchlist. Every candidate must pass the same test.

### What data do you get?

`sympathyScore` (0-100), `confidence`, `hitRatePct` vs `baselineHitRatePct` (`liftPct`), `medianResponseRatio` (peer move ÷ leader move), `expectedMovePct`, `capturedPct`, `remainingMovePct`, `relativeVolume` (time-of-day adjusted), `groupConfirmation`, `correlation60d/250d`, `marketCapUsd`, `avgDollarVolume20d`, and `lastEvents` (the last 5 catalyst days with both moves).

### What do you need?

A **free Alpaca account** (alpaca.markets → Paper Trading → API Keys). Your keys are only used to read market data and are stored encrypted by Apify. The free plan works: live prices come from IEX, and volume comes from consolidated data delayed 15 minutes. A paid Alpaca SIP plan adds the full market and pre-market.

### How to find sympathy plays

1. Open the **Input** tab and paste your free **Alpaca API key ID and secret**.
2. Enter one or more **leader tickers** (for example `NVDA`, `IONQ`), or leave it empty and set **Auto leaders** to scan today's biggest real movers.
3. Choose **Live** mode during market hours, or **Reference** mode for the statistics only.
4. Click **Start**. Sort by **laggard** to see peers that haven't caught up yet first.
5. Export to **JSON, CSV, Excel**, or connect it to Google Sheets, Slack or a webhook.

### Input example

```json
{
  "leaders": ["IONQ"],
  "mode": "live",
  "industryScope": "sic3",
  "sortBy": "laggard",
  "topPeersPerLeader": 15
}
```

### Output example (real run)

```json
{
  "rank": 1,
  "leader": "IONQ",
  "ticker": "RGTI",
  "name": "Rigetti Computing, Inc.",
  "nominatedBy": "theme: Quantum computing",
  "sympathyScore": 94.5,
  "confidence": "high",
  "eventsAnalyzed": 19,
  "hitRatePct": 85.0,
  "baselineHitRatePct": 32.3,
  "liftPct": 52.6,
  "medianResponseRatio": 0.72,
  "reactionAtOpenPct": 26.0,
  "nextDayFollowThroughPct": 3.28,
  "correlation60d": 0.92,
  "lastEvents": [
    {"date": "2026-11-06", "leaderPct": 23.42, "peerPct": 19.29},
    {"date": "2026-10-15", "leaderPct": 9.33, "peerPct": 8.13}
  ]
}
```

On a +23% IONQ day, RGTI, QUBT and QBTS were **IN PLAY** (they followed IONQ on 75-85% of its catalyst days vs about 31% on normal days), and LAES showed up as a **LAGGARD** with the group confirming.

### How much does it cost?

**$0.02 per peer result** (pay per event), plus a tiny start fee. Apify platform usage is **included**. Market data comes from your own free Alpaca account, so there are no extra data fees.

| Example | Results | Cost |
|---|---|---|
| One leader, top 15 peers | 15 | ~$0.30 |
| Auto-scan 5 movers × 15 peers | 75 | ~$1.50 |
| Every 30 min during market hours (1 leader) | ~195/day | ~$3.90/day |

### Who is it for?

- 📈 **Day and swing traders:** find the second-day and laggard plays after big news.
- 🧠 **Analysts:** measure how tightly a theme (AI chips, quantum, nuclear, crypto miners) really trades together.
- 🤖 **Algo builders:** schedule it and feed laggard signals into your own alerts or bots through the API.

### FAQ

**Is this financial advice?** No. It gives statistics about how stocks moved in the past. Past sympathy does not guarantee future moves.

**Do I need a paid data plan?** No. The free Alpaca plan works. A paid SIP plan adds full-market volume and pre-market data.

**Why are some peers missing?** Every candidate must pass the same event-study test (enough catalyst days, real lift over normal days, liquidity filters). Lower `minSympathyScore` or `minEvents` to see more.

**Can I add my own watchlist?** Yes, use `extraPeers`.

**Questions or ideas?** Open an issue in the **Issues** tab.

### More tools from the same developer

| Tool | What it does |
|---|---|
| [YouTube Channel Scraper: Video Stats, Outliers & Comments](https://apify.com/the100/youtube-channel-video-intelligence) | Every video's stats plus the breakout videos beating their channel's normal |
| [YouTube Transcript Scraper & Podcast Transcriber](https://apify.com/the100/rights-safe-media-transcriber) | Transcripts with timestamps from YouTube videos and podcast feeds |
| [Podcast Scraper: RSS Feed & Apple Podcasts Episodes](https://apify.com/the100/podcast-rss-episode-extractor) | Every episode, audio URL and show notes from any podcast |

*Statistics, not financial advice. Past sympathy does not guarantee future moves.*

# Actor input Schema

## `leaders` (type: `array`):

The stocks making the move (e.g. NVDA after earnings). Leave empty to auto-pick today's biggest liquid movers.

## `alpacaKeyId` (type: `string`):

Your own free Alpaca key (alpaca.markets -> Paper Trading -> API Keys). Used only to read market data. Required to run (free account).

## `alpacaSecretKey` (type: `string`):

Paired secret for the key above. Stored encrypted by Apify. Required to run (free account).

## `mode` (type: `string`):

live = history + where every peer stands right now (laggard / in play / extended). research = history only.

## `industryScope` (type: `string`):

SEC industry match width. Curated cross-industry themes (AI power, quantum, crypto miners, nuclear...) are always added. 'Whole market' finds hidden linkages but takes longer.

## `extraPeers` (type: `array`):

Your own ideas. They are scored with the same test as everything else.

## `sortBy` (type: `string`):

Sort results by.

## `topPeersPerLeader` (type: `integer`):

Results returned per leader (one billed row each).

## `minSympathyScore` (type: `integer`):

Hide weak relationships.

## `minEvents` (type: `integer`):

Peers must have traded through at least this many leader catalyst days.

## `minPeerPrice` (type: `integer`):

Set 0 to include sub-$1 stocks.

## `minPeerDollarVolume` (type: `integer`):

Liquidity floor (20-day average). $1M keeps out untradeable names.

## `minPeerMarketCapUsd` (type: `integer`):

Optional.

## `maxPeerMarketCapUsd` (type: `integer`):

Optional. e.g. 2000000000 for small caps only.

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

504 = about 2 years. Recent events count more (1-year half-life).

## `eventSigma` (type: `integer`):

How unusual a leader move must be, versus its own recent volatility, to count as a catalyst day.

## `minEventMovePct` (type: `integer`):

Market-adjusted move floor for a catalyst day.

## `minEventVolumeMultiple` (type: `string`):

Leader volume must be at least this many times its 20-day average (news signature).

## `autoLeaderCount` (type: `integer`):

Used only when Leader tickers is empty.

## `minLeaderPrice` (type: `integer`):

Skips sub-$5 squeezes that rarely lead a group.

## `minLeaderMarketCapUsd` (type: `integer`):

Leaders that can move a group are usually $1B+. Tiny stocks moving on their own news rarely pull peers.

## `liveFeed` (type: `string`):

Live price feed.

## Actor input object example

```json
{
  "leaders": [
    "NVDA"
  ],
  "mode": "live",
  "industryScope": "sic3",
  "sortBy": "laggard",
  "topPeersPerLeader": 15,
  "minSympathyScore": 30,
  "minEvents": 4,
  "minPeerPrice": 1,
  "minPeerDollarVolume": 1000000,
  "lookbackDays": 504,
  "eventSigma": 2,
  "minEventMovePct": 3,
  "minEventVolumeMultiple": "1.3",
  "autoLeaderCount": 5,
  "minLeaderPrice": 5,
  "minLeaderMarketCapUsd": 1000000000,
  "liveFeed": "iex"
}
```

# Actor output Schema

## `results` (type: `string`):

One row per leader-peer pair.

## `summary` (type: `string`):

Leaders, catalyst-day counts, notes.

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

// Run the Actor and wait for it to finish
const run = await client.actor("the100/sympathy-play-finder").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 = { "leaders": ["NVDA"] }

# Run the Actor and wait for it to finish
run = client.actor("the100/sympathy-play-finder").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 '{
  "leaders": [
    "NVDA"
  ]
}' |
apify call the100/sympathy-play-finder --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,the100/sympathy-play-finder"
        }
    }
}
```

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/o4KF01DE9u4XyyEWn/builds/hrw8XJoNGyth7K5V3/openapi.json
