Room ID:
Endpoint:
Rate: 0.025 credits per message
polymarket_trader_pnl_exits Endpoint:
wss://api.struct.to/ws Rate: 0.025 credits per message
Exit reasons
| Reason | Meaning |
|---|---|
resolved_win | Held to market resolution and won by verdict |
resolved_loss | Held to market resolution and lost by verdict |
sold_win | Closed before resolution with positive realized PnL |
sold_loss | Closed before resolution with negative realized PnL |
Subscribe
Thetraders filter is required.
Filters
| Filter | Type | Required | Description |
|---|---|---|---|
traders | string[] | Yes | EVM wallet addresses (0x-prefixed), non-empty |
reasons | string[] | No | Subset of ["resolved_win","resolved_loss","sold_win","sold_loss"], or ["all"] |
Example
Response
Events
trader_exit_marker_batch
One marker per position close.
| Field | Type | Description |
|---|---|---|
trader | string | Wallet address |
position_id | string | ERC-1155 token ID (decimal string) |
condition_id | string | Condition ID |
event_slug | string | Owning event slug |
market_slug | string | Market slug |
title | string | Market title |
question | string | Market question |
image_url | string | Market image URL |
outcome | string | Outcome label (for example Yes) |
outcome_index | int | null | Outcome index |
pnl_usd | number | Realized PnL at exit, in USD |
pnl_pct | number | Realized PnL as a percentage |
cost_basis_usd | number | Cost basis of the closed position, in USD |
reason | string | Exit reason (see taxonomy above) |
block | int64 | Block of the exit |
ts | int64 | Exit timestamp (Unix seconds) |