Live — Monitoring Thousands of Markets

The Prediction Market
Arbitrage Engine

PolyBot autonomously identifies and captures pricing discrepancies across Kalshi and Polymarket — two of the world's largest prediction market platforms — using real-time data ingestion, AI-powered contract matching, and automated execution.

See How It Works Request Demo
700k+
Contracts Tracked
35k+
Price Updates / Min
2
Live Venues
<50ms
Detection Latency
24/7
Autonomous Operation

From raw price feed to
executed trade in milliseconds

Four tightly integrated layers work in unison — ingesting the market, understanding it, finding the edge, and capturing it before the window closes.

📡
Ingest
Kalshi + Polymarket
WebSocket feeds
🧠
Match
AI semantic matching
across venues
Identify
Pricing spread
detection
🎯
Execute
Simultaneous
dual-leg orders
🔒
Risk
Position limits
and guardrails
01 / INGEST
📡

Real-Time Market Ingestion

Persistent WebSocket connections to both venues deliver every bid, ask, and trade event the instant it occurs. A streaming REST backfill keeps the full contract universe current across restarts.

02 / MATCH
🧠

AI Contract Matching

Transformer-based sentence embeddings map every contract into a high-dimensional semantic space. Approximate nearest-neighbour search surfaces candidate pairs, and an LLM validation pass confirms structural equivalence before any trade.

03 / STRATEGY

Cross-Venue Arbitrage

When a confirmed pair shows a persistent spread after fees and slippage, a strategy engine calculates the optimal stake size, expected value, and risk-adjusted return before signalling execution.

04 / EXECUTE
🎯

Simultaneous Execution

Both legs of the arbitrage are submitted concurrently to minimise legging risk. Fill confirmation, position tracking, and automatic sell-down are handled without human intervention.

Built for precision,
designed for scale

Every component was engineered from scratch to handle the specific demands of prediction market structure — binary outcomes, thin liquidity, and event-driven pricing.

🌐

Dual-Venue WebSocket Feeds

Native connectors to Kalshi and Polymarket with automatic reconnect, backpressure handling, and NATS-backed fan-out to all downstream consumers.

🔗

Semantic Contract Matching

bge-large-en-v1.5 embeddings (1024 dimensions) stored in pgvector with an IVFFlat index for sub-millisecond ANN search across the full contract universe.

LLM Validation Pipeline

GPT-4o validates every candidate match for structural equivalence — same event, same resolution criteria, same binary polarity — before a pair is approved.

📊

Category-Aware Routing

Markets are classified by category (politics, sports, economics, world events) with per-category controls for whether to ingest, pair, and trade.

🛡️

Risk Management Layer

Per-pair position limits, maximum portfolio concentration rules, and a kill switch that unwinds all open legs within seconds.

📈

Live Reporting Dashboard

Real-time P&L, open positions, match queue, opportunity log, and execution history — all accessible through a secure web interface.

⚙️

Microservice Architecture

Ingestion, matching, strategy, execution, selling, risk, and reporting each run as isolated services communicating over NATS — independently deployable and horizontally scalable.

🔄

Automated Sell-Down

Positions are tracked to expiry. A dedicated selling service monitors fill status and manages the close-out leg with configurable profit-taking thresholds.

Two venues. One unified view.

PolyBot monitors the two largest regulated prediction market platforms in the United States simultaneously, in real time.

Kalshi
CFTC-regulated event contract exchange. Listed contracts span elections, economics, weather, and more.
API TypeNative REST + WebSocket v2
Feed TypeOrderbook & trades
Update Rate~35,000 ticks / min
RegulationCFTC designated DCM
Polymarket
Blockchain-based prediction market. The highest-volume political and world-events market in existence.
API TypeCLOB REST + WebSocket
Feed TypePrice level & fills
Contract Universe700,000+ tokens tracked
InfrastructurePolygon blockchain + USDC

Production-grade stack,
purpose-built for speed

Low-latency data paths in Go feed into a Python AI layer backed by Postgres + pgvector for vector search and NATS for event streaming.

Go 1.22 Python 3.12 FastAPI NATS 2.10 PostgreSQL 16 pgvector Redis 7 sentence-transformers bge-large-en-v1.5 GPT-4o Docker Compose Next.js 14 WebSocket (native) SOCKS5 Proxy IVFFlat ANN

Interested in partnering,
investing, or learning more?

PolyBot is an active research and trading project. If you are a quant, technologist, or investor curious about the prediction market space, we would love to hear from you.

No spam. Just a conversation.