This project is a Polymarket Copy Trading Bot that allows users to automatically copy trades from a selected trader on Polymarket.
- Automated Trading: Automatically copy trades from a selected trader.
- Real-time Monitoring: Continuously monitor the selected trader's activity.
- Customizable Settings: Configure trading parameters and risk management.
-
Install latest version of Node.js and npm
-
Navigate to the project directory:
cd polymarket_copy_trading_bot -
Create
.envfile:touch .env
-
Configure env variables:
USER_ADDRESS = 'Selected account wallet address to copy' PROXY_WALLET = 'Your Polymarket account address' PRIVATE_KEY = 'My wallet private key' CLOB_HTTP_URL = 'https://clob.polymarket.com/' CLOB_WS_URL = 'wss://ws-subscriptions-clob.polymarket.com/ws' FETCH_INTERVAL = 1 // default is 1 second TOO_OLD_TIMESTAMP = 1 // default is 1 hour RETRY_LIMIT = 3 // default is 3 times MONGO_URI = 'mongodb+srv://polymarket_copytrading_bot:V5ufvi9ra1dsOA9M@cluster0.j1flc.mongodb.net/polymarket_copytrading' RPC_URL = 'https://polygon-mainnet.infura.io/v3/90ee27dc8b934739ba9a55a075229744' USDC_CONTRACT_ADDRESS = '0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174'
-
Install the required dependencies:
npm install
-
Build the project:
npm run build
-
Run BOT:
npm run start
-
⚠ Choose reasonable location for the bot(Many users faced this problem, read this carefully before setting up the bot):
For users facing IP address-related access issues with Polymarket due to geographic restrictions, I recommend using tradingvps.io with the Netherlands location. This VPS service offers ultra-low latency and is physically close to Polymarket’s servers, ensuring faster response times and a smoother trading experience. It is specifically optimized for traders and easy to set up, making it an excellent choice for both beginners and experienced users looking to avoid IP-based blocks.
Contributions are welcome! Please open an issue or submit a pull request. And if you are interested in this project, please consider giving it a star✨.
For updated version or any questions, please contact me at Telegram.