Automated copy trading bot for Polymarket that mirrors trades from top performers with intelligent position sizing and real-time execution.
Try the live Telegram copy trading bot: @ddev05_bot
This is a live Telegram copy trading bot. You can check the TG bot workspace to see it in action.
Interested in the bot? Contact: S.E.I
The Polymarket Copy Trading Bot automatically replicates trades from successful Polymarket traders to your wallet. It monitors trader activity 24/7, calculates proportional position sizes based on your capital, and executes matching orders in real-time.
- Select Traders - Choose top performers from Polymarket leaderboard or Predictfolio
- Monitor Activity - Bot continuously watches for new positions opened by selected traders using Polymarket Data API
- Calculate Size - Automatically scales trades based on your balance vs. trader's balance
- Execute Orders - Places matching orders on Polymarket using your wallet
- Track Performance - Maintains complete trade history in MongoDB
- Node.js v18+
- MongoDB database (MongoDB Atlas free tier works)
- Polygon wallet with USDC and POL/MATIC for gas
- RPC endpoint (Infura or Alchemy free tier)
# Clone repository
git clone https://github.com/vladmeer/polymarket-copy-trading-bot.git
cd polymarket-copy-trading-bot
# Install dependencies
npm install
# Run interactive setup wizard
npm run setup
# Build and start
npm run build
npm run health-check # Verify configuration
npm start # Start tradingπ For detailed setup instructions, see Getting Started Guide
- Multi-Trader Support - Track and copy trades from multiple traders simultaneously
- Smart Position Sizing - Automatically adjusts trade sizes based on your capital
- Tiered Multipliers - Apply different multipliers based on trade size
- Position Tracking - Accurately tracks purchases and sells even after balance changes
- Trade Aggregation - Combines multiple small trades into larger executable orders
- Real-time Execution - Monitors trades every second and executes instantly
- MongoDB Integration - Persistent storage of all trades and positions
- Price Protection - Built-in slippage checks to avoid unfavorable fills
The bot currently uses the Polymarket Data API to monitor trader activity and detect new positions. The monitoring system polls trader positions at configurable intervals (default: 1 second) to ensure timely trade detection and execution.
π Version 2 Available: An advanced version with RTDS (Real-Time Data Stream) monitoring is now available as a private repository. Version 2 features the fastest trade detection method with near-instantaneous trade replication, lower latency, and reduced API load. Copy trading works excellently in the advanced version.
I've also developed a monitoring bot for Polymarket built with Rust - it's a useful tool for tracking and analyzing market activity.
| Variable | Description | Example |
|---|---|---|
USER_ADDRESSES |
Traders to copy (comma-separated) | '0xABC..., 0xDEF...' |
PROXY_WALLET |
Your Polygon wallet address | '0x123...' |
PRIVATE_KEY |
Wallet private key (no 0x prefix) | 'abc123...' |
MONGO_URI |
MongoDB connection string | 'mongodb+srv://...' |
RPC_URL |
Polygon RPC endpoint | 'https://polygon...' |
TRADE_MULTIPLIER |
Position size multiplier (default: 1.0) | 2.0 |
FETCH_INTERVAL |
Check interval in seconds (default: 1) | 1 |
- Visit Polymarket Leaderboard
- Look for traders with positive P&L, win rate >55%, and active trading history
- Verify detailed stats on Predictfolio
- Add wallet addresses to
USER_ADDRESSES
π For complete configuration guide, see Quick Start
Deploy with Docker Compose for a production-ready setup:
# Configure and start
cp .env.example .env
docker-compose up -d
# View logs
docker-compose logs -f polymarketπ Complete Docker Guide β
- Use at your own risk - This bot executes real trades with real money
- Start small - Test with minimal funds before scaling up
- Diversify - Don't copy just one trader; track multiple strategies
- Monitor regularly - Check bot logs daily to ensure proper execution
- No guarantees - Past performance doesn't guarantee future results
- Use a dedicated wallet separate from your main funds
- Only allocate capital you can afford to lose
- Research traders thoroughly before copying
- Set up monitoring and alerts
- Know how to stop the bot quickly (Ctrl+C)
- π Getting Started Guide - Complete beginner's guide
- β‘ Quick Start - Fast setup for experienced users
- π³ Docker Deployment - Container deployment
- π₯ Multi-Trader Guide - Copy multiple traders
- π Position Tracking - How tracking works
- π° Funding Guide - Wallet funding instructions
- π§ͺ Simulation Guide - Backtest strategies
- π¬ Simulation Runner - Advanced backtesting
Missing environment variables β Run npm run setup to create .env file
MongoDB connection failed β Verify MONGO_URI, whitelist IP in MongoDB Atlas
Bot not detecting trades β Verify trader addresses and check recent activity
Insufficient balance β Add USDC to wallet and ensure POL/MATIC for gas fees
Run health check: npm run health-check
π For detailed troubleshooting, see Quick Start Guide
Contributions are welcome! Please:
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
ISC License - See LICENSE file for details.
- Built on Polymarket CLOB Client
- Uses Predictfolio for trader analytics
- Powered by Polygon network
Disclaimer: This software is for educational purposes only. Trading involves risk of loss. The developers are not responsible for any financial losses incurred while using this bot.
