Copy the best, automate success. Mirror trades from top Polymarket traders with intelligent position sizing and real-time execution.
A copy trading bot for Polymarket that prioritizes transparency, flexibility, and real-time execution. Unlike manual trading or basic scripts, this bot offers complete automation with intelligent position sizing.
| Feature | Description |
|---|---|
| π₯οΈ Web Dashboard | Full-featured web interface for analytics, trading, and configuration |
| π Position Tracking | Accurate tracking of purchases and sells across balance changes |
| β‘ Real-time Execution | Monitors trades every second and executes instantly |
| π Trade Aggregation | Combine multiple small trades into larger executable orders |
| π₯ Multi-Trader Support | Track and copy trades from multiple traders simultaneously |
| π Smart Position Sizing | Automatically scales trades based on your capital vs trader's balance |
| π Tiered Multipliers | Apply different multipliers based on trade size ranges |
| πΎ MongoDB Integration | Persistent storage of all trades and positions |
| π³ Docker Support | Production-ready deployment with Docker Compose |
# Clone and install
git clone <repository-url>
cd polymarket-copy-trading-bot-v1
npm install
# Configure
cp .env.example .env
# Edit .env with your wallet, traders, MongoDB, RPC
# Run
npm run build
npm run web # Web interface at http://localhost:3000
npm start # Or terminal modeThe bot includes a full web dashboard at http://localhost:3000 with three main views:
- P&L and ROI charts for all tracked traders
- Monthly and daily performance trends
- Volume analysis and win rate statistics
- Sortable table with detailed metrics
Example trader: Check performance on Predictfolio
- Your copy trading performance and P&L
- Trade history with market details
- Position tracking across all markets
- Traders Management β Add/remove traders to copy
- Copy Strategy β Configure PERCENTAGE/FIXED/ADAPTIVE mode, multipliers, tiered sizing
- Safety Limits β Set max/min order sizes, position limits, daily volume caps
- Bot Settings β Fetch interval, preview mode, trade aggregation
- Wallet Info β View balances (USDC, MATIC)
- Quick Actions β Health check, stats, close resolved positions, manual sell
All settings are saved to .env file. Restart the bot to apply changes.
- Node.js v18+
- MongoDB (Atlas recommended)
- Polygon wallet with USDC
- POL (MATIC) for gas (~$5-10)
git clone <repository-url>
cd polymarket-copy-trading-bot-v1
npm install
cp .env.example .envEdit .env:
USER_ADDRESSES = '0xTrader1, 0xTrader2'
PROXY_WALLET = 'your_polygon_wallet'
PRIVATE_KEY = 'your_private_key'
MONGO_URI = 'mongodb+srv://...'
RPC_URL = 'https://polygon-mainnet.infura.io/v3/...'npm run build
npm run web # Web interface
npm start # Terminal modecp .env.docker.example .env.docker
export $(cat .env.docker | grep -v '^#' | xargs)
docker-compose up -dπ Docker Guide β
| Variable | Description | Default |
|---|---|---|
USER_ADDRESSES |
Traders to copy (comma-separated) | β |
PROXY_WALLET |
Your Polygon wallet | β |
PRIVATE_KEY |
Wallet private key | β |
MONGO_URI |
MongoDB connection string | β |
RPC_URL |
Polygon RPC endpoint | β |
COPY_STRATEGY |
PERCENTAGE / FIXED / ADAPTIVE | PERCENTAGE |
COPY_SIZE |
Copy size (% or USD) | 10 |
TRADE_MULTIPLIER |
Position size multiplier | 1.0 |
TIERED_MULTIPLIERS |
Size-based multipliers | β |
MAX_ORDER_SIZE_USD |
Maximum order size | 100 |
MIN_ORDER_SIZE_USD |
Minimum order size | 1 |
PREVIEW_MODE |
Simulate without trading | false |
TRADE_AGGREGATION_ENABLED |
Combine small trades | false |
See .env.example for full configuration options.
npm run web # Start web interface
npm start # Start copy trading bot
npm run analyze # Analyze tracked traders
npm run analyze:my # Analyze your trades
npm run health # System health check
npm run stats # View positions and P&L
npm run close:resolved # Close resolved market positions
npm run redeem # Redeem winning positions
npm run close:stale # Close old inactive positions- Quick Start Guide β Get running in 5 minutes
- Docker Guide β Production deployment
- Multi-Trader Guide β Advanced multi-trader setup
- Tiered Multipliers Guide β Size-based multiplier configuration
- Position Tracking β How position tracking works
- Simulation Guide β Backtest strategies
- Funding Guide β How to fund your wallet
Best Practices:
- Use a dedicated wallet with limited funds
- Start with
PREVIEW_MODE=trueto test - Research traders before copying
- Monitor the bot regularly
- Set appropriate safety limits
- Fork the repository
- Create feature branch (
git checkout -b feature/name) - Commit changes (
git commit -m 'Add feature') - Push to branch (
git push origin feature/name) - Open Pull Request
Educational and research purposes. Users responsible for compliance with local laws and Polymarket ToS.
Disclaimer: Trading involves risk of loss. Developers not responsible for financial losses.


