Skip to main content
Copy trading simulation means replaying another trader’s historical trades and estimating what your returns would have been if you had entered the same positions at the same prices. This guide walks you through fetching a trader’s full activity history, isolating their buy actions, building a position tracker, and computing a total simulated PnL — all using the Orbscan activity endpoint.
This simulation is for research purposes only. Replaying past trades does not guarantee the same outcomes in the future. Prediction market prices change constantly, and a trader’s past edge may not persist. Nothing here constitutes financial advice.
1

Pick a trader to follow

Choose a wallet address whose trading history you want to simulate. You can find candidates by browsing orbscan.com or by identifying addresses from other on-chain research. Copy the full hex address — for example:
2

Fetch their full activity history

Paginate through all pages of GET /v1/trader/{address}/activity until nextCursor is null. This gives you every buy, sell, and redeem the wallet has ever made.
Python
3

Filter to Buy actions only

Discard sells and redeems and keep only records where action == "Buy". These represent the entry points you would have copied.
Python
4

Simulate the portfolio

For each buy, record the market, the outcome side, the number of shares, and the entry price. When a matching Redeem appears at price == 100.0, the market resolved in that trader’s favour — compute the return as (100 - entry_price) * shares / 100 in USDC. Positions with no matching redeem remain open and contribute zero closed PnL.
Python
5

Compute total simulated PnL

Sum the pnl_usdc from every closed trade to get the overall simulated return. Print a breakdown so you can see which markets drove the most profit or loss.
Python