AgentSkillsCN

track-trader

跟踪交易者

SKILL.md

/track-trader

Track and analyze live traders across DeFi, CEX, and prediction markets.

Usage

code
/track-trader <identifier> [options]

Identifiers

  • Wallet address: 0x1234...5678 (Ethereum, Polygon, Arbitrum)
  • ENS name: trader.eth
  • Platform ID: polymarket:username or kalshi:username

Options

  • --platform <platform> - Specify platform (auto-detected if possible)
    • uniswap, polymarket, gmx, aave, kalshi
  • --since <date> - Start tracking from date
  • --alerts - Enable real-time alerts for new trades
  • --copy-ratio <x> - Set copy-trade ratio (e.g., 0.1 = 10% of their size)

Examples

code
/track-trader 0x1234...5678 --platform uniswap --since 2024-01-01
/track-trader vitalik.eth --alerts
/track-trader polymarket:top_predictor --copy-ratio 0.1

Tracking Capabilities

1. Transaction Monitoring

  • Parse all swaps, trades, positions
  • Calculate entry/exit prices
  • Track PnL in real-time
  • Monitor gas costs and slippage

2. Position Analysis

  • Current open positions
  • Historical positions
  • Average holding periods
  • Position sizing patterns

3. Performance Metrics

  • Running Sharpe ratio
  • Win rate over time
  • Profit factor evolution
  • Drawdown tracking

4. Strategy Inference

  • Classify trading style
  • Identify entry/exit patterns
  • Detect correlated trades
  • Estimate information edge

Supported Platforms

DeFi

PlatformChainData Source
Uniswap V3ETH, Polygon, ArbThe Graph
GMXArbitrumThe Graph
AaveMulti-chainThe Graph
HyperliquidL1REST API

Prediction Markets

PlatformTypeData Source
PolymarketCryptoGraphQL API
KalshiRegulatedREST API

CEX (Limited)

PlatformAccess
Public addressesOn-chain deposits

Output

Real-time Status

code
Tracking: 0x1234...5678
Platform: Uniswap V3 (Ethereum)
Since: 2024-01-01
═══════════════════════════════════════

Portfolio Value: $45,230 (+18.3% MTD)
Open Positions: 3

Recent Trades:
  [2024-12-28 14:32] BUY 1.5 ETH @ $3,420
  [2024-12-28 10:15] SELL 0.8 ETH @ $3,380

Performance:
  Win Rate: 58%
  Sharpe: 1.45
  Max DD: 12.3%

Saved Analysis

Results saved to: open-agents/outputs/analysis/[trader_id]_live.yaml

yaml
trader_profile:
  identifier: "0x1234...5678"
  platforms: ["Uniswap V3"]
  tracking_since: "2024-01-01"

  portfolio_snapshot:
    total_value: "$45,230"
    pnl_mtd: "+18.3%"

  inferred_strategy:
    type: "Momentum/Trend Following"
    confidence: "Medium"
    key_signals:
      - "Trades in direction of 4h trend"
      - "Average hold time: 6-12 hours"

  replication_params:
    position_size_ratio: 0.1
    expected_delay: "~30 seconds"
    feasibility: "High"

Copy-Trade Setup

When using --copy-ratio, the skill provides:

  1. Sizing Parameters

    • Ratio of your capital to trader's
    • Adjusted for your risk tolerance
    • Slippage estimates
  2. Execution Guidance

    • Recommended order types
    • Expected delay impact
    • Gas optimization tips
  3. Risk Controls

    • Maximum position size
    • Stop-loss recommendations
    • Correlation with existing portfolio

Alerts

With --alerts enabled:

  • New position opened
  • Position closed
  • Large trade (>$10k default)
  • Unusual activity pattern

Tools Used

  • open-agents/tools/fetch_onchain_data.py (to be implemented)
  • open-agents/tools/calculate_metrics.py