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