Retrieve closed positions (resolved markets) for a specific user.
API key for authentication. Contact Swaps.xyz to obtain an API key.
User EVM EOA address EVM address (0x prefix + 40 hex characters)
"0x1234567890123456789012345678901234567890"
Polymarket proxy wallet address EVM address (0x prefix + 40 hex characters)
"0x1234567890123456789012345678901234567890"
Array of closed positions
Proxy wallet address
"0x56687bf447db6ffa42ffe2204a05edaa20f55839"
Asset token ID
Condition ID (0x-prefixed 64-hex string)
"0xdd22472e552920b8438158ea7238bfadfa4f736aa4cee91a6b86c39ead110917"
Average purchase price
Total amount bought
Realized profit/loss
Current price
Unix timestamp
Market title
Market slug
Market icon URL
Event slug
Outcome name
Outcome index
Opposite outcome name
Opposite asset token ID
Market end date