Skip to content

PolyBot

Open-source automated trading system for prediction markets

Trade smarter on Polymarket, Kalshi, and other prediction markets with 10 battle-tested strategies, real-time analytics, and a plugin system for your own AI models.

Quick Install

pip install polybot-trader
polybot db init
polybot start

Access the dashboard at http://localhost:8000/ui

Key Features

Who is PolyBot For?

Traders

  • Test strategies in shadow mode before risking real capital
  • Configure risk controls: position limits, daily loss limits, exposure caps
  • Track real-time P&L across all positions
  • Copy successful traders automatically

Developers

  • Extend with custom strategies using clean abstractions
  • Build AI plugins for probability prediction
  • Add new venues with the BaseVenue interface
  • Type-safe codebase with full type hints and Pydantic models

Quants

  • Access statistical arbitrage between correlated markets
  • Implement custom models via the plugin system
  • DuckDB analytics for performance analysis
  • Export data for backtesting

Getting Started

  1. Install PolyBot - pip, Docker, or from source
  2. Configure credentials - Set up your wallet
  3. Run in shadow mode - Test without real trades
  4. Enable strategies - Start trading

Architecture Overview

                    Vue.js Dashboard
                          |
                          v
        +-----------------------------------+
        |    FastAPI + WebSocket Gateway    |
        +-----------------------------------+
               |         |         |
               v         v         v
        +---------+ +---------+ +---------+
        | Scanner | |Executor | |Analytics|
        +---------+ +---------+ +---------+
                         |
                         v
        +-----------------------------------+
        |        Strategy Services          |
        |   (10 strategies, AI plugins)     |
        +-----------------------------------+

Full architecture documentation

Why Choose PolyBot?

Feature PolyBot Typical Alternatives
Strategies 10 built-in 1-3
Multi-venue Polymarket, Kalshi, Binance Single venue
AI integration Plugin system for any model Hardcoded or none
Dashboard Vue.js real-time UI Terminal or none
License MIT Often GPL or closed

Detailed comparison

Community

License

PolyBot is open-source software licensed under the MIT License.

Disclaimer

This software is for educational and research purposes. Trading on prediction markets involves financial risk. Use at your own discretion. Not financial advice.