Get Polymarket closed positions
polymarket_get_closed_positionsRetrieve a wallet's closed, resolved positions with realized profit and loss. Use it to review settled trading history, unlike open-position queries.
Instructions
Get a wallet's CLOSED (resolved) positions with REALIZED profit/loss — the settled history behind polymarket_get_positions (which shows only open positions).
Args:
wallet (string): 0x… address (42 chars).
limit (number): max closed positions, 1-100 (default 25).
response_format ('markdown' | 'json'): default 'markdown'.
Returns: { wallet, count, totalRealizedPnl, positions:[{ title, slug, outcome, conditionId, avgPrice, totalBought, realizedPnl, curPrice }] }. An unknown wallet returns 0 positions.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max closed positions (1-100, default 25). | |
| wallet | Yes | Public wallet address (0x…, 42 chars). | |
| response_format | No | Output format: 'markdown' (concise, human-readable; default) or 'json' (full structured data). | markdown |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | Yes | ||
| wallet | Yes | ||
| positions | Yes | ||
| totalRealizedPnl | Yes |