# Prediction Markets Intelligence MCP (Polymarket & Kalshi) (`signalnodes/prediction-markets-intel-mcp`) Actor

Read-only MCP intelligence tool for Polymarket and Kalshi prediction markets. Search normalized live markets, inspect CLOB orderbook depth and VWAP slippage, and scan cross-venue arbitrage spreads with no API key, no wallet, and transparent $0.01 pay-per-event pricing.

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

## Pricing

from $10.00 / 1,000 prediction market intelligence queries

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/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 Intelligence MCP (Polymarket & Kalshi)

**Read-only Prediction Market MCP & unified Polymarket API + Kalshi API intelligence Actor — no API key, no wallet, and $0.01 pay-per-event pricing.**

Built for AI agents (`mcp.apify.com`), quant researchers, macro analysts, and market-data pipelines that need clean, normalized Polymarket & Kalshi probabilities, true CLOB orderbook depth with VWAP slippage simulation, and fee-adjusted cross-venue arbitrage spread detection in a single zero-friction call.

***

### Why Use This Prediction Market MCP?

Connecting AI agents directly to raw **Polymarket API** and **Kalshi API** endpoints breaks easily in production:

- **Unified Schema Across Venues (No API Key, No Wallet)**: Queries official public read-only endpoints on `gamma-api.polymarket.com`, `clob.polymarket.com`, and `api.elections.kalshi.com` without API keys, OAuth tokens, crypto wallets, or private keys.
- **Polymarket CLOB Orderbook Sorting Fix**: Raw Polymarket CLOB `/book` responses return bids in ascending order and asks in descending order. This Actor strictly re-sorts bids descending and asks ascending before computing top-of-book prices, spread, depth, and slippage.
- **Kalshi v2 2026 Dollar & Orderbook Native Support**: Parses Kalshi's 2026 `yes_bid_dollars`, `yes_ask_dollars`, `volume_24h_fp`, `open_interest_fp`, and `orderbook_fp` (`yes_dollars` + `no_dollars` converted into YES asks via `1.0 - p_no`) while maintaining backward compatibility with legacy cent fields.
- **Zero Deprecated Endpoints**: Never calls deprecated endpoints (such as `410 Gone` Polymarket trades routes).
- **MCP-Hardened Input Guardrails (`apify-mcp-server#1266` Safe)**: Strict 12-field allowlist (`additionalProperties: false`), regex-validated identifiers rejecting `.`/`..` path traversal and URL injection, and boolean-as-number rejection — with **$0.00 billing guaranteed** whenever an input fails validation or all upstream venues are unavailable.

***

### 3 Core Actions Compared

| Action (`action`) | What It Returns | Target Venues (`venues`) | Key Inputs | Typical AI Agent Use Case | PPE Cost |
| :--- | :--- | :--- | :--- | :--- | :---: |
| **`search_markets`** *(default)* | Unified 16-field live market list sorted & filtered by keyword and liquidity | `all`, `polymarket`, `kalshi` | `query`, `limit`, `minLiquidityUsd` | Track live odds on macro, crypto, elections, and Fed rate markets | **$0.01** |
| **`orderbook_depth`** | True sorted L2 top-5 bids/asks, spread (bps), top-5 depth, and simulated buy-YES **Orderbook Slippage** & VWAP | `polymarket` or `kalshi` *(required)* | `tokenId` or `marketId` (Poly) / `ticker` (Kalshi), `orderSizeUsd` | Estimate execution price and market impact before sizing a position | **$0.01** |
| **`cross_venue_spread`** | Entity- & expiry-matched Polymarket vs. Kalshi pairs with raw spread and fee-adjusted **Cross-Venue Arbitrage Spread** (`net_edge_bps`) | `all` *(default / required)* | `query`, `minMatchScore`, `minSpreadBps`, `minLiquidityUsd`, `limit` | Scan cross-venue mispricing after estimated 90 bps two-leg fees | **$0.01** |

***

### Transparent Pay-Per-Event Pricing ($0.01 / Valid Query)

This Actor uses **Pay-per-event (`Pay-per-event + usage`)** with a single, predictable event:

| Event Name | Unit Price | When It Is Charged |
| :--- | :---: | :--- |
| **`market-intel`** | **$0.01** | Charged **once** per valid read-only query (`search_markets`, `orderbook_depth`, or `cross_venue_spread`) that succeeds with upstream venue data. |
| `apify-actor-start` | **$0.00** *(disabled)* | **Zero actor-start fee.** You never pay just to boot the container. |

#### Zero Accidental-Billing & Zero Negative-Margin Guarantee

- **Invalid inputs (`status: "VALIDATION_ERROR"`) → `$0.00` charge**: Malformed MCP arguments, unknown keys, missing `ticker`/`tokenId`, out-of-range numbers, or path-traversal IDs are rejected locally before any HTTP request is made (`charged: false`, `charged_events: 0`).
- **Full upstream outage (`status: "upstream_unavailable"`) → `$0.00` charge**: If all requested upstream APIs time out or return errors, zero PPE events are billed (`charged: false`, `charged_events: 0`).
- **Budget cap respected (`status: "charge_limit_reached"`)**: Honors Apify's pay-per-event charge limit (`event_charge_limit_reached: true`) cleanly without overcharging.

***

### Connect via Apify MCP (`mcp.apify.com`)

Use this Actor directly as a **Prediction Market MCP** tool inside **Claude Desktop**, **Cursor**, **Windsurf**, or any MCP-compatible AI agent client via Apify's hosted MCP server:

```json
{
  "mcpServers": {
    "apify": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote",
        "https://mcp.apify.com/?tools=prediction-markets-intel-mcp"
      ],
      "env": {
        "APIFY_TOKEN": "YOUR_APIFY_TOKEN"
      }
    }
  }
}
```

#### Example AI Agent Prompts

- **Macro & Event Odds Discovery**: *"Search Polymarket and Kalshi for active Federal Reserve rate cut markets with at least $25,000 liquidity and compare YES midpoint odds."*
- **Orderbook Slippage Check**: *"Check Polymarket orderbook depth for token `21742633143463906290569050155826241533067272736897614950488156847949938836455` and estimate VWAP and slippage in bps for a $5,000 buy-YES order."*
- **Cross-Venue Arbitrage Spread Radar**: *"Scan Polymarket vs. Kalshi for matching Bitcoin markets with at least 100 bps raw spread and show net edge after fees."*

***

### Input Parameters (Strict 12-Field Allowlist)

All unknown properties are rejected (`additionalProperties: false`).

| Parameter | Type | Default | Valid Range / Format | Notes & Conditional Requirements |
| :--- | :--- | :--- | :--- | :--- |
| `action` | `string` | `"search_markets"` | `"search_markets"`, `"orderbook_depth"`, `"cross_venue_spread"` | Selects which intelligence operation to execute. |
| `venues` | `string` | `"all"` | `"all"`, `"polymarket"`, `"kalshi"` | For `orderbook_depth`: **must** be `"polymarket"` or `"kalshi"`. For `cross_venue_spread`: **must** be `"all"` (or omitted). |
| `query` | `string` | `""` | `0..120` chars (trimmed) | Optional keyword filter for `search_markets` and `cross_venue_spread`. |
| `limit` | `integer` | `10` | `1..30` | Maximum markets or spread pairs returned. |
| `minLiquidityUsd` | `number` | `0` | `0..10000000` | Minimum USD liquidity filter for `search_markets` and `cross_venue_spread`. |
| `marketId` | `string` | *(optional)* | `^[A-Za-z0-9._:-]{1,128}$` *(no `.`/`..`)* | Polymarket Gamma market ID. Required for `orderbook_depth` + `venues="polymarket"` if `tokenId` is omitted. |
| `tokenId` | `string` | *(optional)* | `^[A-Za-z0-9._:-]{1,128}$` *(no `.`/`..`)* | Polymarket CLOB token ID. Required for `orderbook_depth` + `venues="polymarket"` if `marketId` is omitted. |
| `ticker` | `string` | *(optional)* | `^[A-Za-z0-9._:-]{1,128}$` *(no `.`/`..`)* | Kalshi v2 market ticker. **Required** for `orderbook_depth` + `venues="kalshi"`. |
| `orderSizeUsd` | `number` | `1000` | `1..1000000` | Notional USD buy-YES size for VWAP & slippage simulation in `orderbook_depth`. |
| `minSpreadBps` | `integer` | `50` | `0..5000` | Minimum raw YES price spread in basis points for `cross_venue_spread`. |
| `minMatchScore` | `number` | `0.45` | `0.2..1.0` | Minimum entity/numeric/expiry match score for `cross_venue_spread`. |
| `timeoutSec` | `integer` | `15` | `5..35` | Per-request upstream HTTP timeout in seconds. |

***

### Input & Output JSON Examples

Every run writes the identical structured payload to both the default **Dataset** and the default Key-Value Store (`OUTPUT` record).

#### 1. `search_markets` — Unified Polymarket & Kalshi Market Search

**Input:**

```json
{
  "action": "search_markets",
  "venues": "all",
  "query": "Fed rate cut",
  "limit": 2,
  "minLiquidityUsd": 10000
}
```

**Output:**

```json
{
  "status": "ok",
  "action": "search_markets",
  "venues_requested": "all",
  "generated_at_utc": "2026-12-04T10:15:00Z",
  "venues_queried": ["polymarket", "kalshi"],
  "venues_failed": [],
  "upstream_errors": {},
  "result_count": 2,
  "charged": true,
  "charged_events": 1,
  "event_charge_limit_reached": false,
  "billing": {
    "event_name": "market-intel",
    "unit_price_usd": 0.01,
    "charged": true,
    "charged_events": 1,
    "charged_usd": 0.01,
    "event_charge_limit_reached": false
  },
  "counts_by_venue": {
    "polymarket": 1,
    "kalshi": 1
  },
  "markets": [
    {
      "venue": "polymarket",
      "market_id": "516710",
      "ticker_or_slug": "fed-rate-cut-december-2026",
      "token_id": "21742633143463906290569050155826241533067272736897614950488156847949938836455",
      "question": "Will the Fed cut interest rates in December 2026?",
      "event_title": "Federal Reserve December 2026 Decision",
      "yes_bid": 0.62,
      "yes_ask": 0.63,
      "yes_mid": 0.625,
      "no_mid": 0.375,
      "spread_bps": 100.0,
      "volume_24h": 482500.0,
      "liquidity_usd": 185400.0,
      "open_interest": 312000.0,
      "close_time_utc": "2026-12-16T19:00:00Z",
      "url": "https://polymarket.com/event/fed-rate-cut-december-2026"
    },
    {
      "venue": "kalshi",
      "market_id": "KXFED-26DEC-CUT25",
      "ticker_or_slug": "KXFED-26DEC-CUT25",
      "token_id": null,
      "question": "Will the Federal Reserve cut rates by 25 bps in December 2026?",
      "event_title": "Fed Interest Rate Decision December 2026",
      "yes_bid": 0.66,
      "yes_ask": 0.68,
      "yes_mid": 0.67,
      "no_mid": 0.33,
      "spread_bps": 200.0,
      "volume_24h": 145200.0,
      "liquidity_usd": 94000.0,
      "open_interest": 210500.0,
      "close_time_utc": "2026-12-16T19:00:00Z",
      "url": "https://kalshi.com/markets/kxfed-26dec-cut25"
    }
  ]
}
```

***

#### 2. `orderbook_depth` — L2 Book Depth & Buy-YES VWAP Slippage

**Input:**

```json
{
  "action": "orderbook_depth",
  "venues": "polymarket",
  "tokenId": "21742633143463906290569050155826241533067272736897614950488156847949938836455",
  "orderSizeUsd": 1000
}
```

**Output:**

```json
{
  "status": "ok",
  "action": "orderbook_depth",
  "venues_requested": "polymarket",
  "generated_at_utc": "2026-12-04T10:15:05Z",
  "venues_queried": ["polymarket"],
  "venues_failed": [],
  "upstream_errors": {},
  "result_count": 1,
  "charged": true,
  "charged_events": 1,
  "event_charge_limit_reached": false,
  "billing": {
    "event_name": "market-intel",
    "unit_price_usd": 0.01,
    "charged": true,
    "charged_events": 1,
    "charged_usd": 0.01,
    "event_charge_limit_reached": false
  },
  "market": null,
  "orderbook": {
    "venue": "polymarket",
    "market_id": null,
    "token_id": "21742633143463906290569050155826241533067272736897614950488156847949938836455",
    "ticker": null,
    "metrics": {
      "best_bid": 0.62,
      "best_ask": 0.63,
      "mid_price": 0.625,
      "spread_bps": 100.0,
      "top5_bid_depth_usd": 1964.0,
      "top5_ask_depth_usd": 1270.0,
      "order_size_usd": 1000.0,
      "simulated_buy_yes_vwap": 0.633663,
      "estimated_slippage_bps": 36.63,
      "fillable_usd": 1000.0,
      "fill_ratio": 1.0,
      "levels_consumed": 2
    },
    "top_bids": [
      { "price": 0.62, "size": 1200.0, "notional_usd": 744.0 },
      { "price": 0.61, "size": 2000.0, "notional_usd": 1220.0 }
    ],
    "top_asks": [
      { "price": 0.63, "size": 1000.0, "notional_usd": 630.0 },
      { "price": 0.64, "size": 1000.0, "notional_usd": 640.0 }
    ],
    "bid_levels_total": 18,
    "ask_levels_total": 21
  }
}
```

*(Note: When `marketId` is passed instead of `tokenId` for Polymarket, `market` is populated with the resolved 16-key normalized market object. For Kalshi, pass `venues: "kalshi"` and `ticker`.)*

***

#### 3. `cross_venue_spread` — Cross-Venue Arbitrage Spread Scanner

**Input:**

```json
{
  "action": "cross_venue_spread",
  "venues": "all",
  "query": "Fed rate cut",
  "minSpreadBps": 50,
  "minMatchScore": 0.45,
  "limit": 5
}
```

**Output:**

```json
{
  "status": "ok",
  "action": "cross_venue_spread",
  "venues_requested": "all",
  "generated_at_utc": "2026-12-04T10:15:10Z",
  "venues_queried": ["polymarket", "kalshi"],
  "venues_failed": [],
  "upstream_errors": {},
  "result_count": 1,
  "charged": true,
  "charged_events": 1,
  "event_charge_limit_reached": false,
  "billing": {
    "event_name": "market-intel",
    "unit_price_usd": 0.01,
    "charged": true,
    "charged_events": 1,
    "charged_usd": 0.01,
    "event_charge_limit_reached": false
  },
  "fee_model_bps": {
    "polymarket": 20.0,
    "kalshi": 70.0,
    "total": 90.0
  },
  "candidates_scanned": {
    "polymarket": 24,
    "kalshi": 19
  },
  "opportunities": [
    {
      "match_score": 0.84,
      "confidence": "HIGH",
      "raw_yes_diff_bps": 450.0,
      "estimated_fee_bps": 90.0,
      "net_edge_bps": 360.0,
      "best_direction": "buy_yes_polymarket_sell_yes_kalshi",
      "close_time_diff_days": 0.0,
      "polymarket": {
        "venue": "polymarket",
        "market_id": "516710",
        "ticker_or_slug": "fed-rate-cut-december-2026",
        "token_id": "21742633143463906290569050155826241533067272736897614950488156847949938836455",
        "question": "Will the Fed cut interest rates in December 2026?",
        "event_title": "Federal Reserve December 2026 Decision",
        "yes_bid": 0.62,
        "yes_ask": 0.63,
        "yes_mid": 0.625,
        "no_mid": 0.375,
        "spread_bps": 100.0,
        "volume_24h": 482500.0,
        "liquidity_usd": 185400.0,
        "open_interest": 312000.0,
        "close_time_utc": "2026-12-16T19:00:00Z",
        "url": "https://polymarket.com/event/fed-rate-cut-december-2026"
      },
      "kalshi": {
        "venue": "kalshi",
        "market_id": "KXFED-26DEC-CUT25",
        "ticker_or_slug": "KXFED-26DEC-CUT25",
        "token_id": null,
        "question": "Will the Federal Reserve cut rates by 25 bps in December 2026?",
        "event_title": "Fed Interest Rate Decision December 2026",
        "yes_bid": 0.66,
        "yes_ask": 0.68,
        "yes_mid": 0.67,
        "no_mid": 0.33,
        "spread_bps": 200.0,
        "volume_24h": 145200.0,
        "liquidity_usd": 94000.0,
        "open_interest": 210500.0,
        "close_time_utc": "2026-12-16T19:00:00Z",
        "url": "https://kalshi.com/markets/kxfed-26dec-cut25"
      }
    }
  ]
}
```

***

#### 4. `VALIDATION_ERROR` — Zero-Charge Input Guardrail Example

**Input (path traversal attempt):**

```json
{
  "action": "orderbook_depth",
  "venues": "kalshi",
  "ticker": "../evil"
}
```

**Output ($0.00 charged, zero HTTP calls):**

```json
{
  "status": "VALIDATION_ERROR",
  "action": "orderbook_depth",
  "venues_requested": "kalshi",
  "generated_at_utc": "2026-12-04T10:15:15Z",
  "errors": [
    "Field 'ticker' must match ^[A-Za-z0-9._:-]{1,128}$ and must not contain path traversal segments."
  ],
  "venues_queried": [],
  "venues_failed": [],
  "upstream_errors": {},
  "result_count": 0,
  "charged": false,
  "charged_events": 0,
  "event_charge_limit_reached": false,
  "billing": {
    "event_name": "market-intel",
    "unit_price_usd": 0.01,
    "charged": false,
    "charged_events": 0,
    "charged_usd": 0.0,
    "event_charge_limit_reached": false
  }
}
```

***

### Read-Only Compliance & Disclaimer

- **100% Read-Only Public Market Data**: This Actor exclusively issues unauthenticated read-only `GET` requests to official public APIs (`gamma-api.polymarket.com`, `clob.polymarket.com`, `api.elections.kalshi.com`). It never accepts user-supplied URLs, credentials, or private keys.
- **No Wallet, No Custody, No Trade Execution**: This Actor cannot place orders, sign transactions, connect crypto wallets, or access exchange accounts.
- **Informational Use Only**: Market odds, simulated VWAP slippage, and cross-venue spread estimates (including the illustrative 90 bps combined fee model) are provided strictly for research, analytics, and informational workflows — not financial, trading, or investment advice. Users are responsible for complying with applicable local laws and each venue's Terms of Service.

***

### SignalNodes Read-Only MCP Suite

Part of the **[SignalNodes](https://apify.com/signalnodes)** family of lightweight (`128–256 MB` RAM), zero-API-key, zero-startup-fee (`apify-actor-start` disabled), deterministic read-only MCP Actors on Apify Store:

| Actor | Core Capabilities | Pricing (Zero Startup Fee) | Store Page |
| :--- | :--- | :---: | :--- |
| **Prediction Markets Intelligence MCP (Polymarket & Kalshi)** *(this Actor)* | Normalized live Polymarket + Kalshi search, true sorted L2 orderbook depth & VWAP slippage, and fee-adjusted cross-venue arbitrage spread | **$0.01 / query** | [`signalnodes/prediction-markets-intel-mcp`](https://apify.com/signalnodes/prediction-markets-intel-mcp) |
| **E-commerce Store & GMC Compliance Audit MCP** | Shopify, WooCommerce & generic storefront QA, JSON-LD `Product`/`Offer`, GTIN/SKU hygiene & GMC pre-flight audit | **$0.02 / store** | [`signalnodes/ecommerce-store-audit-mcp`](https://apify.com/signalnodes/ecommerce-store-audit-mcp) |
| **Domain Security & Email Deliverability MCP** | 10-dimension RFC 7208 recursive SPF (`>10` lookup cliff), DMARC, DKIM, MX/ESP, MTA-STS, TLS-RPT, BIMI, DNSSEC/CAA, native TLS 1.3, OWASP headers & RDAP audit | **$0.02 / domain** | [`signalnodes/domain-security-deliverability-mcp`](https://apify.com/signalnodes/domain-security-deliverability-mcp) |

- **Ready-to-Use MCP Integration Templates (Claude Desktop, Cursor, Windsurf & n8n):** [github.com/Wlegend369/signalnodes-mcp-toolkit](https://github.com/Wlegend369/signalnodes-mcp-toolkit)
- **All SignalNodes Actors:** [apify.com/signalnodes](https://apify.com/signalnodes)

# Actor input Schema

## `action` (type: `string`):

Intelligence action to execute. Allowed enum values: 'search_markets' (default), 'orderbook_depth', 'cross_venue_spread'. Any other value or non-string triggers VALIDATION_ERROR with zero upstream HTTP calls and $0.00 charge.

## `venues` (type: `string`):

Target prediction market venue(s). Allowed enum values: 'all' (default), 'polymarket', 'kalshi'. Required constraints: for action='orderbook_depth', MUST be 'polymarket' or 'kalshi' ('all' is rejected); for action='cross_venue_spread', MUST be 'all' (or omitted). Invalid values or venue/action mismatches return VALIDATION_ERROR with $0.00 charge.

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

Optional keyword filter for 'search_markets' and 'cross_venue_spread' (e.g., 'Fed rate cut', 'Bitcoin', 'US election'). Valid range: string of 0..120 characters after trimming whitespace. Non-strings or strings exceeding 120 characters return VALIDATION_ERROR with $0.00 charge.

## `limit` (type: `integer`):

Maximum number of markets or cross-venue spread pairs to return. Valid range: integer 1..30 (default: 10; booleans rejected). Out-of-range or non-integer values return VALIDATION_ERROR with $0.00 charge.

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

Minimum market liquidity threshold in USD for filtering results in 'search_markets' and 'cross_venue_spread'. Valid range: number 0..10000000 (default: 0; booleans rejected). Out-of-range or invalid types return VALIDATION_ERROR with $0.00 charge.

## `marketId` (type: `string`):

Polymarket Gamma market ID used to resolve a CLOB token for action='orderbook_depth' with venues='polymarket'. Required when action='orderbook_depth', venues='polymarket', and tokenId is omitted. Valid format: 1..128 characters matching ^\[A-Za-z0-9.\_:-]{1,128}$ ('.' and '..' path traversal or URLs rejected). Missing/invalid IDs return VALIDATION_ERROR with $0.00 charge.

## `tokenId` (type: `string`):

Polymarket CLOB outcome token ID for action='orderbook_depth' with venues='polymarket'. Required when action='orderbook_depth', venues='polymarket', and marketId is omitted. Valid format: 1..128 characters matching ^\[A-Za-z0-9.\_:-]{1,128}$ ('.' and '..' path traversal or URLs rejected). Missing/invalid token IDs return VALIDATION_ERROR with $0.00 charge.

## `ticker` (type: `string`):

Kalshi v2 market ticker (e.g., 'KXFED-26DEC-T4.25'). Strictly required when action='orderbook_depth' and venues='kalshi'. Valid format: 1..128 characters matching ^\[A-Za-z0-9.\_:-]{1,128}$ ('.' and '..' path traversal or URLs rejected). Missing/invalid tickers return VALIDATION_ERROR with $0.00 charge.

## `orderSizeUsd` (type: `number`):

Notional buy-YES order size in USD for VWAP execution, slippage (bps), and fillable depth simulation in action='orderbook_depth'. Valid range: number 1..1000000 (default: 1000; booleans rejected). Out-of-range or invalid types return VALIDATION_ERROR with $0.00 charge.

## `minSpreadBps` (type: `integer`):

Minimum raw cross-venue YES price discrepancy in basis points (100 bps = 1%) to include in action='cross_venue_spread'. Valid range: integer 0..5000 (default: 50; booleans rejected). Out-of-range or invalid types return VALIDATION_ERROR with $0.00 charge.

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

Minimum entity, numeric/year, and expiry-proximity similarity score required to pair a Polymarket market with a Kalshi market in action='cross_venue_spread'. Valid range: number 0.2..1.0 (default: 0.45; booleans rejected). Out-of-range or invalid types return VALIDATION_ERROR with $0.00 charge.

## `timeoutSec` (type: `integer`):

Per-request HTTP timeout in seconds when querying official Polymarket and Kalshi read-only APIs. Valid range: integer 5..35 (default: 15; booleans rejected). Invalid values return VALIDATION_ERROR ($0.00 charge); if all requested upstream venues time out or fail, the Actor returns upstream_unavailable with $0.00 charge.

## Actor input object example

```json
{
  "action": "search_markets",
  "venues": "all",
  "query": "",
  "limit": 10,
  "minLiquidityUsd": 0,
  "orderSizeUsd": 1000,
  "minSpreadBps": 50,
  "minMatchScore": 0.45,
  "timeoutSec": 15
}
```

# Actor output Schema

## `report` (type: `string`):

No description

## `dataset` (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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("signalnodes/prediction-markets-intel-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 = {}

# Run the Actor and wait for it to finish
run = client.actor("signalnodes/prediction-markets-intel-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 '{}' |
apify call signalnodes/prediction-markets-intel-mcp --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,signalnodes/prediction-markets-intel-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/AF9PCNT1BZVhpssT3/builds/h6U0KGwtD8OOIkeuK/openapi.json
