Skip to content
PredictionMarketAPI
Cross-Venue Engineering · Schema Normalization7 min read·Updated 2026-11-26

Polymarket & Kalshi Unified API: Cross-Venue Normalization & Spread Monitoring

Quick Answer (BLUF)

Instead of maintaining two incompatible exchange SDKs, PredictionMarket API aggregates Polymarket Gamma/CLOB and Kalshi Public Trade API v2 behind 4 clean REST routes (/v1/markets/search, /v1/markets/detail, /v1/markets/orderbook, /v1/markets/movers). Binary orderbook equivalence automatically converts Kalshi NO bids at price p into YES asks at (1 - p), enabling apples-to-apples spread_bps and depth comparisons.

Gateway p50 Latency22ms cached (<280ms warm · 1.8s live)
Concurrency & Rate Limit60 – 600 RPM (Dual-Rail Failover)Need 1,000+ RPM? Dedicated Enterprise Key Pool available
Deterministic Unit Price$0.08–$0.15 / 1,000 listings

Instant pm_live_... key in 3s (3,000 Free Credits · $0.30) · $1 = 10,000 Credits · 0 Credits on empty queries · Top up anytime via 0%-fee Multi-Chain Crypto (+5% bonus credits, never-expiring PAYG)

Instant Quickstart · Copy & Run in 30 Seconds

Fetch Normalized Live Orderbook

import requests

book = requests.get(
    "https://api.predictionmarketapi.dev/v1/markets/orderbook",
    params={"ticker": "KXELONMARS-99"},
    headers={"x-api-key": "pm_live_YOUR_API_KEY"},
).json()["data"]
print(book["best_bid"], book["best_ask"], book["spread_bps"])
Want to inspect real live Polymarket & Kalshi JSON before creating an account?Try 3 Free Live Runs in Browser Playground (No Login) →

Key Engineering Takeaways (TL;DR)

  • ✓Eliminates Polymarket stringified JSON arrays (outcomes, outcomePrices, clobTokenIds) and Kalshi multivariate combo noise.
  • ✓Normalizes Kalshi NO-side bids into YES-side asks via binary contract parity (ask = 1 - no_bid).
  • ✓Unified venue filter (?venue=all|polymarket|kalshi) makes cross-venue consensus monitoring trivial.
  • ✓Single credit ledger ($1 = 10,000 Credits) with zero charge on 404 or empty queries.

1. Raw Exchange Incompatibilities vs. PredictionMarket API Unified Schema

Integrating both leading prediction market venues directly forces engineers to reconcile mismatched price units, identifier conventions, and orderbook representations.

Polymarket vs. Kalshi Raw APIs compared with PredictionMarket API normalization
DimensionPolymarket Raw APIsKalshi Trade API v2PredictionMarket API
Metadata + DepthSplit across Gamma & CLOB hostsEvents + nested markets + orderbook1 unified base URL (api.predictionmarketapi.dev)
Outcome PricesEscaped JSON string arraySeparate yes_bid_dollars / no_bid_dollarsTyped floats: yes_probability & no_probability
Orderbook AsksDirect YES asks arrayNO bids only (requires 1 - p transform)Normalized YES bids[] & YES asks[] + spread_bps
Multivariate NoiseMixed closed & low-liq contractsMultivariate cross-category combos firstFiltered canonical single-event contracts

2. Inspecting Cross-Venue Orderbook Depth with GET /v1/markets/orderbook

Pass either a Kalshi ticker (?ticker=KXELONMARS-99), a Polymarket CLOB asset (?token_id=...), or a unified ?market_id=.

Fetch Normalized Live Orderbook

Returns best_bid, best_ask, mid_price, spread_bps, total USD notional depth, and top 25 bid/ask levels.

curl -sS "https://api.predictionmarketapi.dev/v1/markets/orderbook?ticker=KXELONMARS-99" \
  -H "x-api-key: pm_live_YOUR_API_KEY"
Test this exact endpoint right now in your browser (3 free anonymous runs):Run 3 Free Live Queries in Playground →

Interactive Quant Forecasting Underwriting Terminal · GET /v1/markets/search

Verify real-time latency, parcel credit math & JSON schema

10,000 listings/day
2,000 dossiers/day
5,000 records/day
HTTP Calls / Day
2,750
5 Unified Routes
Credit Unit
$1 = 10,000
$9 Indie Pack Ready
Empty / 404 Fee
0 Credits
$0.00 on 0 matches
Estimated Monthly Pipeline Cost (30 Days)
$60.00/ mo on Business ($86.25 on Pro)
Monthly consumption: 1,500,000 Credits (50,000 Credits/day)
PredictionMarket API (Business $0.08/1K records):$60.00 / mo
DIY Exchange Pipelines + Hosting:$10200.00 / mo
Empty ZIP search / unfound property fee:$0.00 (0 Credits)

Frequently Asked Questions

Can I query Polymarket only or Kalshi only?
Yes. Pass ?venue=polymarket or ?venue=kalshi to /v1/markets/search or /v1/markets/movers, or use ?venue=all to interleave both venues.