# polymarket-copy-trading-bot

Configures a TypeScript bot that monitors target Polymarket wallets and mirrors BUY orders on Polygon mainnet. Useful for automated copy trading via CLOB API.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode · 804 installs · ★ 88
- Author: reason-machines
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/reason-machines/trending-skills/tree/HEAD/skills/polymarket-copy-trading-bot/SKILL.md
- Updated: 2026-10-09
- HTML: https://affpapa.org/en/nevibecode/skills/polymarket-copy-trading-bot

## What it does

This bot tracks a target wallet on Polymarket using REST polling every two seconds or a real-time WebSocket connection. Once the target buys an outcome, the bot sizes your order based on `POSITION_MULTIPLIER` and applies minimum and maximum bounds. It ignores target SELL events by default. Orders submit directly through the CLOB client as FOK, FAK, or LIMIT.

Risk controls enforce maximum notional caps per market and per session. You need Node.js 18 or higher, and the CLOB SDK specifically requires `ethers v5`. Without POL tokens in an EOA wallet, initial token allowance approvals will fail. Authentication works with EOA keys, Poly Proxy, or Poly Polymorphic modes.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add reason-machines/trending-skills --skill polymarket-copy-trading-bot -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/polymarket-copy-trading-bot/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/polymarket-copy-trading-bot/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add reason-machines/trending-skills --skill polymarket-copy-trading-bot -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/polymarket-copy-trading-bot/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add reason-machines/trending-skills --skill polymarket-copy-trading-bot -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/polymarket-copy-trading-bot/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install reason-machines/trending-skills polymarket-copy-trading-bot
```

2. **Manually: put the files in place**
- File: `.github/skills/polymarket-copy-trading-bot/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add reason-machines/trending-skills --skill polymarket-copy-trading-bot -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/reason-machines/trending-skills --path skills/polymarket-copy-trading-bot
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/polymarket-copy-trading-bot/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add reason-machines/trending-skills --skill polymarket-copy-trading-bot -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/reason-machines/trending-skills/tree/HEAD/skills/polymarket-copy-trading-bot/SKILL.md

## When to use it
- mirror BUY trades from target Polymarket wallets in real time
- submit automated CLOB orders as FOK, FAK, or LIMIT
- cap trading exposure per session and individual market
- create and test Polymarket trading API credentials

## Example prompts
- Help me configure the .env file for polymarket-copy-trading-bot with EOA authentication
- Run npm run generate-api-creds to set up Polymarket trading credentials
- Adjust position sizing and session risk limits in the trading config

## Similar
- [churn-prevention](https://affpapa.org/en/nevibecode/skills/coreyhaines31-churn-prevention.md) — skill · 121600 installs
- [revops](https://affpapa.org/en/nevibecode/skills/revops.md) — skill · 114000 installs
- [ads](https://affpapa.org/en/nevibecode/skills/ads.md) — skill · 83400 installs
- [pricing](https://affpapa.org/en/nevibecode/skills/pricing.md) — skill · 79900 installs
- [marketing-plan](https://affpapa.org/en/nevibecode/skills/marketing-plan.md) — skill · 68400 installs
- [humanizer](https://affpapa.org/en/nevibecode/skills/blader-humanizer.md) — skill · 10600 installs

From the same set: [reason-machines/trending-skills](https://affpapa.org/en/nevibecode/by/reason-machines/trending-skills.md) — 186 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
