# Prediction Markets Odds: Polymarket & Kalshi (`nemata/polymarket-kalshi-odds`) Actor

Live probabilities, prices and volume from Polymarket and Kalshi in one normalized format, from the official public market-data APIs. Filter by keyword, category, volume or probability. No login, no wallet.

- **URL**: https://apify.com/nemata/polymarket-kalshi-odds.md
- **Developed by:** [nemata](https://apify.com/nemata) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.50 / 1,000 market returneds

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

Live **probabilities, prices and volume** from the two largest prediction markets, in one clean format. Read straight from the official public market-data APIs: no login, no wallet, no trading.

- **Polymarket + Kalshi together:** one row per market with a normalized `probability` (0–1).
- **Bid, ask, last price, 24h change**, total and 24h volume, liquidity or open interest, close time.
- **Filter** by keywords, category / tag, minimum 24h volume and probability range.
- **Sort** by 24h volume, total volume or closing soonest.
- **Pay per market returned.**

### Use cases

- Track the odds on elections, central-bank decisions, crypto, sports or tech events
- Feed dashboards, newsletters, research notes and trading models
- Give an AI agent the market's current view on a question
- Schedule it hourly or daily to build your own price history

### Input

| Field | Description |
|---|---|
| `platforms` | `polymarket`, `kalshi` or both |
| `keywords` | Words to match in event, question, outcome or tags |
| `categories` | Categories or tags, e.g. `Politics`, `Economy`, `Crypto` |
| `minVolume24h` | Skip thin markets (USD on Polymarket, contracts on Kalshi) |
| `minProbability` / `maxProbability` | Probability range, 0–1 |
| `sortBy` | `volume24h`, `volume` or `closeTime` |
| `maxResults` | Rows to return |
| `maxEventsToScan` | Open events read per platform, most active first |

```json
{ "platforms": ["polymarket", "kalshi"], "keywords": ["fed", "interest rate"], "minVolume24h": 1000 }
```

### Output

```json
{
  "platform": "polymarket",
  "eventTitle": "Fed Decision in December?",
  "category": "Fed",
  "tags": ["Fed", "Economy"],
  "question": "Will there be no change in Fed interest rates after the December 2026 meeting?",
  "outcome": "No change",
  "probability": 0.032,
  "bestBid": 0.031,
  "bestAsk": 0.033,
  "lastPrice": 0.032,
  "change24h": 0.0095,
  "volume": 11499549.8,
  "volume24h": 1309407.99,
  "liquidity": 418108.47,
  "openInterest": null,
  "volumeUnit": "USD",
  "closeTime": "2026-12-09T23:59:00Z",
  "url": "https://polymarket.com/event/fed-decision-in-december-20260729232808632"
}
```

On Kalshi, `probability` is the midpoint between the best Yes bid and ask (or the last price when there is no quote), volume is in contracts, and `openInterest` is filled instead of `liquidity`. Multi-leg parlay markets are excluded.

### Use with AI agents

- **MCP:** AI assistants and agents can call this Actor as a tool through the Apify MCP server.
- **No Apify account needed for agents:** agents can pay per run through Apify with x402 (stablecoins) or Skyfire, and then call the Actor with the temporary token they receive.
- Clear JSON input and structured JSON output that an agent can use directly.

### Pricing

**$0.0015 per market** ($1.50 per 1,000). The price is the same for every Apify plan you are on, and you can set a maximum cost per run in the run options.

Pay per event: you are charged **per market row returned**. Set a maximum cost per run in the run options.

### Notes

Market data only. This Actor does not place trades or give financial advice. Prices reflect market participants' views at the time of the run.

# Actor input Schema

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

Which markets to read.

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

Keep markets whose event, question, outcome or tags contain any of these words (e.g. 'Fed', 'election', 'bitcoin'). Empty = all.

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

Keep markets in these categories or tags (e.g. 'Politics', 'Economy', 'Sports', 'Crypto').

## `minVolume24h` (type: `number`):

Skip thin markets. USD for Polymarket, contracts for Kalshi.

## `minProbability` (type: `number`):

Keep markets whose 'Yes' probability is at least this value.

## `maxProbability` (type: `number`):

Keep markets whose 'Yes' probability is at most this value.

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

Order of the results.

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

Maximum number of market rows to return.

## `maxEventsToScan` (type: `integer`):

How many open events (most active first) to read from each platform before filtering.

## Actor input object example

```json
{
  "platforms": [
    "polymarket",
    "kalshi"
  ],
  "keywords": [
    "fed"
  ],
  "sortBy": "volume24h",
  "maxResults": 200,
  "maxEventsToScan": 1000
}
```

# Actor output Schema

## `results` (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 = {
    "keywords": [
        "fed"
    ]
};

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

# Run the Actor and wait for it to finish
run = client.actor("nemata/polymarket-kalshi-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 '{
  "keywords": [
    "fed"
  ]
}' |
apify call nemata/polymarket-kalshi-odds --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,nemata/polymarket-kalshi-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/hckAPxqbdnBGBgAZh/builds/tV9u0kk42NJlp6PGc/openapi.json
