Skip to content

polymarket bot polymarket bot polymarket bot polymarket bot polymarket bot polymarket bot polymarket bot polymarket bot polymarket bot polymarket bot polymarket bot polymarket bot polymarket trading bot polymarket trading bot polymarket trading bot polymarket trading bot polymarket trading bot polymarket copy trading bot polymarket copy trading bot

License

Notifications You must be signed in to change notification settings

0xseidev/polymarket-copy-trading-bot

Repository files navigation

πŸ€– Polymarket Copy Trading Bot

Automate Your Prediction Market Trading

Mirror the moves of top Polymarket traders automatically

License: ISC Node.js Version

πŸ“ž Support: Telegram S.E.I

Getting Started β€’ Features β€’ Configuration


🎯 What Is This?

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.

screenshot


✨ What You Get

Core Capabilities

βœ… 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

Advanced Features

πŸ”Ή 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


πŸš€ Getting Started

Before You Begin

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)

Installation Steps

# 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.


βš™οΈ Configure

Required Environment Variables

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

Finding Good Traders

  1. Check the Polymarket Leaderboard
  2. Look for traders with:
    • Positive P&L over time
    • Win rate above 55%
    • Consistent, active trading
  3. Verify details on Predictfolio
  4. Add their wallet addresses to USER_ADDRESSES

πŸ“š See the Quick Start Guide for complete configuration details.


🐳 Docker Setup

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


πŸ›‘οΈ Safety First

⚠️ Important Warnings

  • 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

Best Practices

  1. Use a separate wallet - Don't use your main wallet
  2. Risk only what you can lose - Never trade with funds you need
  3. Research traders - Do your due diligence before following
  4. Set up monitoring - Know what's happening with your trades
  5. Learn the stop command - Ctrl+C stops the bot immediately

πŸ“š Documentation

Guides

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

Advanced Topics

Topic Description
🐳 Docker Deployment Container deployment guide
πŸ§ͺ Simulation Guide Backtest trading strategies
πŸ”¬ Simulation Runner Advanced backtesting tools

πŸ”§ Troubleshooting

Quick Fixes

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.


🀝 Contributing

We welcome contributions! Here's how:

  1. Fork the repository
  2. Create a feature branch: git checkout -b feature/your-feature
  3. Make your changes
  4. Commit: git commit -m 'Add awesome feature'
  5. Push: git push origin feature/your-feature
  6. Open a Pull Request

πŸ“„ License

ISC License - See LICENSE for details.


πŸ™ Acknowledgments


βš–οΈ Disclaimer

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!

About

polymarket bot polymarket bot polymarket bot polymarket bot polymarket bot polymarket bot polymarket bot polymarket bot polymarket bot polymarket bot polymarket bot polymarket bot polymarket trading bot polymarket trading bot polymarket trading bot polymarket trading bot polymarket trading bot polymarket copy trading bot polymarket copy trading bot

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages