Skip to main content
Event: trader_trade_event
Endpoint: wss://api.struct.to/ws/alerts
Cost: 0.2 credits per event
Fires on every confirmed prediction trade. Unlike trader_new_trade, this alert delivers a typed discriminated-union payload that covers all trade variants (OrderFilled, Redemption, Merge, Split, PositionsConverted, Cancelled, oracle lifecycle, and more) with the correct fields per variant.

Filters

Subscribe

Response

The data object is a discriminated union keyed on trade_type. The OrderFilled variant is shown below; Redemption, Merge, Split, PositionsConverted, Cancelled, and the oracle lifecycle variants follow the same shapes documented for the Trades room.
builder_code is the lower-cased 0x... bytes32 identifier of the integrator that brokered the order (CLOB v2 only). 0x0000… means the order was placed directly through Polymarket. Both builder_code and builder_fee are omitted on v1 trades. See Fetching trades by builder code.
Last modified on June 17, 2026