Fetches the realized profit and loss (PnL) for a specific wallet address over a specified time range and granularity. Note: This will differ to what you see on Polymarket’s dashboard since Polymarket showcases historical unrealized PnL. This API tracks realized gains only - from either confirmed sells or redeems. We do not realize a gain/loss until a finished market is redeemed.
^0x[0-9a-fA-F]{40}$"0x1234567890abcdef1234567890abcdef12345678"
day, week, month, year, all "day"
Defaults to first day of first trade if not provided.
1726857600
Defaults to the current date if not provided.
1758316829