Skip to main content
By the end you have a wallet’s daily profit and loss curve, the large trades 0xinsider stored for that wallet, and its fill-by-fill position in any one market where the two do not line up. Run it before you follow a wallet, or when you want to check the grade it was given. You need a Pro API key. See Authentication.

1. Read the profit and loss series

Trader P&L returns a precomputed daily series for one wallet’s Polymarket trading. A wallet 0xinsider knows but has no series for returns 200 with an empty structure. An address that does not resolve to any wallet returns 404.

2. Read the stored large trades

Whale trades history returns the large trades 0xinsider stored for one wallet over a window you choose, newest first. The response’s meta.completeness.status is always best_effort. How much of a wallet’s history is stored varies by market and by window, so treat a gap as missing data rather than as a period when the wallet did not trade.

3. Rebuild one market position

Position timeline returns every stored fill for one wallet in one market, newest first. The condition_id parameter is required.
0xinsider keeps a timeline only for the wallets it syncs most closely. For any other wallet the route answers 404 with error.reason trader_not_tracked. Do not retry that wallet: the answer will not change, and no other spelling of the address reaches a timeline that was never recorded.

4. Compare the two views

  1. Group the trades from step 2 by the date part of traded_at.
  2. Match each date to the entries point with the same date.
  3. For any day with a large daily_change, open the timeline in step 3 for each market.condition_id you saw that day.
A daily_change with no matching trade is normal, and it does not mean the numbers disagree. Step 1 counts every position the wallet holds, while step 2 lists only the large trades that were stored.

What this does not do

  • Tell you what following the wallet would have paid. You get what the wallet did, at its own fill prices, from a stored history marked best_effort. That is a record, not a simulation of your own returns.
  • List a wallet’s closed positions. Read them one market at a time with the timeline in step 3.
  • Return the rows of a full export. Trader export snapshot describes what an export would cover, and Submit a trader export queues the job that produces the dataset.
  • Carry a token_id on every timeline event. It is null when 0xinsider has no token id stored for that market.
  • Place an order. No endpoint on this API does.
Copy-trade signals builds a follow list from the leaderboard. Grades explains the letter on each wallet.