# Prediction Markets Monitor: Polymarket + Kalshi Odds Alerts (`donzely/prediction-markets-monitor`) Actor

Polymarket + Kalshi markets in one unified schema: Yes/No price, implied probability, volume, liquidity, close date, category. Filter by keyword, category, volume, date and odds; get PRICE_MOVE, NEW_MARKET and RESOLVED alerts between runs. Data only, not financial advice.

- **URL**: https://apify.com/donzely/prediction-markets-monitor.md
- **Developed by:** [Grzegorz Pryjma](https://apify.com/donzely) (community)
- **Categories:** Developer tools, Automation, News
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$2.00 / 1,000 market rows

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

## Prediction Markets Monitor: Polymarket + Kalshi Odds & Price-Move Alerts

Track **Polymarket** and **Kalshi** prediction markets in **one unified format**, and get **alerts when the odds move**. Every row has the platform, market, event, outcome, Yes/No price, implied probability, 24h and total volume, liquidity or open interest, close date, category and link. Run it again (or schedule it) and each market is labelled **PRICE_MOVE**, **NEW_MARKET**, **RESOLVED** or **CLOSED**. With `onlyChanges` you get a pay-per-alert feed.

> **Data only, not financial advice.** Prices are implied probabilities from public market data and can be wrong, stale or illiquid. Do your own research. Nothing here is a recommendation to trade.

### What it does

- **Both platforms, one schema.** Polymarket (Gamma API) and Kalshi (public trade API, no API key) are normalised to the same fields. Compare the same question across platforms or feed one table into Sheets, a dashboard or an AI agent.
- **Filters.** Platforms, keywords, Polymarket event URLs, Kalshi URLs or tickers, categories/tags, minimum 24h volume, total volume, liquidity/open interest, closing within N days, and an implied-probability range.
- **Change detection between runs** (no setup needed):
  - `PRICE_MOVE`: implied probability moved at least *X* percentage points since the previous run (default 5 pp).
  - `NEW_MARKET`: a market created since the previous run that matches your filters.
  - `RESOLVED` / `CLOSED`: a market you were tracking closed. You get the winning outcome when it is known.
  - `NEW_MATCH`: an older market that now matches your filters, e.g. because its volume grew. `UNCHANGED` / `BASELINE` cover everything else.
- **Alert feed mode.** With `onlyChanges: true` you get, and pay for, only the alert rows, across *all* markets that match your filters. Schedule it hourly and connect it to Slack, email, Zapier, Make or a webhook.
- **24h price change** from the platforms themselves (`priceChange24hPp`), even on the first run.
- **Empty input works.** `{}` returns the top 50 open markets by 24h volume from each platform, with a warning.

### Who it's for

Traders and researchers who watch odds, journalists and analysts covering elections, the Fed, crypto or sports, quant and arbitrage tool builders, dashboards and newsletters, and AI agents that need clean prediction-market data.

A sister actor for cross-platform (Polymarket vs Kalshi) arbitrage may also be available from the same developer. Check our profile.

### Input

| Field | Type | Default | Description |
|---|---|---|---|
| `platforms` | array | both | `polymarket`, `kalshi` |
| `keywords` | array | – | A market matches if it contains all words of any keyword. You can also paste a Polymarket event URL, a Kalshi market URL or a Kalshi ticker (e.g. `KXFEDDECISION`). |
| `categories` | array | – | e.g. Politics, Sports, Crypto, Economics, Tech, Weather, Culture, World |
| `minVolume24h` | integer | 0 | Polymarket USD / Kalshi contracts |
| `minTotalVolume` | integer | 0 | Lifetime volume |
| `minLiquidity` | integer | 0 | Polymarket liquidity USD / Kalshi open interest |
| `closingWithinDays` | integer | 0 | Only markets closing within N days |
| `minProbabilityPct` / `maxProbabilityPct` | integer | 0 / 100 | Implied probability range. Inverted ranges are swapped. |
| `sortBy` | string | `volume24h` | `volume24h`, `totalVolume`, `liquidity`, `closingSoon`, `priceChange24h`, `probability` |
| `maxResultsPerPlatform` | integer | 50 | Row limit per platform |
| `trackChanges` | boolean | true | Compare with the previous run |
| `priceMoveThresholdPp` | number | 5 | PRICE_MOVE threshold in percentage points |
| `onlyChanges` | boolean | false | Output only alerts (first run saves the baseline) |
| `includeClosed` | boolean | true | Report RESOLVED / CLOSED markets |
| `monitorId` | string | – | Separate history per watchlist or schedule |
| `maxRunMinutes` | number | 4 | Soft time limit. Results gathered so far are kept. |

Example: alert me when Fed or Bitcoin odds move by 3 points.

```json
{
  "keywords": ["fed", "bitcoin"],
  "minVolume24h": 5000,
  "priceMoveThresholdPp": 3,
  "onlyChanges": true,
  "monitorId": "fed-btc-alerts"
}
```

### Output

```json
{
  "platform": "kalshi",
  "marketId": "KXFEDDECISION-26DEC-H25",
  "eventId": "KXFEDDECISION-26DEC",
  "eventTitle": "Fed decision in Dec 2026?",
  "question": "Will the Federal Reserve Hike rates by 25bps at their December 2026 meeting?",
  "outcome": "Hike 25bps",
  "outcomes": ["Yes", "No"],
  "outcomePrices": [0.93, 0.07],
  "yesPrice": 0.93,
  "noPrice": 0.07,
  "probabilityPct": 93,
  "bestBid": 0.93,
  "bestAsk": 0.94,
  "lastTradePrice": 0.93,
  "priceChange24hPp": 2,
  "volume24h": 399010.21,
  "totalVolume": 4680842.76,
  "volumeUnit": "contracts",
  "liquidity": null,
  "openInterest": 2762099.7,
  "closeTime": "2026-12-09T18:59:00Z",
  "daysToClose": 15.2,
  "category": "Economics",
  "tags": ["Economics", "KXFEDDECISION"],
  "status": "open",
  "resolvedOutcome": null,
  "url": "https://kalshi.com/markets/kxfeddecision",
  "changeType": "PRICE_MOVE",
  "previousProbabilityPct": 86,
  "changeSincePreviousRunPp": 7,
  "previousRunAt": "2026-11-24T12:00:03.120Z",
  "scrapedAt": "2026-11-24T13:00:02.911Z",
  "marketCreatedAt": "2025-09-26T15:31:07.682Z"
}
```

Field notes:

- Polymarket multi-outcome events (e.g. "Fed decision in December") are split into one binary market per outcome, the same way Kalshi does it. `outcome` names the option.
- `probabilityPct` = Yes price × 100. Kalshi markets with no trades yet use the bid/ask midpoint.
- Volume units differ: Polymarket reports **USD**, Kalshi reports **contracts** (each pays $1). See `volumeUnit`.
- A run summary (counts, warnings, which sources were partial) is saved as `SUMMARY` in the key-value store.

### Pricing

Pay per result: **$0.002 per market row** ($2 per 1,000). Alert mode charges only for alert rows. Runs that return nothing cost nothing beyond the platform's tiny start-up compute.

### Scheduling an alert feed

1. Run once with your filters, `onlyChanges: true` and a `monitorId`. This saves the baseline.
2. Create a Schedule (e.g. every hour) with the same input.
3. Add an integration (Slack, email, webhook, Zapier, Make) that fires on "Run succeeded" and reads the dataset.

### Limits

- Kalshi's public API has no text search or volume sort. The actor scans all open Kalshi markets (about 170k, roughly 40 s) and filters locally. Multivariate combo markets (parlays) are excluded.
- Polymarket: keyword search plus the top events by 24h volume (up to 500 events). Very obscure Polymarket markets that match no keyword may be missed.
- Change history: up to 20,000 matching markets per platform per `monitorId`. Entries not seen for 30 days are dropped.
- Only public market data is used. No login and no trading.

### FAQ

**Is this financial advice?** No. It is data only.

**Do I need a Polymarket or Kalshi account or API key?** No.

**Why does my first `onlyChanges` run return nothing?** The first run stores the baseline. Alerts start with the second run.

**Can I watch one specific market?** Yes. Paste its Polymarket event URL or Kalshi URL/ticker into `keywords`.

**How fresh is the data?** It is read live from the platforms' APIs at run time.

# Actor input Schema

## `platforms` (type: `array`):

Which prediction markets to query: polymarket, kalshi (one per line). Leave empty for both.

## `keywords` (type: `array`):

A market matches if it contains all words of any keyword (in question, event title, outcome, tags). You can also paste a Polymarket event URL (polymarket.com/event/...), a Kalshi market URL (kalshi.com/markets/...) or a Kalshi ticker (e.g. KXFED). Empty = all markets.

## `categories` (type: `array`):

Optional, e.g. Politics, Sports, Crypto, Economics, Tech, Weather, Culture, World. Matches Kalshi categories and Polymarket tags (case-insensitive).

## `minVolume24h` (type: `integer`):

Polymarket: USD. Kalshi: contracts traded ($1 notional each). 0 = no limit.

## `minTotalVolume` (type: `integer`):

Lifetime volume (Polymarket USD, Kalshi contracts). 0 = no limit.

## `minLiquidity` (type: `integer`):

Polymarket: order-book liquidity in USD. Kalshi: open interest in contracts. 0 = no limit.

## `closingWithinDays` (type: `integer`):

Only markets that close/resolve within this many days. 0 = any date.

## `minProbabilityPct` (type: `integer`):

Yes price as a percentage (0–100). Example: 10 to skip long shots.

## `maxProbabilityPct` (type: `integer`):

Example: 90 to skip near-certain markets. Inverted ranges are swapped automatically.

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

Which markets come first (and are kept when the per-platform limit cuts the list).

## `maxResultsPerPlatform` (type: `integer`):

Upper limit of rows per platform (you pay per row).

## `trackChanges` (type: `boolean`):

Remembers each market's probability and labels rows: BASELINE (first run), NEW_MARKET, NEW_MATCH (older market that now matches your filters), PRICE_MOVE, UNCHANGED, RESOLVED, CLOSED.

## `priceMoveThresholdPp` (type: `number`):

A market is a PRICE_MOVE when its implied probability moved at least this many percentage points since the previous run (e.g. 42% → 49% = 7 pp).

## `onlyChanges` (type: `boolean`):

Return (and pay for) only PRICE_MOVE, NEW_MARKET, RESOLVED and CLOSED rows, across all markets that match your filters. The first run only saves the baseline. Schedule it (e.g. hourly) as an alert feed.

## `includeClosed` (type: `boolean`):

When a previously tracked market closes or resolves, return one row with the result.

## `monitorId` (type: `string`):

Keeps a separate change history per monitor (e.g. one per schedule / watchlist). Use a different name for each set of filters.

## `maxRunMinutes` (type: `number`):

Soft limit: the run stops fetching and returns what it has. Kalshi needs ~1 minute to scan all open markets.

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

Not needed for the public APIs; use only if requests are blocked.

## Actor input object example

```json
{
  "platforms": [
    "polymarket",
    "kalshi"
  ],
  "keywords": [
    "bitcoin",
    "fed"
  ],
  "minVolume24h": 0,
  "minTotalVolume": 0,
  "minLiquidity": 0,
  "closingWithinDays": 0,
  "minProbabilityPct": 0,
  "maxProbabilityPct": 100,
  "sortBy": "volume24h",
  "maxResultsPerPlatform": 25,
  "trackChanges": true,
  "priceMoveThresholdPp": 5,
  "onlyChanges": false,
  "includeClosed": true,
  "maxRunMinutes": 4,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

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

No description

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

No description

## `summary` (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 = {
    "platforms": [
        "polymarket",
        "kalshi"
    ],
    "keywords": [
        "bitcoin",
        "fed"
    ],
    "maxResultsPerPlatform": 25
};

// Run the Actor and wait for it to finish
const run = await client.actor("donzely/prediction-markets-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 = {
    "platforms": [
        "polymarket",
        "kalshi",
    ],
    "keywords": [
        "bitcoin",
        "fed",
    ],
    "maxResultsPerPlatform": 25,
}

# Run the Actor and wait for it to finish
run = client.actor("donzely/prediction-markets-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 '{
  "platforms": [
    "polymarket",
    "kalshi"
  ],
  "keywords": [
    "bitcoin",
    "fed"
  ],
  "maxResultsPerPlatform": 25
}' |
apify call donzely/prediction-markets-monitor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,donzely/prediction-markets-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/A07Fu6dpTpRkP8wVv/builds/0vISRXqpgv28xHwfU/openapi.json
