A Polymarket copy bot for copy trading on Polymarket prediction markets. Watches a target wallet and automatically copies BUY and SELL trades with configurable sizing and risk caps.
Keywords: polymarket trading bot, polymarket copy bot, polymarket copy trading bot, prediction market bot, automated trading
BUY and optionally SELL trades (set COPY_SELLS=true to copy sells; requires holding position from copied BUYs).USDC.e collateral and POL (MATIC) for gasPolymarket restricts access in some regions. If you are in a restricted region, the bot will not work — you will see connection or Cloudflare/geo errors. In that case, route traffic through a proxy or VPN (many free proxy services are available). Run the bot from an environment where Polymarket is accessible.
PRIVATE_KEY at startup.npm install
cp .env.example .env
.env:TARGET_WALLETPRIVATE_KEYRPC_URLnpm run generate-api-creds
npm start
Dev/watch mode:
npm run dev
Build + run compiled output:
npm run build
npm run start:prod
TARGET_WALLET: wallet to followPRIVATE_KEY: your EOA private key used for signing/approvals/tradesRPC_URL: Polygon JSON-RPC endpointUSE_WEBSOCKET: true|falseUSE_USER_CHANNEL: true|false (true requires valid API creds for WS auth)POSITION_MULTIPLIER: copied size multiplier (e.g. 0.1)MAX_TRADE_SIZE, MIN_TRADE_SIZESLIPPAGE_TOLERANCE: e.g. 0.02ORDER_TYPE: LIMIT, FOK, or FAKCOPY_SELLS: true|false — copy SELL trades in addition to BUY (default: true)EXIT_AFTER_FIRST_SELL_COPY: true|false — exit successfully after first SELL is copied (default: false)MAX_SESSION_NOTIONAL, MAX_PER_MARKET_NOTIONAL: 0 disables capsSee .env.example for the full list.
PRIVATE_KEY at startup..env.Join the future of prediction markets with Polymarket Smart Wallet.