# Polymarket, Kalshi & Manifold Odds API + Arbitrage Scanner (`topaz_anemone/prediction-markets-mcp`) Actor

Real-time prediction market odds, bid/ask spreads, 24h volume & liquidity across Polymarket, Kalshi & Manifold via direct public APIs. 256 MB RAM, MCP ready.

- **URL**: https://apify.com/topaz_anemone/prediction-markets-mcp.md
- **Developed by:** [dannis chros](https://apify.com/topaz_anemone) (community)
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$1.99 / 1,000 prediction markets live quote

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/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

## Polymarket, Kalshi & Manifold Odds API + Arbitrage Scanner

One normalized feed of **live prediction-market odds** from **Polymarket, Kalshi and Manifold**, plus a **cross-platform
scanner** that finds the same event priced differently and flags **executable arbitrage**, net of Kalshi fees.

**$1.99 per 1,000 rows** · public APIs only · typically 2-7 s · 256 MB · limited permissions

### What you get

- **Quotes mode**: probability, bid/ask, spread, 24h and total volume, liquidity, close time and URL for every market, with the **matching markets on the other platforms** (`crossPlatform`) and the largest gap (`maxProbabilityGap`).
- **Discrepancies mode**: one row per matched pair, ranked: verified arbitrage first (by net edge), then same-event price gaps, then related markets.
- **Real keyword search on all three platforms** (including Kalshi's own search index), or a market-wide scan over liquid topics when you leave the keyword empty.
- **Conservative matching you can trust**: questions must agree on entity, numbers and thresholds, years, direction, country and office ("Democratic presidential nominee" is never paired with "vice-presidential nominee"). Pairs whose deadlines, resolution sources or mechanics may differ ("reach $95k any time" vs "price on Dec 31 above $95k") are downgraded, labeled in plain English and never flagged as arbitrage.

### Quick start

```json
{ "query": "Fed", "outputMode": "discrepancies", "maxResults": 20 }
```

```json
{ "query": "bitcoin", "outputMode": "quotes", "sortBy": "volume_24h", "maxResults": 50 }
```

Market-wide scan (no keyword):

```json
{ "outputMode": "discrepancies", "minProbabilityGap": 0.03, "maxResults": 50 }
```

### Output examples (real data)

Discrepancy / arbitrage row (legs abbreviated):

```json
{
  "pairId": "polymarket:3215008|kalshi:KXFEDDECISION-26DEC-H25",
  "title": "Will the Fed increase interest rates by 25 bps after the December 2026 meeting?",
  "matchScore": 1.0,
  "confidence": "high",
  "probabilityGap": 0.0195,
  "isArbitrage": true,
  "grossEdge": 0.014,
  "netEdgeEstimate": 0.004,
  "strategy": "Buy YES on kalshi at 0.950 + buy NO on polymarket at 0.036",
  "totalCostPerPair": 0.986,
  "caveats": [
    "Automated title matching: confirm both markets use the same resolution source, deadline, threshold and settlement rules (and check fees, limits and liquidity) before trading."
  ]
}
```

Quote row:

```json
{
  "platform": "polymarket",
  "currency": "USD",
  "isRealMoney": true,
  "marketId": "3215008",
  "tickerOrSlug": "will-the-fed-increase-interest-rates-by- …",
  "title": "Will the Fed increase interest rates by 25 bps after the December 2026 meeting?",
  "category": null,
  "yesProbability": 0.9645,
  "noProbability": 0.0355,
  "yesBid": 0.964,
  "yesAsk": 0.965,
  "spread": 0.001,
  "oneDayChange": 0.0195,
  "volumeTotal": 15671229.907495,
  "volume24h": 1345131.321043,
  "liquidity": 1431892.75545,
  "closeTimeIso": "2026-12-09T23:59:00Z",
  "status": "active",
  "url": "https://polymarket.com/event/fed-decision-in-december-20260729232808632",
  "crossPlatform": [
    {
      "platform": "manifold",
      "marketId": "5cRgP2sE8R",
      "title": "Will the Fed increase interest rates by 25 bps after the December 2026 meeting?",
      "yesProbability": 0.94,
      "matchScore": 1.0,
      "url": "https://manifold.markets/TonyM/will-the-fed-increase-interest-rate-NAhLt22n2O"
    },
    {
      "platform": "kalshi",
      "marketId": "KXFEDDECISION-26DEC-H25",
      "title": "Will the Federal Reserve Hike rates by 25bps at their December 2026 meeting? (Hike 25bps)",
      "yesProbability": 0.945,
      "matchScore": 1.0,
      "url": "https://kalshi.com/markets/kxfeddecision/kxfeddecision-26dec"
    }
  ],
  "maxProbabilityGap": 0.0245
}
```

**How the arbitrage math works**: buying YES on one platform at its ask and NO on the other (NO costs 1 minus the
other platform's YES bid) pays exactly $1 if both markets resolve identically. `grossEdge` = 1 minus the total cost;
`netEdgeEstimate` subtracts Kalshi's taker fee (about 0.07 x P x (1-P) per contract, rounded up to the cent).
A pair is flagged `isArbitrage` only when the match is high-confidence, both legs are real-money order books and the
net edge is positive. Always read the `caveats` and both rule books before trading.

### Use cases

- **Arbitrage and relative-value desks**: scan every few minutes and alert on positive net edges.
- **Forecasters and forecasting bots** (Metaculus, Good Judgment, internal models): pull market consensus for a question in one call.
- **Research and journalism**: compare how regulated (Kalshi), crypto (Polymarket) and play-money (Manifold) markets price the same event.
- **AI agents**: "What do prediction markets say about a Fed hike in December, and do the platforms disagree?"

### Use it from AI agents (MCP)

This Actor runs with **limited permissions**, so it is available to AI agents through the hosted Apify MCP server
and can even be paid for by agents over x402. Add it as a dedicated tool named `topaz_anemone--prediction-markets-mcp`:

**Claude Desktop / Cursor / Windsurf / VS Code** (`mcp.json` or the app's MCP settings; sign in with OAuth on first use):

```json
{
  "mcpServers": {
    "prediction-markets-mcp": {
      "url": "https://mcp.apify.com?tools=topaz_anemone/prediction-markets-mcp"
    }
  }
}
```

**Claude Code**:

```bash
claude mcp add --transport http prediction-markets-mcp "https://mcp.apify.com?tools=topaz_anemone/prediction-markets-mcp"
```

Prefer an API token over OAuth? Add the header `"Authorization": "Bearer <APIFY_TOKEN>"`.
Then just ask your agent, for example: *"Compare Polymarket, Kalshi and Manifold odds on the next Fed decision and tell me if there is any arbitrage after fees."*

### Use it from n8n, Make, Zapier, Python or cURL

**n8n**: import the ready-made workflow from [`n8n-templates/`](https://github.com/dannischros-star/apify-mcp-actors/tree/main/n8n-templates) (schedule, run, de-duplicate,
notify), or call the endpoint below with an *HTTP Request* node using a *Header Auth* credential
(`Authorization: Bearer <APIFY_TOKEN>`).

**cURL** (runs the Actor and returns the dataset items in one call):

```bash
curl -X POST "https://api.apify.com/v2/acts/topaz_anemone~prediction-markets-mcp/run-sync-get-dataset-items" \
  -H "Authorization: Bearer $APIFY_TOKEN" -H "Content-Type: application/json" \
  -d '{"query": "Fed", "outputMode": "discrepancies", "maxResults": 20}'
```

**Python** (`pip install apify-client`):

```python
from apify_client import ApifyClient

client = ApifyClient("<APIFY_TOKEN>")
run = client.actor("topaz_anemone/prediction-markets-mcp").call(run_input={
        "query": "Fed",
        "outputMode": "discrepancies",
        "maxResults": 20
    })
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)
```

Every run also writes a `SUMMARY` record to the default key-value store with per-source statistics and timings.

### Pricing

**$0.00199 per returned row** (event `market-quote`; in discrepancies mode one row is one matched pair).
Single-platform odds feeds on Apify Store cost $1.00-$1.50 per 1,000 quotes; this Actor adds three-platform
normalization, real keyword search and the cross-platform matcher. A 20-pair scan every hour costs about $29 per month.

### FAQ

**Is Manifold real money?** No, it uses play money (MANA). Pairs with a Manifold leg are never flagged as arbitrage, but the gap is still a useful sentiment signal.

**Why are volumes in different units?** Polymarket reports USD volume; Kalshi reports contracts ($1 notional each); Manifold reports MANA. Each row has a `currency` field.

**Can I trade through this Actor?** No. It is read-only market data. Execution, fees, limits and eligibility (Kalshi is US-only) are your responsibility.

**How accurate is the matching?** It is deliberately conservative: it prefers missing a pair over pairing two different questions. Check `matchScore`, `confidence` and `caveats` on every row.

### Changelog

**1.1 (2026-11-30)**

- Cross-platform matcher and arbitrage scanner (`outputMode: discrepancies`) with fee-aware net edge and caveats.
- Kalshi now uses Kalshi's own search index, so keyword searches find the right events.
- `crossPlatform` and `maxProbabilityGap` on every quote, market-wide topic scan, currency/real-money flags.

### Support and feedback

Found a bug or need a field? Open an issue on the **Issues** tab of this Actor; fixes usually ship within days.
Source code and n8n templates: [github.com/dannischros-star/apify-mcp-actors](https://github.com/dannischros-star/apify-mcp-actors).

# Actor input Schema

## `query` (type: `string`):

Topic to search on every platform, e.g. 'Fed', 'CPI', 'recession', 'Bitcoin', 'election', 'AI'. Leave empty to get the biggest markets (quotes mode) or to scan a built-in list of liquid topics (discrepancies mode).

## `outputMode` (type: `string`):

'Quotes': one row per market with probability, bid/ask, volume, liquidity and the matching markets on other platforms. 'Discrepancies': one row per cross-platform pair of the same event, ranked by executable arbitrage edge, then by probability gap.

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

Platforms to query in parallel.

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

Maximum number of rows returned (and charged), 1-200.

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

Ordering of quotes (discrepancies are always ranked by edge and confidence).

## `minVolumeUsd` (type: `number`):

Drop thinly traded markets below this total volume (USD for Polymarket/Kalshi, MANA for Manifold).

## `minLiquidityUsd` (type: `number`):

Drop markets whose current liquidity (or open interest) is below this value.

## `excludeParlays` (type: `boolean`):

Skip Kalshi multivariate sports parlays (KXMVE tickers) so results focus on single-event markets.

## `matchAcrossPlatforms` (type: `boolean`):

In quotes mode, adds 'crossPlatform' (the same event on the other platforms) and 'maxProbabilityGap' to every quote. Always on in discrepancies mode.

## `minMatchScore` (type: `number`):

Similarity required to pair two markets (0.5-1.0). Pairs at 0.8+ without caveats are 'high' confidence; only those can be flagged as arbitrage.

## `minProbabilityGap` (type: `number`):

Only return pairs whose implied probabilities differ by at least this much (0.02 = 2 points). Arbitrage candidates are always returned.

## `scanTopics` (type: `array`):

Used in discrepancies mode when the keyword is empty. Each topic is searched on every platform and the results are matched together.

## Actor input object example

```json
{
  "query": "Fed",
  "outputMode": "quotes",
  "platforms": [
    "polymarket",
    "kalshi",
    "manifold"
  ],
  "maxResults": 30,
  "sortBy": "volume_24h",
  "minVolumeUsd": 0,
  "minLiquidityUsd": 0,
  "excludeParlays": true,
  "matchAcrossPlatforms": true,
  "minMatchScore": 0.6,
  "minProbabilityGap": 0.02,
  "scanTopics": [
    "fed",
    "inflation",
    "recession",
    "bitcoin",
    "election",
    "ai"
  ]
}
```

# Actor output Schema

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

No description

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

No description

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

No description

## `discrepancies` (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 = {
    "query": "Fed",
    "platforms": [
        "polymarket",
        "kalshi",
        "manifold"
    ],
    "scanTopics": [
        "fed",
        "inflation",
        "recession",
        "bitcoin",
        "election",
        "ai"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("topaz_anemone/prediction-markets-mcp").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 = {
    "query": "Fed",
    "platforms": [
        "polymarket",
        "kalshi",
        "manifold",
    ],
    "scanTopics": [
        "fed",
        "inflation",
        "recession",
        "bitcoin",
        "election",
        "ai",
    ],
}

# Run the Actor and wait for it to finish
run = client.actor("topaz_anemone/prediction-markets-mcp").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 '{
  "query": "Fed",
  "platforms": [
    "polymarket",
    "kalshi",
    "manifold"
  ],
  "scanTopics": [
    "fed",
    "inflation",
    "recession",
    "bitcoin",
    "election",
    "ai"
  ]
}' |
apify call topaz_anemone/prediction-markets-mcp --silent --output-dataset

```

## MCP server setup

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

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/lgDgjagm74m9iLPVs/builds/Wn0lKvvKYp1AiXSJo/openapi.json
