Building 3 Different Polymarket Trading Bots (5m Markets, Copy Trading, Arbitrage Ladder Bot)

Benjamin-Cup

New member
Hi everyone,
I've been working on several automated trading bots for Polymarket, mainly focused on short-duration crypto prediction markets (5m–1d).
Instead of trying to predict markets manually, I experimented with three different automated strategies:
1️⃣ Endcycle Sniper Bot
2️⃣ Copy Trading Bot
3️⃣ Arbitrage / Ladder Market Making Bot
I thought I'd share how they work and see if anyone here is experimenting with similar systems.

Opensource : https://github.com/Gabagool2-2/polymarket-trading-bot-python

1️⃣ Polymarket Endcycle Sniper Bot​

This bot focuses on 5-minute crypto markets like:
  • BTC
  • ETH
  • SOL
  • XRP
The idea is to monitor the orderbook in real time and detect momentum signals near the end of the epoch.

Pipeline​

Market discovery → Orderbook streaming → Price history → Spot vs strike comparison → Signal engine → Execution
The signal engine uses:
• rolling midpoint price tracking
• comparison of first half vs second half averages
• reference price from exchange feeds (Coinbase/Binance)
Example trigger:
Code:
If YES price > 0.95
enter trade with optional risk exit
Strategies implemented:
Buy-Above (momentum)
Enter when price exceeds threshold.
Buy-Opposite (mean reversion)
If one side spikes above ~0.98, buy the opposite side.
The bot can run multiple markets simultaneously.

2️⃣ Polymarket Copy Trading Bot​

This bot automatically copies trades from top Polymarket wallets.
Architecture:
Code:
Trader Activity
      ↓
Trade Monitor
      ↓
MongoDB
      ↓
Trade Executor
      ↓
Follower Wallets
Main features:
• copy trades by % or fixed USD amount
• multi-wallet support
• preview mode (dry-run)
• built-in PnL monitoring
Example config:
Code:
COPY_STRATEGY=percentage
COPY_PERCENTAGE=20
MAX_ORDER_SIZE_USD=50
The idea is to replicate strategies from high-performing traders automatically.

3️⃣ Arbitrage (Ladder Trading) Bot​

This one is more interesting because it does not predict market direction.
Instead, it captures spread by selling both outcomes.
Example:
TokenSell Price
YES0.54
NO0.49
Total received:
Code:
0.54 + 0.49 = 1.03
Cost to create pair:
Code:
1.00
Profit per pair:
Code:
0.03
Typical range:
Code:
pair_sum = 1.03 – 1.10
After market resolution:
• winning token redeems to $1
• losing token becomes $0
The bot redeems automatically.

Bot Cycle​

Code:
IDLE
 ↓
SPLIT collateral
 ↓
PAIR SELL
 ↓
MONITOR
 ↓
REDEEM
 ↓
IDLE

Supported markets​

Works on Polymarket crypto markets:
• BTC
• ETH
• SOL
• XRP
Intervals:
  • 5m
  • 15m
  • 1h
  • 4h
  • 1d

Example Configuration​

Code:
liquidity_maker:
  portfolio_allocation_usdc: 100
  pair_size: 5
  min_pair_sum: 1.03
  price_follow_spread: 0.01

Tech Stack​

Main components:
Python
TypeScript
WebSocket orderbook streaming
Gamma API
Polymarket CLOB API
Builder Relayer

If anyone is interested in seeing the bots running or discussing strategies, feel free to reach out.
Email: [email protected]
Telegram : https://t.me/BenjaminCup
X: https://x.com/benjaminccup
 
Back
Top