The ultimate open-source solution for automated copy-trading on Polymarket (Polygon/Matic). Designed for speed, reliability, and profitability. Dominate the prediction markets by mirroring the best traders in real-time.
PolyAlpha isn't just a script; it's a professional-grade trading engine.
- Direct Blockchain Monitoring: Bypasses slow APIs by listening directly to the Polygon blockchain (WebSocket/RPC) for
TransferSingleandTransferBatchevents. - Front-Running Capability: Detects and executes copy trades milliseconds after the target trader moves. Catches the "fresh order" before the crowd.
- Auto Stop-Loss: Automatically dumps positions if they drop below -15% (configurable).
- Smart Take-Profit: Secures gains automatically when prices hit $0.98.
- Panic Sell Mode: Emergency liquidation protocol if market conditions turn adverse.
- Deep Loss Protection: Intelligently ignores "dead" positions (>80% loss) to save gas and focus on winning trades.
- Auto-Claim Winnings: The bot monitors your winning positions and automatically redeems them for USDC via the CTF Exchange contract.
- Gnosis Safe & EOA Support: Works seamlessly with both standard wallets and multi-sig proxy wallets.
- Adaptive Sizing: Choose between
PERCENTAGE(copy % of trader's size),FIXED(flat $ amount), orADAPTIVE(dynamic scaling). - Tiered Multipliers: Apply different multipliers based on trade size (e.g., copy small trades 1x, big trades 0.5x).
- Whale Filtering: Filter out noise by setting minimum/maximum trade sizes.
- Live PnL Tracking: Visualize your daily profits and ROI instantly.
- Active Position Monitor: See exactly what the bot is holding and its current market value.
- Trade History: Full log of every action taken by the bot.
- RPC Rotation Manager: Automatically switches between Alchemy, QuickNode, and Public RPCs to avoid rate limits and downtime.
- Dockerized: Deploys in seconds with a single command.
- TypeScript Core: Type-safe, robust, and maintainable codebase.
For Windows users, we provide simple .bat scripts to manage the bot without typing commands.
- Install/Setup: Double-click
install.bat(Run this first!)- Installs all dependencies and builds the bot engine.
- Start Bot: Double-click
start_bot.bat- Launches the bot and the dashboard.
- Update Bot: Double-click
update.bat- Pulls the latest features from GitHub and updates the system.
-
Clone the repository:
git clone https://github.com/yourusername/polyalpha-copybot.git cd polyalpha-copybot -
Configure environment:
cp .env.example .env # Edit .env with your Private Key and Settings -
Run:
docker compose up --build -d -
Access Dashboard: Open
http://localhost:4405in your browser.- User:
admin - Pass:
admin123(Change in .env!)
- User:
Customize the bot to fit your risk profile.
| Variable | Description | Default |
|---|---|---|
PROXY_WALLET_PK |
Your Polymarket Proxy Private Key | Required |
USER_ADDRESSES |
Comma-separated list of traders to copy | Required |
MAX_POSITION_SIZE_USD |
Max exposure per single market | 1.2 |
COPY_PERCENTAGE |
% of the trader's order to copy | 10.0 |
PANIC_THRESHOLD |
Stop-loss percentage (-0.15 = -15%) | -0.15 |
TAKE_PROFIT_THRESHOLD |
Price to auto-sell at ($0.98) | 0.98 |
This bot is 100% Free and Open Source. If it helps you make profit, please consider donating to support maintenance and new features!
Join our Discord Community: https://discord.gg/y2pKtgTYEE
EVM (ETH/Polygon/BSC):
0x5da643C6d0E72C18fa5D63178Ea116e1309BD9d0
Solana:
YQLE7Heob5oXKy4nyjQCPP46xdFKzbTh7EGJ5jmTA1v
Sui:
0x2d9e999dd90ff4fdf321c01e1d6c3a2785ff4fcae3c67853a694d61aae82a233
Disclaimer: This software is for educational purposes only. Use at your own risk. The developers are not responsible for any financial losses. Cryptocurrency trading involves high risk.