Polymarket Copytrading
Mirror positions from top Polymarket traders. Polling mode (free) for portfolio-style copying, Reactor mode (Pro) for event-driven real-time mirroring via Si...
Mirror positions from top Polymarket traders. Polling mode (free) for portfolio-style copying, Reactor mode (Pro) for event-driven real-time mirroring via Si...
Real data. Real impact.
Growing
Developers
Per week
Open source
Skills give you superpowers. Install in 30 seconds.
Mirror positions from successful Polymarket traders using the Simmer SDK. Two modes share the same skill, use whichever fits your strategy:
| Polling mode (free) | Reactor mode (Pro) | |
|---|---|---|
| Entrypoint | | |
| Cadence | Batch scan, runs on cron or manual | Polls every 2s for pre-resolved whale signals |
| Latency | Minutes (Polymarket Data API polling) | Seconds (Simmer detects events in real-time, pre-confirmation) |
| Strategy | Size-weighted aggregation across wallets, conviction tiering, rebalance to target allocations, drift/stale filters | Event-by-event mirror with fixed sizing, programmatic filters |
| Best for | Portfolio-aware, multi-whale, periodic scans | Real-time reaction to specific whales as they trade |
| Requires | | + Simmer Pro plan |
This is a template. The default logic mirrors whale wallets — remix it with your own wallet selection, sizing rules, filters, or cap logic. The skill handles all the plumbing (signal polling, trade execution, dedup, signing). Your agent provides the alpha.
When user asks to install or configure this skill:
Install the Simmer SDK (version 0.9.19 or newer — reactor mode requires it)
pip install -U 'simmer-sdk>=0.9.19'
Ask for Simmer API key
SIMMER_API_KEYAsk for wallet private key (required for live trading on Polymarket)
WALLET_PRIVATE_KEYAsk about settings (or confirm defaults)
Use this skill when the user wants to:
# Check account balance and positions python scripts/status.pyDetailed position list
python scripts/status.py --positions
API Reference:
https://api.simmer.marketsAuthorization: Bearer $SIMMER_API_KEYGET /api/sdk/portfolioGET /api/sdk/positionsUser provides wallet(s) directly in chat:
User: "Copytrade this wallet: 0x1234...abcd" User: "What positions does 0x5678...efgh have?" User: "Follow these whales: 0xaaa..., 0xbbb..."
→ Run with
--wallets flag:
python copytrading_trader.py --wallets 0x1234...abcd python copytrading_trader.py --wallets 0xaaa...,0xbbb... --dry-run
This is the simplest way - no setup needed, just pass wallets directly.
For automated recurring scans, wallets can be saved in environment:
| Setting | Environment Variable | Default |
|---|---|---|
| Target wallets | | (none) |
| Top N positions | | auto |
| Max per position | | 50 |
| Max trades/run | | 10 |
| Order type | | GTC |
Top N auto-calculation (when not specified):
Polymarket Constraints:
⚠️ Start Conservative: Begin with small amounts (
) and--max-usd 5-10to understand how the skill behaves before scaling up.--dry-run
By default, only buys execute. Pass
to also sell positions the whales have exited, or--rebalanceto sell only on whale exits.--whale-exits
Each cycle the script:
Requires Simmer Pro. The reactor stream is gated by
. Upgrade at simmer.markets/dashboard if you see a 402 error on connect.users.is_pro
Reactor mode polls Simmer for pre-resolved whale trade signals derived from real-time on-chain settlement data. Simmer detects whale trades as they happen — even before on-chain confirmation — and delivers trade-ready signals to your skill. Unlike polling mode (which batches and rebalances), reactor reacts to each whale trade individually.
mirror_fraction × whale size, capped at max_size. No conviction tiering, no rebalance math.min_size are stored in Simmer's reactor config and applied on the server before events reach your skill — you only see matches.--once for cron-style single poll and exit.Reactor uses Simmer-side config (not env vars), so dashboard edits take effect in seconds without restarting the skill.
# Set your watchlist via the Simmer API curl -X PATCH "https://api.simmer.markets/api/sdk/reactor/config" \ -H "Authorization: Bearer $SIMMER_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "wallets": ["0x1234...abcd", "0x5678...efgh"], "min_size": 1000, "max_size": 50, "mirror_fraction": 0.01, "daily_cap": 100, "venue": "sim", "enabled": true }'
Fields:
| Field | Meaning |
|---|---|
| Whale addresses to follow (EVM format, lowercased server-side) |
| Minimum whale trade size to consider (shares) |
| Cap on your mirror trade size (shares) |
| Fraction of whale size to mirror (e.g. 0.01 = 1%) |
| Max total spend per day in venue-native units |
| / / |
| Pause reactor by setting — server will stop delivering events |
| Fraction added above whale's fill price for your buy order. Default 0.02 (2%). Prevents order failures on thin books after whale clears liquidity. Range 0–0.2. |
Recommended: cron with
— polls for pending signals once and exits. Run on a 1-minute cron for reliable, persistent coverage:--once
# Linux crontab */1 * * * * cd /path/to/skill && python copytrading_trader.py --reactor --once --liveOpenClaw cron
openclaw cron add --name "reactor-poll" --cron "*/1 * * * *" --tz UTC --session isolated
--message "Run: cd /path/to/skill && python3 copytrading_trader.py --reactor --once"One-off check
python copytrading_trader.py --reactor --once
Why cron? Reactor signals expire after a short window. A cron ensures your agent checks for signals reliably, even after reboots or process crashes. If your polling process stops, signals expire silently — cron prevents this.
Advanced: loop mode — polls every 2s continuously. Lower latency but requires a process manager (launchd, systemd, supervisor) to auto-restart on crash. Not recommended for agent runtimes with exec timeouts.
# With a process manager (launchd, systemd, supervisor) python copytrading_trader.py --reactorPlain shell (will not auto-restart)
nohup python copytrading_trader.py --reactor > reactor.log 2>&1 &
Set
REACTOR_POLL_INTERVAL_SECONDS to tune the polling cadence (default 2s).
Note: Reactor mode always executes live trades (venue is set in your reactor config). Use
in your config to paper trade.venue: "sim"
GET /api/sdk/reactor/pending for pre-resolved whale signalstaker_size × mirror_fraction, capped by max_size, floored at 5-share Polymarket minimum)skipped_filter reaction, no tradeSimmerClient.trade() with skill_slug="polymarket-copytrading" and source="sdk:copytrading:reactor"/api/sdk/reactor/pending/{tx_hash} and POST a mirrored reactionfailed reaction, leave signal (60s TTL clears it)[reactor] price_buffer=0.020 (from config) [reactor] --once: single poll against /api/sdk/reactor/pending [reactor] 0 pending signals
When a whale trade matches your watchlist:
[reactor] price_buffer=0.020 (from config) [reactor] loop mode: polling /api/sdk/reactor/pending every 2.0s [reactor] 1 pending signal(s) [reactor] 0xbaa2bc... BUY 7067 shares on "Will Iran strike Iraq by April 30, 2026?" [reactor] mirror: 70.67 shares @ $0.673 (buffer +2.0%) → GTC order placed [reactor] ✅ mirrored — trade_id=a23dc52a, signal deleted
Reactor mode runs in your harness, so
SimmerClient.trade() signs locally with your existing wallet setup (managed, or external via WALLET_PRIVATE_KEY). No server-side signing, no OWS dependency, no new keys to manage.
Copytrading supports $SIM mode — mirror whale positions using simulated money on Simmer's LMSR markets. No wallet or USDC required.
# Paper trade with $SIM (explicit) python copytrading_trader.py --venue sim --wallets 0x123... --liveAuto-detect: if your account has no linked wallet, $SIM is used automatically
python copytrading_trader.py --wallets 0x123... --live
In $SIM mode:
sdk:copytrading)Run a scan (dry run by default — no trades):
python copytrading_trader.py
Execute real trades:
python copytrading_trader.py --live
Check positions only:
python copytrading_trader.py --positions
View current config:
python copytrading_trader.py --config
Override wallets for one run:
python copytrading_trader.py --wallets 0x123...,0x456...
Full rebalance mode (includes sells):
python copytrading_trader.py --rebalance
Sell when whales exit positions:
python copytrading_trader.py --whale-exits
After each run, message the user with:
Example output to share:
🐋 Copytrading Scan CompleteConfiguration: • Following 2 wallets • Top 10 positions, max $50 each • Balance: $250.00 USDC
Fetched positions: • 0x1234...abcd: 15 positions • 0x5678...efgh: 22 positions • Combined: 28 unique markets • Conflicts skipped: 2
Top 10 by allocation:
- "Will BTC hit $100k?" - 18.5% → BUY YES
- "Trump pardons X?" - 12.3% → BUY NO
- "Fed rate cut Jan?" - 9.8% → Already held ...
Trades executed: 4 buys ($180 total) • Bought 45 YES shares on "Will BTC hit $100k?" @ $0.82 • Bought 120 NO shares on "Trump pardons X?" @ $0.15 ...
Next scan in 4 hours.
User: "Copytrade 0x1234...abcd" → Run:
python copytrading_trader.py --wallets 0x1234...abcd
→ Report what positions that wallet has and what trades would execute
User: "What is 0x5678...efgh holding?" → Run:
python copytrading_trader.py --wallets 0x5678...efgh --dry-run
→ Show their positions without trading
User: "Follow these wallets: 0xaaa..., 0xbbb..., 0xccc..." → Run:
python copytrading_trader.py --wallets 0xaaa...,0xbbb...,0xccc...
→ Aggregate positions across all wallets, report results
User: "Copytrade this whale but only top 5 positions" → Run:
python copytrading_trader.py --wallets 0x... --top-n 5
User: "How are my positions doing?" → Run:
python copytrading_trader.py --positions
→ Show current Polymarket positions with P&L
User: "Show copytrading config" → Run:
python copytrading_trader.py --config
→ Display current settings
User: "Sell positions that whales have exited" → Run:
python copytrading_trader.py --whale-exits
→ Compares your positions to whales, sells any they've closed
User: "Do a full rebalance to match the whales" → Run:
python copytrading_trader.py --rebalance
→ Includes both buys AND sells to match whale allocations
Common approaches:
The skill works best when:
When following multiple wallets, positions are scored by conviction:
max_usd)High-conviction positions are prioritized in Top N selection. Single-wallet positions still trade, but with reduced size. Using just 1 wallet disables conviction scoring (all positions get full sizing).
"Order too small" / "below minimum (5)"
--max-usd or reduce --top-n to concentrate into fewer positions"No wallets specified"
"Agent has no USDC balance"
--venue sim for $SIM paper trading"Conflict skipped"
"All N positions filtered (X conflicts, Y drifted, Z stale)"
"Insufficient balance"
"Market could not be imported"
"External wallet requires a pre-signed order"
WALLET_PRIVATE_KEY is not set in the environmentexport WALLET_PRIVATE_KEY=0x<your-polymarket-wallet-private-key>"Balance shows $0 but I have funds on Polygon"
No automatic installation available. Please visit the source repository for installation instructions.
View Installation Instructions1,500+ AI skills, agents & workflows. Install in 30 seconds. Part of the Torly.ai family.
© 2026 Torly.ai. All rights reserved.