Skip to main content
The most-requested integration on Predexon. You pick a profitable wallet, watch every fill it does in real time, and mirror those fills through your own execution at a fraction of the size. You’ll build:
  1. A WebSocket listener that fires on every trade by the target wallet
  2. A handler that translates target-wallet trades into orders for your own execution layer
  3. A scale-and-execute path that mirrors on the same venue
Endpoints used: 1 WebSocket channel + 1 REST endpoint. Runs on Dev plan or higher (WebSocket requires Dev+).
Predexon supplies the detection side: the real-time fill stream and the wallet analytics to vet your target. Execution happens through the venue’s own API (e.g. the Polymarket CLOB client) — shown below as a stub you wire to your client of choice.

Architecture


Step 1 — Verify the target

Before mirroring, check they’re actually profitable. Pull the wallet profile:
Re-run this check daily — wallets degrade.

Step 2 — Subscribe to their trades

The trades channel takes a users filter. You’ll receive every fill they take in real time, on both V1 and V2 Polymarket contracts.

Step 3 — Scale and mirror

The hardest part of copy-trading is sizing. Mirror their trade as a fraction of their original size, capped by your venue balance. Execution goes through your own venue client:
The example above mirrors on the same venue (Polymarket → Polymarket), which is the most reliable copy-trading path — the token_id in the event is exactly the token your venue client trades.

Step 4 — Run it under supervision

Things that will go wrong in production: For the simplest possible production version, also subscribe to the activity channel to mirror splits, merges, and redemptions.

Variations

  • Multi-wallet copy-trading: subscribe with filters: {"users": [w1, w2, w3, ...]} and route each trade to the right end-user account in your DB.
  • Filtered copy-trading: only mirror trades above a notional threshold, or in specific market categories.
  • Agent-driven copy-trading: replace the WebSocket loop with the Agent Cookbook recipe 4, which polls and reasons about whether to mirror.

Reference