All Projects

Polypig

Autonomous Prediction Market Intelligence

Overview

Polypig is an autonomous Polymarket trading bot built for real-time prediction market intelligence. It ingests live signals from multiple sources, fuses them through a unified decision engine, and executes trades with strict risk controls.

The system runs as a containerized Python service with a FastAPI backend, WebSocket feeds for live market data, and a React dashboard for monitoring positions, PnL, and signal health. Every component is designed for low-latency decision making and transparent, auditable execution.

Features

Real-Time Signal Processing

Four independent signal processors ingest live market data and social feeds

Paper / Live Execution

Seamlessly toggle between paper trading and live market execution

Risk-Managed Sizing

Position sizing engine with portfolio-level exposure limits and stop rules

Web Dashboard

Real-time PnL, open positions, signal history, and system health at a glance

Architecture

  • Signal Layer: Four independent processors ingest on-chain data, social sentiment, news feeds, and market microstructure
  • FusionEngine: Correlates and scores signals, producing a unified confidence-weighted recommendation
  • Execution Engine: Routes orders through Polymarket with paper/live toggle, slippage checks, and retry logic
  • Risk Manager: Enforces per-market and portfolio-level exposure limits, stop rules, and drawdown guards
  • Dashboard: Next.js frontend with WebSocket streams for live PnL, open positions, and system health

Tech Stack

PythonFastAPIWebSocketDockerPostgreSQLReactNext.jsPolymarket APIRedisPandas

Status

Active Development|Paper Trading Live