Prediction market APIs and AI agents (2026)

9 APIs, frameworks and MCP servers for trading Polymarket, Kalshi, Limitless and Manifold with code or AI agents, with region rules up front. Checked against official sources 2026-11-30.

Markets & infrastructure

Who it's for: Developers and traders automating event contracts on Polymarket, Kalshi and similar venues, who must check regional rules.

Every fact sourced · last checked 2026-11-30 · how we verify

⚠ Risk note. Prediction markets can go to zero on a single outcome, liquidity can vanish near resolution, and rules on who may trade differ sharply by country. Polymarket's international site is close-only for US persons (US residents use the separate Polymarket US); Kalshi is a US exchange with limited non-US access. Using a VPN to get around a geoblock breaks the venues' terms and can get funds frozen. Not financial advice.
ToolLive / paperSafety and accessPricingRegionsVisit
50Kalshi APISafety 50%
live; separate demo environment with mock funds (demo.kalshi.co)official REST and WebSocket Trade API with RSA-PSS or Ed25519 signed keys; demo credentials are separate from production; since Oct 15, registered MCP clients can be granted read access to your portfolio (balances, positions, orders, fills) through a read::mcp_portfolio OAuth grant that cannot execute orders or change funding; since Oct 29, direct members can use subaccount-restricted API keys to move funds between exchange indices within that subaccount (not a withdrawal); Kalshi also runs its own hosted MCP connector (https://api.elections.kalshi.com/mcp; public market tools need no account, portfolio and price-alert tools sign in by OAuth with read::mcp_portfolio, read::mcp_alerts and write::mcp_alerts): it does not place or cancel orders, transfer funds or save trade drafts, its links send you to Kalshi to submit an order yourself, and its only write action is creating and deleting price alerts; no official trading MCP (community MCPs exist)API access free; exchange trading fees apply per contractUS: yes (CFTC-regulated exchange); some contracts may be restricted in some states. Non-US access is limited: check Kalshi's eligibility page for your country.Visit Kalshi API
30Polymarket APISafety 30%
live only (no testnet); CLOB V2 since Apr 28 2026wallet-signed orders on the international CLOB (V2 SDKs: py-clob-client-v2, clob-client-v2); separate Polymarket US API with Ed25519 keys and an order preview endpoint; Polymarket's docs now lead with unified SDKs (@polymarket/client for TypeScript; pip install polymarket-client, imported as polymarket, for Python) and call the V2 CLOB clients the previous SDKs; Polymarket's migration guide now says Data API v1 retires on November 2, 2026, including GET /v1/accounting/snapshot, which has no v2 counterpart for its ZIP archive of CSVs: reads use the /v2 routes (cursor pagination, snake_case fields); Polymarket Protocol V2 started trading on selected markets on Nov 23, 2026 (phase 1; phases 2 and 3 not dated): V2 orders are signed for a new exchange contract (signing domain version 3) with new token-approval targets, and integrations have to handle both V2 and V1 marketsAPI access free; trading fees vary by marketInternational polymarket.com: US persons cannot open positions (US is close-only) and other jurisdictions are blocked. US residents: use Polymarket US (separate CFTC-regulated app, ID-verified, separate API).Visit Polymarket API Affiliate link where available · disclosure
45Polymarket AgentsSafety 45% (partial)
live (trades via the Polymarket API)official open-source framework (MIT) with LangChain/Chroma RAG, news sourcing and a CLI that can execute trades; repository archived on May 11, 2026 (read-only; last code change Nov 2024), predates CLOB V2free, open source (archived)Polymarket's terms bar US persons and other restricted jurisdictions from trading through the international API, including via agents.Visit Polymarket Agents
67Polymarket US APISafety 67% (partial)
liveofficial Python and TypeScript SDKs; orders support preview, cancel and cancel-all; safe order retries use the Idempotency-Key header (docs corrected Nov 12, 2026: the idempotencyKey name given on Nov 10 is ignored, so retries sent with it were not protected from duplicate orders); prices with extra decimals are rejected, not rounded; keys need an ID-verified Polymarket US accountAPI access free; trading fees per Polymarket US schedule; from Oct 19, 2026 (1 PM ET) maker and taker rebates are tiered by prior-month volume, and makers under $10M or takers under $250K a month get no rebate (taker fees unchanged); from Nov 11, 2026 (1 PM ET) the combo taker fee curve's (1 - p)^4 coefficient goes back from 0.085 to 0.06 and its (1 - p) term uses your taker coefficient; combo maker fees start Nov 14, 2026 (0.03 x C x p x (1 - p)); a new account's first 7 days use the 0.0695 taker coefficientUS residents only, via the Polymarket US iOS app with identity verification.Visit Polymarket US API
100Limitless ExchangeSafety 100%
live only; no sandbox or testnet (docs say rehearse with minimum-size live orders)official trading MCP at api.limitless.exchange/mcp with a human approving each order on limitless.exchange (place_orders returns a link to review and submit; proposals expire after 10 minutes), while cancel_order and cancel_all_orders execute directly; open-source agents-starter repo runs dry-run by defaultAPI access free; trading fees per marketCheck Limitless's terms for restricted jurisdictions before trading.Visit Limitless Exchange
play money (mana); no real-money riskbots and automated trading explicitly permitted; API keys per user; good for testing agent logic without real money; perpetual futures (beta, mana only) carry leverage and can be liquidated, and API-key trades pay the market's API taker fee when it is higherfreeAvailable globally (play money).Visit Manifold Markets API
demo and live; trading off by defaultcommunity MIT MCP: two-step prepare/confirm order flow, safety caps that can only be tightened at runtime, demo mode, client-side rate limiting; an Oct 17 fix re-checks the daily and per-order caps and the cash reserve at confirm time (before it, several prepared orders could together exceed the daily cap), and runtime limit changes are tighten-only unless MCP_ALLOW_RUNTIME_LIMIT_LOOSENING=1 is set; the fix is on main, and the latest tagged and PyPI release (v0.3.4, Sep 20) predates itfree, open sourceSame eligibility as Kalshi.Visit Kalshi MCP Server (community)
data only (no execution)read-only unified API and MCP across venues with a consensus probability; MIT-licensed MCPfree during beta (1,000 req/day); paid tiers announcedData viewable globally.Visit Prediction.Markets API
44DeskBot for KalshiSafety 44% (partial)
live on your own Kalshi account (and optionally Polymarket); starts in paper mode with simulated trading until you arm each marketclosed-source desktop app for Mac and Windows that runs on your computer with your own Kalshi API key and trades 15-minute contracts automatically once a market is switched to live, with no per-trade approval; controls are a master switch, a live switch per market, stake, daily budget and open-position caps, and a daily loss limit that pauses new live entries ($15 by default); the main lane buys favorites priced around 90-95¢, so one loss can cost as much as a dozen or more wins; a copy mode mirrors a lead account's fills into other accounts; DeskBot never holds your money (funds stay in your Kalshi account); its 'Official coin' page says no DeskBot coin has launched yet and that a copycat 'Desk Bot Kalshi' coin is fake$19.99/month (first month $1) or $155/year (DeskBot Yearly Membership); card required, renews until canceled, no refunds once access is delivered; needs a funded Kalshi account (Kalshi trading fees apply)Check vendor termsVisit DeskBot for Kalshi

Where to start

Agent safety basics are on Risk and safety tools and Broker MCP safety controls.

Kalshi API

Prediction marketsofficial
50
Pricing
API access free
Best for
Prediction markets · prediction markets, perpetual futures (Margin/perps markets)
Money access
live
Safety 50%✓ Verified 2026-11-27Details →

Polymarket API

Prediction marketsofficial
30
Pricing
API access free
Best for
Prediction markets · prediction markets, perpetual futures via the separate Perps API
Money access
live only (no testnet)
Safety 30%✓ Verified 2026-11-27Details →

Polymarket Agents

Prediction marketsofficial
45
Pricing
free, open source (archived)
Best for
Prediction markets · prediction markets
Money access
live (trades via the Polymarket API)
⚠ Archived by Polymarket on GitHub (read-only). The last code change was Nov 5, 2024, before Polymarket's switch to CLOB V2 on Apr 28, 2026, so treat it as reference code, not a ready-to-trade agent.
Safety 45% (partial)✓ Verified 2026-11-23Details →

Polymarket US API

Prediction marketsofficial
67
Pricing
API access free
Best for
Prediction markets · prediction markets (US)
Money access
live
Safety 67% (partial)✓ Verified 2026-11-23Details →

Limitless Exchange

Prediction marketsofficial
100
Pricing
API access free
Best for
Prediction markets · prediction markets (crypto, on Base)
Money access
live only
Safety 100%✓ Verified 2026-11-23Details →

Manifold Markets API

Prediction marketsofficial
90
Pricing
free
Best for
Prediction markets · play-money prediction markets
Money access
play money (mana)
Safety 90%✓ Verified 2026-11-23Details →

Kalshi MCP Server (community)

Prediction marketscommunity
85
Pricing
free, open source
Best for
Prediction markets · prediction markets
Money access
demo and live
Safety 85%✓ Verified 2026-11-23Details →

Prediction.Markets API

Prediction marketscommunity
100
Pricing
free during beta (1,000 req/day)
Best for
Prediction markets · prediction markets (Kalshi, Polymarket, Limitless)
Money access
data only (no execution)
Safety 100%✓ Verified 2026-11-23Details →

DeskBot for Kalshi

Prediction marketsofficial
44
Pricing
$19.99/month (first month $1) or $155/year (DeskBot Yearly Membership)
Best for
Prediction markets · Kalshi 15-minute up/down markets: 9 crypto (BTC, ETH, XRP, SOL, DOGE, HYPE, ZEC, NEAR, BNB), 5 metals, oil, natural gas and 3 currency pairs, Kalshi multi-leg combos and parlays, Polymarket 15-minute crypto Up/Down markets (on your own Polymarket account)
Money access
live on your own Kalshi account (and optionally Polymarket)
Safety 44% (partial)✓ Verified 2026-11-23Details →

Following a Polymarket wallet? For 11 of the 47 biggest 30-day winners we could check, the wallet's own profit record shows under half of what the leaderboard says: Polymarket top traders, checked.

FAQ

Can US residents trade Polymarket with an API or agent?

Not on the international polymarket.com: the US is close-only there, and Polymarket's own Agents repo says US persons may not trade through the API or agents. US residents can use Polymarket US, a separate CFTC-regulated app with its own ID-verified accounts and API.

Is Kalshi available outside the US?

Kalshi is a CFTC-regulated US exchange. Non-US access is limited and changes; check Kalshi's eligibility page before building on it.

Which prediction markets have a sandbox?

Kalshi has a full demo environment with mock funds. Manifold uses play money, so it is a safe place to test agent logic. Polymarket and Limitless have no testnet; their docs suggest minimum-size live orders.

Is there an official prediction market MCP?

Limitless runs an official trading MCP at api.limitless.exchange/mcp. Kalshi and Polymarket have community MCP servers only, as of October 2026.

More in Markets & infrastructure

Other paths: Trade with a bot · Build an AI agent · Learn · Search all tools

Get the weekly AI trading bot stats

Who won, who lost and who got drained: verified results for AI agents, vaults and apps, new incidents and claims we checked. One email a week, unsubscribe anytime.

No spam. Unsubscribe anytime. Privacy

Disclosure: some links on this page are affiliate links; we may earn a commission at no cost to you. It never affects rankings or facts. Read our disclosure

Building an agent on this? When it trades a public account on Hyperliquid or Polymarket, get its track record verified: we check it from public data on the spot, then list it with a signed record. See the verified AI trading leaderboard, and how the agents already out there are doing in the AI trading bot statistics.