Agent skill · software engineering · aradotso

polymarket-copy-trading-bot

TypeScript bot that monitors a Polymarket wallet and mirrors BUY trades to your own account via the Polymarket CLOB API on Polygon.

Why this skill is useful

Adds a fully functional TypeScript bot with executable scripts for monitoring and mirroring trades on the Polymarket platform, which the AI cannot generate from its existing knowledge.

What it needs

Requires node installed locally. Requires polymarket account access. About 5k tokens when loaded. Last updated 2026-07-09. 70 stars on the source repository.

What this skill does

Polymarket Copy Trading Bot Skill by ara.so — Daily 2026 Skills collection. A TypeScript bot that continuously monitors a target Polymarket wallet, detects trades in real time via REST polling and/or WebSocket, and mirrors BUY orders to your own account using the Polymarket CLOB SDK on Polygon mainnet. --- What It Does Monitors a target wallet via Polymarket Data API (REST polling every ~2s) and optionally WebSocket Mirrors BUY trades only — SELL trades are detected but skipped by default Sizes copies using a configurable POSITIONMULTIPLIER (default 10%) with min/max caps Submits orders as FOK, FAK, or LIMIT via the Polymarket CLOB client Enforces risk limits — per-session and per-market notional caps Supports three auth modes — EOA (SIGTYPE=0), Poly Proxy (SIGTYPE=1), Poly Polymorphic (SIGTYPE=2) --- Installation Requires Node.js v18+. The CLOB SDK requires ethers v5 (already pinned in package.json). --- Configuration Edit .env: --- Key Commands --- Architecture Overview Execution flow: --- Code Examples Starting the bot programmatically TradeMonitor — polling pattern TradeExecutor — placing a copy order RiskManager — checking before execution WebSocket monitor — low-latency subscription --- Authentication Modes EOA (default — SIGTYPE=0) On first run, the bot auto-submits USDC.e/CTF approval transactions. Wallet needs POL for gas. Poly Proxy (SIGTYPE=1) Poly Polymorphic (SIGTYPE=2) --- Generating API Credentials This derives API keys from your wallet signature and writes them to .polymarket-api-creds. Run once before npm start if you want to pre-generate credentials. The bot also auto-generates them on first start in EOA mode. …

How to use it

Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:

@skills aradotso/polymarket-copy-trading-bot

View the source on GitHub

Browse the @skills marketplace