Get Closed Positions
Retrieve closed positions (resolved markets) for a specific user.
Documentation Index
Fetch the complete documentation index at: https://docs.swaps.xyz/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
API key for authentication. Contact Swaps.xyz to obtain an API key.
Query Parameters
User EVM EOA address EVM address (0x prefix + 40 hex characters)
^0x[a-fA-F0-9]{40}$"0x1234567890123456789012345678901234567890"
Polymarket proxy wallet address EVM address (0x prefix + 40 hex characters)
^0x[a-fA-F0-9]{40}$"0x1234567890123456789012345678901234567890"
Response
Array of closed positions
Proxy wallet address
^0x[a-fA-F0-9]{40}$"0x56687bf447db6ffa42ffe2204a05edaa20f55839"
Asset token ID
Condition ID (0x-prefixed 64-hex string)
^0x[a-fA-F0-9]{64}$"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