requests installed. Run python -m pip install requests if needed. The snippets on this page share the variables defined in step 1.
1. Read the daily P&L
Trader P&L returns a daily series and summary statistics. A known wallet with no series returns200 with an empty structured result. An identifier that does not resolve to a wallet returns 404.
raise_for_status() before reading the body. Authentication and availability failures therefore stop the script instead of appearing as an empty result.
For a smaller response, the endpoint also supports a UTC date window through from and to, and selected result sections through sections. See the endpoint reference for their format.
2. Read the recorded large trades
Large trades history returns stored large trades for the wallet, newest first. It does not contain every Polymarket fill.meta.completeness.status: "best_effort". A gap in these records means coverage may be missing; it does not prove the wallet stopped trading.
3. Inspect one market’s fills
Takemarket.condition_id from a trade you want to investigate. Pass it to Position timeline with the wallet address.
running_amount excludes splits, merges, redemptions, and neg-risk conversions. It is not a complete statement of the wallet’s holdings. running_avg_price can also differ from Polymarket’s current average price.
Timelines are available only for wallets that 0xinsider tracks closely. A 404 with trader_not_tracked means no timeline is available; repeating the same request will not create one.
4. Compare the records
- Group the large trades by the UTC date in
traded_at. - Match each date to the daily P&L entry with the same
date. - For a large daily change, inspect the timeline for each market traded that day.
Limits
- This recipe reviews historical results. It does not simulate your own copy-trading returns.
- It does not list all closed positions. A timeline covers one wallet and market.
- A timeline’s
token_idcan benullwhen the market’s token ID is unavailable. - For a downloadable dataset, read Trader export snapshot and Submit a trader export.
- The API does not place orders.