Skip to main content
GET
Get Profit and Loss

Authorizations

x-api-key
string
header
required

API key for authentication. Contact Swaps.xyz to obtain an API key.

Query Parameters

userId
string
required

User EVM EOA address EVM address (0x prefix + 40 hex characters)

Pattern: ^0x[a-fA-F0-9]{40}$
Example:

"0x1234567890123456789012345678901234567890"

proxyWallet
string

Polymarket proxy wallet address EVM address (0x prefix + 40 hex characters)

Pattern: ^0x[a-fA-F0-9]{40}$
Example:

"0x1234567890123456789012345678901234567890"

Response

Profit and loss summary

currentPositions
number<float>
required

Total PnL from current open positions

closedPositions
number<float>
required

Total PnL from closed positions

allTime
number<float>
required

All-time total PnL