Skip to content

Trust412/polymarket-copy-trading-bot-v1

Repository files navigation

Polymarket Copy Trading Bot

Introduction

This project is a Polymarket Copy Trading Bot that allows users to automatically copy trades from a selected trader on Polymarket.

Features

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

Installation

  1. Install latest version of Node.js and npm

  2. Navigate to the project directory:

    cd polymarket_copy_trading_bot
  3. Create .env file:

    touch .env
  4. 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'
  5. Install the required dependencies:

    npm install
  6. Build the project:

    npm run build
  7. Run BOT:

    npm run start
  8. ⚠ 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.

Contributing

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

Contact

For updated version or any questions, please contact me at Telegram.

About

The most largest prediction market - Polymarket copy trading bot: Copy master's trades and positions by using this bot

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

No packages published