Skip to main content
Room ID: top_traders
Endpoint: wss://staging-api.struct.to/ws
Live top traders for a token, ranked by PnL for the selected timeframe. You get a snapshot, then row updates as trades in the subscribed pool and updated PnL values arrive. PnL values may update separately from trade events.

Migrations

A pool_id subscription follows migrations. When the pool migrates (for example a bonding curve graduating to an AMM pool), the list moves to the destination pool for the same token and options automatically; later updates carry the new pool_id. This room sends no migration event: watch the address room (an address_update for the destination pool with migrated_from_pool_id, dirty kind pool) to be notified. Your list is kept: the next update arrives as a normal delta, or as the destination list’s snapshot (reset=true) when one already existed. A pool that had already migrated when you subscribe is followed immediately: the subscribe response’s pool_id is the destination and migrations lists each hop.

Subscribe

Requires token_address, pool_id, and an explicit chain selector.

Filters

Provide either chain or chain_id. Do not send both.

Example

Events

Every subscribe is answered with top_traders_subscribe_response (keys are always long). Here the subscribed pool had already migrated:
The room emits a top-traders update. Same update shape as Token Holders. Pick Response (Long) or Response (Short) in the right-hand panel. WebSocket defaults to short. See long and short field names.
Last modified on October 15, 2026