copy-trading
Wallet evaluation, monitoring, and copy-trade strategy design for Solana DEX trading
What this skill does
# Copy Trading
Wallet evaluation, monitoring, and copy-trade strategy design for Solana DEX trading. Identify profitable wallets on-chain, evaluate whether their edge is real and replicable, monitor their activity in real time, and execute proportionally-sized trades with independent risk controls.
## What Copy Trading Means on Solana
Copy trading is the practice of monitoring one or more wallets that have demonstrated consistent profitability and replicating their trades in your own wallet. On Solana, every DEX swap is publicly visible on-chain within seconds, making it technically feasible to detect and follow any wallet's activity.
### How It Differs from TradFi Copy Trading
| Dimension | TradFi (eToro, etc.) | Solana On-Chain |
|-----------|---------------------|-----------------|
| Data source | Platform-reported P&L | Verifiable on-chain transactions |
| Latency | Minutes to hours | Seconds (websocket) to sub-second (gRPC) |
| Front-running risk | Low | High (MEV bots, sandwich attacks) |
| Trade cost | Commissions + spread | Gas + slippage + priority fees |
| Capacity | High (large-cap equities) | Low (micro-cap tokens have thin liquidity) |
| Signal decay | Slow | Fast (PumpFun tokens move in minutes) |
| Transparency | Partial (delayed reporting) | Full (every transaction is public) |
The core tradeoff: Solana provides perfect transparency but introduces execution risk. The wallet you copy got a price that no longer exists by the time you trade.
## The Copy-Trade Pipeline
### Stage 1 — Discovery
Find wallets with strong track records. Sources include:
- **SolanaTracker Top Traders**: `GET /top-traders/{token}` returns the highest-PnL wallets for any token
- **Birdeye Trader Rankings**: wallet-level P&L leaderboards by token or globally
- **On-chain leaderboards**: community-built dashboards (GMGN, Cielo, Arkham)
- **Social signals**: wallets shared on Twitter/X or Telegram alpha groups
- **Your own analysis**: run `token-holder-analysis` on a token that performed well, then profile the top holders
See `references/wallet_discovery.md` for detailed source documentation and scoring methodology.
### Stage 2 — Evaluation
Every discovered wallet must pass quantitative evaluation before it enters a copy list. Use the `wallet-profiling` skill for deep behavioral analysis, then apply copy-trade-specific criteria.
**Minimum thresholds:**
| Metric | Minimum | Why |
|--------|---------|-----|
| Trade count (30d) | >= 50 | Statistical significance |
| Win rate | >= 55% | Edge above random |
| Profit factor | >= 1.5 | Wins meaningfully exceed losses |
| Last active | Within 7 days | Still trading, not abandoned |
| Distinct tokens traded | >= 10 | Not a one-token wonder |
| Max single-trade % of total PnL | < 40% | Not reliant on one lucky hit |
| Bot probability | < 30% | Human-like timing patterns |
Run `scripts/evaluate_wallet.py` for a comprehensive copy-trade suitability assessment.
### Stage 3 — Filtering
After evaluation, apply additional filters:
- **Consistency check**: rolling 7-day win rate should not swing below 40% in any period
- **Style compatibility**: understand whether the wallet is a sniper, scalper, or swing trader — your infrastructure must match their speed
- **Size compatibility**: if they trade 500 SOL per position and you have 10 SOL total, proportional sizing may be too small to cover fees
- **Sybil check**: use the `sybil-detection` skill to verify the wallet is not part of a wash-trading cluster
### Stage 4 — Monitoring
Once a wallet passes evaluation and filtering, set up real-time monitoring.
**Monitoring approaches (fastest to simplest):**
1. **Yellowstone gRPC**: sub-second latency, streams all transactions for subscribed wallets
2. **Helius Enhanced WebSocket**: near-real-time with parsed transaction data
3. **Polling via RPC**: `getSignaturesForAddress` every 5-10 seconds — simple but slower
See `references/execution_strategy.md` for implementation details on each approach.
### Stage 5 — Execution
When a monitored wallet executes a swap:
1. **Detect** the transaction (via monitoring infrastructure)
2. **Parse** the trade: token address, direction (buy/sell), size
3. **Validate** the token: check liquidity, holder distribution, honeypot risk
4. **Size** the position: proportional to your portfolio, not theirs
5. **Execute** via Jupiter aggregator with appropriate slippage tolerance
6. **Record** the copy trade with attribution to the source wallet
### Stage 6 — Risk Management
Copy trades require independent risk controls that do not depend on the copied wallet's behavior.
See `references/risk_framework.md` for the complete framework.
**Key limits:**
| Control | Recommended Value | Purpose |
|---------|------------------|---------|
| Max allocation per wallet | 10-20% of portfolio | Diversification across signal sources |
| Max concurrent copy positions | 3-5 | Prevent overexposure |
| Per-trade stop loss | -15% to -25% | Independent downside protection |
| Daily copy-trade loss limit | -5% of portfolio | Circuit breaker |
| Weekly copy-trade loss limit | -10% of portfolio | Longer-term circuit breaker |
## Wallet Scoring for Copy Suitability
Composite score from 0-100 based on weighted criteria:
```
copy_score = (
trade_count_score * 0.15 +
win_rate_score * 0.20 +
profit_factor_score * 0.25 +
consistency_score * 0.20 +
recency_score * 0.10 +
human_probability_score * 0.10
)
```
**Component calculations:**
- **Trade count score**: `min(trade_count / 200, 1.0) * 100` — maxes out at 200 trades
- **Win rate score**: `max((win_rate - 0.40) / 0.30, 0) * 100` — scaled from 40% to 70%
- **Profit factor score**: `min((pf - 1.0) / 3.0, 1.0) * 100` — scaled from 1.0 to 4.0
- **Consistency score**: `(1.0 - std_dev_of_rolling_win_rate) * 100` — lower variance = higher score
- **Recency score**: `max(1.0 - days_since_last_trade / 14, 0) * 100` — decays over 14 days
- **Human probability score**: `(1.0 - bot_probability) * 100`
**Interpretation:**
| Score | Rating | Action |
|-------|--------|--------|
| 80-100 | Excellent | Strong copy-trade candidate |
| 60-79 | Good | Suitable with monitoring |
| 40-59 | Marginal | Proceed with caution, reduce allocation |
| 0-39 | Poor | Do not copy |
## Position Sizing for Copy Trades
Three approaches, from simplest to most nuanced:
### Fixed Amount
Use a constant SOL amount per copy trade (e.g., 0.5 SOL). Simple but ignores the wallet's conviction level.
### Proportional
Match the copied wallet's allocation as a percentage of their estimated portfolio:
```python
your_size = (their_trade_size / their_estimated_portfolio) * your_portfolio
```
Requires estimating their total portfolio, which can be imprecise.
### Confidence-Scaled
Base amount multiplied by your confidence in the wallet:
```python
your_size = base_amount * (copy_score / 100) * conviction_multiplier
```
Where `conviction_multiplier` is higher for wallets with longer track records.
## Anti-Patterns to Avoid
### Copying Bots
Bots have sub-second execution and often use MEV strategies. You cannot match their latency. By the time you detect their trade, the opportunity is gone or you become the exit liquidity. Use the bot probability score to filter these out.
### Survivorship Bias
A wallet with 1000% returns from one PumpFun token is not necessarily skilled. Look for wallets with consistent performance across many tokens, not outlier wins. The max-single-trade-PnL filter catches this.
### Blind Following
Never copy a trade without understanding what the token is. At minimum, run basic safety checks: liquidity depth, holder concentration, contract verification. A 2-second check can prevent buying a honeypot.
### No Independent Exits
The copied wallet may have information you do not have. They may exit for reasons unrelated to the trade. Always maintain your own stop loss. Never rely solely on mirroring their exit.
### Correlation Risk
If you copy 5 wallets andRelated in Design
contribute
IncludedLocal-only OSS contribution command center. Auto-refreshes the user's in-flight PR and issue state on invoke so conversations start with full context — no need to brief Claude on what's in flight. Helps the user find issues to contribute to on GitHub, builds per-repo dossiers of what each upstream expects (CLA, DCO, branch convention, AI policy, draft-first, review bots, issue templates), runs deterministic gates before any external action so AI-assisted contributions don't reach maintainers as slop. State is markdown-only: candidate files at ~/.contribute-system/candidates/, repo dossiers at ~/.contribute-system/research/, append-only event log at ~/.contribute-system/log.jsonl. No database, no cloud calls. Use when the user asks about their PRs / issues / contributions, wants to find new work to take on, claim an issue, build/refresh a repo's dossier, or draft a Design Issue or PR. Trigger with "/contribute", "what's my PR status", "find a contribution", "claim issue X", "draft a Design Issue for Y", "refresh dossier for Z".
architectural-analysis
IncludedUser-triggered deep architectural analysis of a codebase or scoped subtree across eight modes — information architecture, data flow, integration points, UI surfaces, interaction patterns, data model, control flow, and failure modes. This skill should be used when the user asks to "diagram this codebase," "map the architecture," "show the data flow," "give me an ERD," "trace control flow," "find the integration points," "verify the layout pattern," "audit the UX architecture," or any similar request whose primary deliverable is mermaid diagrams plus cited reports under docs/architecture/. Dispatches haiku/sonnet sub-agents in parallel for per-mode exploration, then verifies every citation mechanically before any node lands in a diagram. Not for one-off prose explanations of code (use code-explanation) or for high-level system design from scratch (use system-design).
mcp
IncludedModel Context Protocol (MCP) server development and tool management. Languages: Python, TypeScript. Capabilities: build MCP servers, integrate external APIs, discover/execute MCP tools, manage multi-server configs, design agent-centric tools. Actions: create, build, integrate, discover, execute, configure MCP servers/tools. Keywords: MCP, Model Context Protocol, MCP server, MCP tool, stdio transport, SSE transport, tool discovery, resource provider, prompt template, external API integration, Gemini CLI MCP, Claude MCP, agent tools, tool execution, server config. Use when: building MCP servers, integrating external APIs as MCP tools, discovering available MCP tools, executing MCP capabilities, configuring multi-server setups, designing tools for AI agents.
react-native-skia
IncludedDesign, build, debug, and optimise high-polish animated graphics in React Native or Expo using @shopify/react-native-skia, Reanimated, and Gesture Handler. Use when the user wants canvas-driven UI, shaders, paths, rich text, image filters, sprite fields, Skottie, video frames, snapshots, web CanvasKit setup, or performance tuning for custom motion-heavy elements such as loaders, hero art, cards, charts, progress indicators, particle systems, or gesture-driven surfaces. Also use when the user asks for fluid, glow, glass, blob, parallax, 60fps/120fps, or GPU-friendly animated effects in React Native, even if they do not explicitly say "Skia". Do not use for ordinary form/layout work with standard views.
plaid
IncludedProduct Led AI Development — guides founders from idea to launched product. Six capabilities: Idea (discover a product idea), Validate (pressure-test the idea against fatal flaws, problem reality, competition, and 2-week MVP feasibility), Plan (vision intake + document generation), Design (translate image references into a design.md spec), Launch (go-to-market strategy), and Build (roadmap execution). Use when someone says "PLAID", "plaid idea", "help me find an idea", "product idea", "idea from my business", "idea from my expertise", "plaid validate", "validate my idea", "pressure-test", "is this idea good", "find fatal flaws", "validate the problem", "plan a product", "define my vision", "generate a PRD", "product strategy", "plaid design", "design from image", "translate image to design", "create design.md", "extract design tokens", "plaid launch", "go-to-market", "launch plan", "GTM strategy", "launch playbook", "plaid build", "build the app", "start building", or "execute the roadmap".
nextjs-framer-motion-animations
IncludedAdds production-safe Motion for React or Framer Motion animations to Next.js apps, including reveal, hover and tap micro-interactions, whileInView, stagger, AnimatePresence, layout and layoutId transitions, reorder, scroll-linked UI, and lightweight route-content transitions. Use when the user asks to add, refactor, or debug Motion or Framer Motion in App Router or Pages Router codebases, especially around server/client boundaries, reduced motion, LazyMotion, bundle size, hydration, or route transitions. Avoid for GSAP-style timelines, WebGL or 3D scenes, heavy scroll storytelling, or CSS-only effects unless Motion is explicitly requested.