Calculate Polymarket wallet P&L with losing positions included

Use observed public trades and confirmed resolutions to reconstruct wallet P&L, including positions that settled at zero.

Run the wallet report

Start with the example input for polymarket-wallet-pnl and enter a username or wallet address. The actor fetches public trades and matches them to confirmed market resolutions, retaining positions that settled at zero. It calculates win rate from completed token positions with usable observed cost basis, rather than selecting trades from the closed-positions endpoint. Review realized and unrealized P&L alongside monthly P&L and the breakdowns by price bucket and category.

Limits

Keep the observed-trade reconstruction separate from the official all-time figures included in the report. The trades endpoint caps pagination at offset 10,000, and the final page can bring the fetched total to 10,500 raw rows before deduplication. Check the report for truncated coverage before treating its totals as representative of the wallet's history. Transfers, missing cost basis and incomplete histories limit accuracy, even when resolved losing tokens remain in the calculation. Past performance does not predict returns or recommend copying the wallet.