# Prediction Markets: Polymarket & Kalshi Odds (`shoomaii/prediction-markets-odds`) Actor

Live odds from every open Polymarket and Kalshi market in one clean format: question, outcome, implied probability, bid/ask, 24h change, volume, close date and link. Filter by keyword, category, volume and close date, or only get markets that are new or moved since your last run.

- **URL**: https://apify.com/shoomaii/prediction-markets-odds.md
- **Developed by:** [Hyon](https://apify.com/shoomaii) (community)
- **Categories:** News, AI, Automation
- **Features:** Limited permissions, Single-tenant, Server interface
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 market returneds

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

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: Polymarket & Kalshi Odds

Get live odds from every open **Polymarket** and **Kalshi** market in one clean, consistent format: the question, the outcome, the implied probability, bid and ask, 24-hour change, volume, close date and a link.

Filter by keyword, category, volume or close date. Turn on **Only changes** and schedule it to get alerts when odds move or new markets open.

### What you get

- **Two platforms, one format.** Polymarket and Kalshi markets come out with the same fields, so you can compare and combine them.
- **Implied probability, done right.** The price the sites themselves show: the bid/ask midpoint, or the last trade when the spread is wide. 0.62 means a 62% chance.
- **Comparable volume.** Polymarket reports dollars and Kalshi reports contracts. `volume24hUsd` puts both in dollars (estimated for Kalshi from contracts traded and price), and results are sorted by it, most traded first.
- **Odds-change alerts.** With "Only changes", each run returns only new markets and markets whose probability moved at least N percentage points since you were last told about them, with `previousProbability` and `changeSinceLastRun`. Slow drifts still get reported once they add up.
- **Official public APIs.** Reads Polymarket's Gamma API and Kalshi's Trade API market data. No login, no API key, no browser, no proxies, so runs are fast and cheap. A run of the 50 most traded markets takes about 15 seconds.

### Input

| Field | What it does |
|---|---|
| Platforms | Polymarket, Kalshi, or both. |
| Keywords | Keep markets whose question, event or outcome contains any of these as whole words (e.g. `Fed`, `Bitcoin`, `Trump`). |
| Exclude keywords | Skip markets containing any of these words. |
| Categories | Keep markets in these categories or tags (e.g. `Politics`, `Crypto`, `Economics`, `Sports`). |
| Exclude categories | Skip categories, e.g. `Sports`. |
| Minimum 24-hour volume | Skip quiet markets (US dollars). |
| Closes within the next N days | Only markets that resolve soon. |
| Only new markets and odds changes | Return only new markets and markets that moved at least the set number of points since they were last reported to you. Runs of the same tracking list take turns: if one is still running, a second one stops at once without saving or charging anything. |
| Minimum change | Percentage points for "Only changes" (default 5). |
| Max markets | Keep only the most traded markets. 0 = no limit. |

### Sample output

```json
{
  "platform": "kalshi",
  "eventId": "KXNVDACEO-29JAN",
  "eventTitle": "Who will be the next CEO of NVIDIA?",
  "marketId": "KXNVDACEO-29JAN-JENS",
  "question": "Who will be the next CEO of NVIDIA?",
  "outcome": "Jensen Huang",
  "category": "Financials",
  "tags": ["Financials"],
  "probability": 0.165,
  "outcomes": [
    { "name": "Yes", "probability": 0.165 },
    { "name": "No", "probability": 0.835 }
  ],
  "bestBid": 0.16,
  "bestAsk": 0.17,
  "lastPrice": 0.16,
  "change24h": 0.05,
  "volume24h": 3416734.45,
  "volume24hUsd": 563761.18,
  "volumeTotal": 26059875.28,
  "liquidity": null,
  "openInterest": 10854889.57,
  "volumeUnit": "contracts (each pays $1)",
  "closesAt": "2029-01-01T05:00:00Z",
  "url": "https://kalshi.com/markets/kxnvdaceo",
  "scrapedAt": "2026-11-23T09:59:25Z"
}
```

Polymarket rows have the same fields. Markets with named outcomes (e.g. "Jets vs. Chargers") list each outcome with its probability in `outcomes`.

### Use cases

- **Traders and analysts:** watch odds across both exchanges and spot price gaps.
- **Newsrooms and researchers:** track what markets expect for elections, the Fed, crypto and world events.
- **Alerts:** schedule "Only changes" and send moves to Slack, email or Google Sheets.
- **Dashboards and AI agents:** a clean, consistent odds feed for your own tools.

### Pricing

You pay per market returned, plus a tiny start fee per run. Markets left out by your filters, and unchanged markets in "Only changes" mode, are free. Set a maximum cost per run in the run options and the Actor stops when it's reached.

### FAQ

**How fresh is the data?** It's read live from both platforms when the run starts.

**Why does Kalshi show two volume numbers?** `volume24h` is in Kalshi's own unit (contracts, each paying $1 if right); `volume24hUsd` converts it to an estimated dollar amount so it compares with Polymarket.

**How many Polymarket markets are covered?** The 5,000 most traded open Polymarket events (the most its API serves), which includes every market with meaningful trading. All open Kalshi events are covered.

**Is this investment advice?** No. This is market data from public APIs, provided as is.

### Example inputs

**Macro & Fed odds across both exchanges (exclude Sports):**

```json
{
  "platforms": ["polymarket", "kalshi"],
  "keywords": ["Fed", "inflation", "recession", "rate"],
  "excludeCategories": ["Sports"],
  "minVolume24h": 10000,
  "maxMarkets": 50
}
```

**Daily odds-movement monitor (5+ percentage point swings):**

```json
{
  "platforms": ["polymarket", "kalshi"],
  "excludeCategories": ["Sports"],
  "minVolume24h": 25000,
  "onlyChanges": true,
  "minChange": 5,
  "trackingKey": "macro-alerts"
}
```

### Server API & MCP Server (real-time HTTP)

Call this Actor synchronously over HTTP or connect any MCP client (Claude, Cursor, Windsurf, ChatGPT) directly to `https://shoomaii--prediction-markets-odds.apify.actor/mcp` with `Authorization: Bearer <APIFY_TOKEN>`:

```bash
## GET with query parameters
curl -s "https://shoomaii--prediction-markets-odds.apify.actor/odds?q=Fed,Bitcoin&excludeCategories=Sports&maxMarkets=10" \
  -H "Authorization: Bearer $APIFY_TOKEN"

## POST with JSON arrays
curl -s -X POST "https://shoomaii--prediction-markets-odds.apify.actor/odds" \
  -H "Authorization: Bearer $APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"platforms": ["polymarket", "kalshi"], "keywords": ["Fed"], "minVolume24h": 10000, "maxMarkets": 20}'
```

Snapshots are cached in memory for 45 seconds so repeated calls return in milliseconds (pass `fresh=true` to force an immediate refresh). `GET /health` is free; `/odds` and `/mcp` (`get_prediction_market_odds`) bill the same pay-per-event `market` rate per returned market (0 matches = free).

### Integrations

Send results to Google Sheets, Slack, email, Zapier, Make or n8n with Apify integrations, or call the Actor through the Apify API, Server API, or native MCP (`/mcp`).

# Actor input Schema

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

Which prediction markets to read.

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

Only keep markets whose question, event or outcome contains at least one of these words, e.g. 'Fed', 'Bitcoin', 'Trump'. Not case sensitive. Leave empty for all markets.

## `excludeKeywords` (type: `array`):

Skip markets containing any of these words.

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

Only keep markets in these categories or tags, e.g. 'Politics', 'Crypto', 'Economics', 'Sports', 'Elections'.

## `excludeCategories` (type: `array`):

Skip markets in these categories or tags, e.g. 'Sports'.

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

Skip quiet markets: minimum trading in the last 24 hours, in US dollars (estimated for Kalshi from contracts traded and price). 0 = no minimum.

## `closesWithinDays` (type: `integer`):

Only keep markets that close soon. Leave empty for any date.

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

Remember the odds you were given and next time only return new markets and markets whose probability moved at least the set number of points. Great with a schedule for alerts.

## `minChangePoints` (type: `integer`):

Used with 'Only changes'. 5 means a move from 40% to 45% or more is reported.

## `trackingKey` (type: `string`):

Used with 'Only changes'. Use a different name for each separate watch list. If a run of the same list is still going, a new run stops at once without saving or charging anything.

## `maxMarkets` (type: `integer`):

Keep only the most traded markets (by 24-hour dollar volume). 0 = no limit. You can also cap spending with the run's max cost setting.

## Actor input object example

```json
{
  "platforms": [
    "polymarket",
    "kalshi"
  ],
  "minVolume24h": 0,
  "onlyChanges": false,
  "minChangePoints": 5,
  "trackingKey": "default",
  "maxMarkets": 50
}
```

# Actor output Schema

## `markets` (type: `string`):

All markets saved by the run, most traded first.

# 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"
    ],
    "maxMarkets": 50
};

// Run the Actor and wait for it to finish
const run = await client.actor("shoomaii/prediction-markets-odds").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",
    ],
    "maxMarkets": 50,
}

# Run the Actor and wait for it to finish
run = client.actor("shoomaii/prediction-markets-odds").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"
  ],
  "maxMarkets": 50
}' |
apify call shoomaii/prediction-markets-odds --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,shoomaii/prediction-markets-odds"
        }
    }
}
```

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/rB73SkhOMFO5NI2PW/builds/ZVZl8DQ8Z134vyNTM/openapi.json
