# Prediction Market Arbitrage Scanner (Kalshi & Polymarket)

**Use case:** 

Scans Kalshi and Polymarket for the same underlying prediction markets, nets venue taker fees, and walks order books to find real, fee-adjusted arbitrage opportunities.

## Input

```json
{
  "kalshiCategories": [],
  "maxKalshiEvents": 2000,
  "maxPolymarketMarkets": 4000,
  "minMatchScore": 42,
  "minNetEdgePct": 0.002,
  "notionalSize": 100,
  "useOrderbooks": true,
  "maxOpportunities": 200,
  "includePairs": true,
  "feeModel": "conservative",
  "dnsServers": "1.1.1.1,8.8.8.8"
}
```

## Output

```json
{
  "type": {
    "label": "Type"
  },
  "netEdgePct": {
    "label": "Net Edge %",
    "format": "percentage"
  },
  "netEdgePerContract": {
    "label": "Net Edge / Contract ($)"
  },
  "grossEdgePerContract": {
    "label": "Gross edge per contract"
  },
  "sizeUsed": {
    "label": "Size (Contracts)"
  },
  "cheapVenue": {
    "label": "Cheap Venue"
  },
  "cheapPrice": {
    "label": "Cheap price"
  },
  "richVenue": {
    "label": "Rich Venue"
  },
  "richPrice": {
    "label": "Rich price"
  },
  "kalshi.question": {
    "label": "Question"
  },
  "polymarket.question": {
    "label": "Question"
  }
}
```

## How it works

### 1. Sign up on Apify or log in

The Prediction Market Arbitrage Scanner (Kalshi & Polymarket) Actor is ready to run with the inputs already set for "Prediction Market Arbitrage Scanner (Kalshi & Polymarket)". [Sign up or log in](https://console.apify.com/create-task-from-example/AzXXx5qKbgXdgOELy) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Prediction Market Arbitrage Scanner (Kalshi & Polymarket)" task

The Prediction Market Arbitrage Scanner (Kalshi & Polymarket) Actor will start running based on the input automatically. You can also change all the input fields, like kalshi categories, max kalshi events to scan, and more, to match your specific use case.

### 3. Receive the "Prediction Market Arbitrage Scanner (Kalshi & Polymarket)" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as type, net edge %, net edge / contract ($), and more.

### 4. Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also [run the "Prediction Market Arbitrage Scanner (Kalshi & Polymarket)" task via API](https://apify.com/jiro90/prediction-market-arb-scanner.md).

## FAQ

### What is the purpose of the Prediction Market Arbitrage Scanner?

The Prediction Market Arbitrage Scanner identifies fee-adjusted arbitrage opportunities across Kalshi and Polymarket prediction markets.

### What data does this task return?

The task returns fields including type, net edge percentage, net edge per contract, and details about both the cheap and rich venues.

### How does this task handle taker fees?

The task accounts for taker fees from Kalshi and Polymarket, including specific fee structures and rounding quirks.

### What is the significance of the 'Net Edge %' field?

The 'Net Edge %' field indicates the profit margin of an arbitrage opportunity after accounting for fees.

### Can this task be run automatically on a schedule?

This task can be scheduled to run automatically in the Apify Console according to user-defined parameters.

### How does the task ensure accurate market comparisons?

The task uses a precision matching pipeline to filter out misleading matches based on entity agreements and resolution dates.

## About this Actor

This example demonstrates how to use [Prediction Market Arbitrage Scanner (Kalshi & Polymarket)](https://apify.com/jiro90/prediction-market-arb-scanner.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/jiro90/prediction-market-arb-scanner.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

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 full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/jiro90/prediction-market-arb-scanner.md

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`).
