Poly-Maker Documentation

The official documentation for the Poly-Maker, a market-making bot for Polymarket.

View the Project on GitHub LeapTech-Lab/poly-maker

English 简体中文

Poly-Maker: A Market Making Bot for Polymarket

Disclaimer: This is not financial advice. Trading cryptocurrencies and participating in prediction markets involves significant risk. This is high-risk software that trades real money. Market making can lead to losses due to sudden price movements, one-sided fills, market resolution, API/network failures, or changes in reward structures. Always start with DRY_RUN=true and use very small amounts of capital for live testing.


This repository contains a market-making bot for the Polymarket prediction market platform.


Read the Architecture Guide →

Features (Lightweight Bot)

Installation

  1. Clone the repository:
    git clone https://github.com/your-username/poly-maker.git
    cd poly-maker
    
  2. Install Python dependencies using uv:
    uv sync
    
  3. (Optional) Install Node.js dependencies for the legacy position merger:
    cd poly_merger
    npm install
    cd ..
    

Configuration

  1. Create your environment file:
    cp .env.example .env
    
  2. Edit .env: Open the .env file and fill in your details. Refer to ENV_CONFIG_GUIDE.md for a detailed explanation of every variable.

Usage

1. Find a Market

2. Measure Latency

Run the latency probe to find the value for PREDICTION_LATENCY_MS in your .env.

uv run python latency_probe.py --samples 20

3. Check Authentication

If you encounter invalid signature errors, this script can help diagnose issues.

uv run python check_auth.py

4. Run the Bot

ALWAYS start with a dry run.

Deployment on a VPS

For continuous operation, it’s recommended to run the bot on a server. A systemd service file is provided in service/poly-maker.service for convenience.

License

This project is licensed under the terms of the LICENSE file.