# Kalshi vs Polymarket Price Gaps (Matched Markets) (`oddsdesk/kalshi-polymarket-price-gaps`) Actor

Automatically matches the same question on Kalshi and Polymarket and shows the price gap between them. One row per matched pair with both probabilities, links, volume and a match score. Data only, no trading.

- **URL**: https://apify.com/oddsdesk/kalshi-polymarket-price-gaps.md
- **Developed by:** [Jakob](https://apify.com/oddsdesk) (community)
- **Categories:** AI, Developer tools, Other
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $5.00 / 1,000 result 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

## Kalshi vs Polymarket Price Gaps: the same question, two prices

This Actor **automatically matches the same question listed on both Kalshi and Polymarket** and shows how far apart their prices are. Each row is one matched pair with both probabilities, the gap in points, which venue is cheaper, both links, volume and a match score. Matching checks numbers, dates, over/under direction and outcome names, so "above 3.5%" never gets paired with "below 3.5%".

### What you can do with it

- **Market research:** where do the two biggest prediction markets disagree, and by how much?
- **Cross-venue monitoring:** schedule it and get alerted when a gap opens.
- **Data journalism:** compare crowd forecasts across platforms.
- **AI agents:** one call returns comparable pairs instead of two raw APIs.

### How to use it

1. Click **Try for free** (or **Start**).
2. Pick categories, keywords or filters, or keep the defaults.
3. Click **Start**. Most runs finish in under 2 minutes.
4. Download the results as JSON, CSV, Excel or HTML, or read them from the API.

**Example input**

```json
{
  "categories": [
    "Politics",
    "Economics",
    "Crypto"
  ],
  "minGapPoints": 3,
  "maxItems": 50
}
```

### What you get

| Field | Meaning |
|---|---|
| `title` | The question (Kalshi wording) |
| `kalshiProbability / polymarketProbability` | Both prices for the same outcome, 0–1 |
| `gapPoints` | Kalshi minus Polymarket, in points |
| `cheaperOn` | Which venue prices the YES side lower |
| `matchScore` | 0–1 confidence that both markets ask the same thing |
| `kalshi_* / polymarket_*` | Full details and links for each side |

**Example row (real output)**

```json
{
  "matchScore": 0.86,
  "category": "Sports",
  "title": "Independiente de Oliva wins",
  "gapPoints": -15.0,
  "absGapPoints": 15.0,
  "cheaperOn": "kalshi",
  "kalshiProbability": 0.055,
  "polymarketProbability": 0.205,
  "polymarketOutcome": "Independiente de Oliva",
  "kalshi_marketId": "KXARGLNBGAME-26NOV051930COMIND-IND",
  "kalshi_eventTitle": "Gimnasia de Comodoro vs Independiente de Oliva",
  "kalshi_question": "Independiente de Oliva wins",
  "kalshi_outcome": "Independiente de Oliva",
  "kalshi_probability": 0.055,
  "kalshi_yesBid": 0.02,
  "kalshi_yesAsk": 0.09,
  "kalshi_volume24h": 615.25,
  "kalshi_volume": 748.05,
  "kalshi_closeTime": "2026-11-08T00:30:00Z",
  "kalshi_url": "https://kalshi.com/markets/kxarglnbgame",
  "polymarket_marketId": "6629561",
  "polymarket_eventTitle": "Independiente de Oliva vs. Gimnasia",
  "polymarket_question": "Independiente de Oliva vs. Gimnasia",
  "polymarket_outcome": "Independiente de Oliva",
  "polymarket_probability": 0.205,
  "polymarket_yesBid": 0.17,
  "polymarket_yesAsk": 0.24,
  "polymarket_volume24h": 872.91,
  "polymarket_volume": 556.18,
  "polymarket_closeTime": "2026-11-13T00:30:00Z",
  "polymarket_url": "https://polymarket.com/event/bkarg-ind-gim-2026-11-05",
  "note": "Matched by text similarity. Always compare both venues' resolution rules before acting; this is data, not financial advice.",
  "fetchedAt": "2026-11-06T02:45:45Z"
}
```

**Important:** two markets that look identical can still resolve differently (different data source, time zone or wording). Always read both venues' rules before acting on a gap. Gaps on thin markets often reflect stale prices, so this Actor skips markets with a bid/ask spread wider than 10 points by default.

### Pricing

Pay only for what you get: **$5.00 per 1,000 results** plus **$0.01 per run**. For example, 100 rows cost about $0.51. Set **Max results** to cap your cost; platform usage is included.

### Use it from code, Zapier, Make or an AI agent

**Python**

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_APIFY_TOKEN>")
run = client.actor("oddsdesk/kalshi-polymarket-price-gaps").call(run_input={"categories": ["Politics", "Economics", "Crypto"], "minGapPoints": 3, "maxItems": 50})
for row in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(row)
```

**HTTP (one call, returns the rows)**

```bash
curl -X POST "https://api.apify.com/v2/acts/oddsdesk~kalshi-polymarket-price-gaps/run-sync-get-dataset-items?token=<YOUR_APIFY_TOKEN>" \
  -H "Content-Type: application/json" -d '{"categories": ["Politics", "Economics", "Crypto"], "minGapPoints": 3, "maxItems": 50}'
```

**AI agents (MCP):** add the Apify MCP server (`https://mcp.apify.com`) to Claude, ChatGPT or Cursor and ask for `oddsdesk/kalshi-polymarket-price-gaps`. The input fields below double as the tool's parameters.

### Data source and limits

- Data comes from the **official public APIs** of Kalshi (Trade API v2, market data) and Polymarket (Gamma API). No login, no API key, no personal data.
- Prices are a snapshot at run time (`fetchedAt`). For a live feed, [schedule the Actor](https://docs.apify.com/platform/schedules) every 5–60 minutes.
- Kalshi volume is counted in contracts ($1 notional each); Polymarket volume is in USDC.
- `probability` is the midpoint of the best bid and ask when the spread is 10 points or less, otherwise the last traded price.
- Markets whose close time has passed (waiting to settle) are left out.
- Polymarket lists tens of thousands of tiny markets. This Actor reads the ~2,100 most active events by 24h volume, which covers every market with meaningful trading.

### Disclaimer

This Actor provides market data for research, journalism, dashboards and software. It does not place trades and is **not financial, betting or investment advice**. Prediction markets may be restricted where you live; check your local rules. OddsDesk is not affiliated with Kalshi or Polymarket.

### Feedback

Found a bug or want a field added? Open an issue on the **Issues** tab. We usually fix things within a few days.

# Actor input Schema

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

Only include these categories. Leave empty for all.

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

Only include markets whose title, question, outcome or tags contain any of these words (case-insensitive). Example: bitcoin, Fed, Taylor Swift.

## `minMatchScore` (type: `string`):

How sure the matcher must be that both markets ask the same question. 0.7 is a good balance; 0.85 is strict.

## `maxSpreadPoints` (type: `integer`):

Skip markets whose bid/ask spread is wider than this, because their price is not reliable.

## `minGapPoints` (type: `integer`):

Only pairs whose prices differ by at least this many points.

## `minVolumeEachSide` (type: `integer`):

Skip pairs where either market is thinly traded.

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

Order of the results.

## `maxItems` (type: `integer`):

Maximum number of rows to return. You pay per row, so this also caps your cost.

## Actor input object example

```json
{
  "minMatchScore": "0.7",
  "maxSpreadPoints": 10,
  "minGapPoints": 3,
  "minVolumeEachSide": 500,
  "sortBy": "absGap",
  "maxItems": 50
}
```

# Actor output Schema

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

One row per market (or matched pair) as described in the README.

# 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 = {
    "minGapPoints": 3,
    "maxItems": 50
};

// Run the Actor and wait for it to finish
const run = await client.actor("oddsdesk/kalshi-polymarket-price-gaps").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 = {
    "minGapPoints": 3,
    "maxItems": 50,
}

# Run the Actor and wait for it to finish
run = client.actor("oddsdesk/kalshi-polymarket-price-gaps").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 '{
  "minGapPoints": 3,
  "maxItems": 50
}' |
apify call oddsdesk/kalshi-polymarket-price-gaps --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,oddsdesk/kalshi-polymarket-price-gaps"
        }
    }
}
```

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/Fjng5zT7bkPwWqmgx/builds/XNYy2hfykahcnqlbU/openapi.json
