Automate Your Prediction Market Trading
Mirror the moves of top Polymarket traders automatically
π Support: Telegram S.E.I
Getting Started β’ Features β’ Configuration
Ever wanted to trade like the pros on Polymarket but don't have the time or expertise? This bot does the heavy lifting for you.
In simple terms: Pick successful traders, and the bot automatically copies their trades to your wallet with proportional sizing based on your capital.
β
Follow Multiple Traders - Track several traders at once for diversification
β
Smart Sizing - Automatically scales positions to match your wallet size
β
Real-Time Execution - Trades execute within seconds of detection
β
Position Tracking - Never lose track of your positions, even after balance changes
β
Trade Aggregation - Combines small trades for better execution
β
MongoDB Storage - Complete trade history and analytics
β
Price Protection - Built-in safeguards against bad fills
πΉ Tiered Multipliers - Apply different multipliers based on trade size
πΉ Configurable Strategies - Percentage, fixed amount, or adaptive sizing
πΉ RTDS Support - Real-time data stream monitoring (Version 2)
πΉ Customizable Settings - Fine-tune every aspect of bot behavior
You'll need:
- β Node.js 18 or higher
- β A Polygon wallet (MetaMask works great)
- β USDC on Polygon for trading capital
- β POL/MATIC for gas fees (~$5-10)
- β MongoDB database (free tier available at MongoDB Atlas)
- β RPC endpoint (free from Infura or Alchemy)
# 1. Clone the repository
git clone https://github.com/0xRustElite1111/polymarket-copy-trading-bot.git
cd polymarket-copy-trading-bot
# 2. Install dependencies
npm install
# 3. Run the setup wizard (creates .env file)
npm run setup
# 4. Build the project
npm run build
# 5. Verify your configuration
npm run health-check
# 6. Start trading!
npm startπ‘ New to this? Check out the Getting Started Guide for detailed instructions.
Create a .env file with these settings:
# Your Wallet
PROXY_WALLET=0xYourWalletAddress
PRIVATE_KEY=your_private_key_without_0x
# Traders to Copy (comma-separated or JSON array)
USER_ADDRESSES=0xTrader1,0xTrader2
# Database
MONGO_URI=mongodb+srv://user:pass@cluster.mongodb.net/db
# Network
RPC_URL=https://polygon-mainnet.infura.io/v3/YOUR_KEY
# Optional: Trading Settings
TRADE_MULTIPLIER=1.0
FETCH_INTERVAL=1- Check the Polymarket Leaderboard
- Look for traders with:
- Positive P&L over time
- Win rate above 55%
- Consistent, active trading
- Verify details on Predictfolio
- Add their wallet addresses to
USER_ADDRESSES
π See the Quick Start Guide for complete configuration details.
Run the bot in a container:
# Copy environment template
cp .env.example .env
# Edit .env with your settings
# Start the bot
docker-compose up -d
# View logs
docker-compose logs -f polymarketπ³ Full Docker guide: DOCKER.md
- Real Money, Real Risk - This bot executes actual trades with your funds
- Start Small - Test with minimal amounts first
- Diversify - Don't put all your eggs in one trader's basket
- Monitor Daily - Check logs regularly to ensure proper operation
- No Guarantees - Past performance β future results
- Use a separate wallet - Don't use your main wallet
- Risk only what you can lose - Never trade with funds you need
- Research traders - Do your due diligence before following
- Set up monitoring - Know what's happening with your trades
- Learn the stop command - Ctrl+C stops the bot immediately
| Guide | Description |
|---|---|
| π Getting Started | Step-by-step beginner tutorial |
| β‘ Quick Start | Fast setup for experienced users |
| π₯ Multi-Trader Setup | Copy multiple traders simultaneously |
| π Position Tracking | How position tracking works |
| π° Funding Guide | Wallet funding instructions |
| Topic | Description |
|---|---|
| π³ Docker Deployment | Container deployment guide |
| π§ͺ Simulation Guide | Backtest trading strategies |
| π¬ Simulation Runner | Advanced backtesting tools |
| Issue | Solution |
|---|---|
| Missing environment variables | Run npm run setup |
| MongoDB connection fails | Check MONGO_URI, whitelist your IP |
| Bot not detecting trades | Verify trader addresses, check recent activity |
| Insufficient balance | Add USDC and ensure POL/MATIC for gas |
| Configuration issues | Run npm run health-check |
For more help, see the Quick Start Guide troubleshooting section.
We welcome contributions! Here's how:
- Fork the repository
- Create a feature branch:
git checkout -b feature/your-feature - Make your changes
- Commit:
git commit -m 'Add awesome feature' - Push:
git push origin feature/your-feature - Open a Pull Request
ISC License - See LICENSE for details.
- Built with Polymarket CLOB Client
- Trader analytics powered by Predictfolio
- Running on Polygon network
This software is provided for educational purposes only. Trading involves risk of financial loss. The developers and contributors are not responsible for any financial losses incurred while using this bot. Use at your own risk and only trade with funds you can afford to lose.
Made with β€οΈ for the Polymarket community
β Star this repo if you find it useful!
