Skip to main content
Room ID: trending
Endpoint: wss://staging-api.struct.to/ws
Event: trending_frame
Frames default to short field names. Pass x-field-names: long or ?fields=long on the connection to receive full names. The complete example below has Response (Long) and Response (Short). See long and short field names. Trending follows your requested pages as pool values and rankings change. It returns trending pools with custom sorting, defaulting to descending volume_24h. Pulse provides three modes with fixed ordering. Each room has its own event type and column descriptions; both use the same row and chart update rules.

Join and subscribe

Connect with API key or JWT authentication, then join:
Wait for room_joined, then subscribe. This example ranks active Solana pools by one-hour volume and includes market-cap chart points:
The first trending_frame resets the room’s state. Each changed column supplies its complete ordered ids. One consecutive sequence per connection and room covers all columns, rows, and charts in the frame. Apply a whole frame before rendering. With include_price_points: true, each row carries its chart as pp: [{t, v}], with t in Unix milliseconds and v the USD market cap, oldest first. Charts contain only available candle data, so pp can be absent or empty until candles arrive. Charts include recent price points, sampled to at most 300 real trade points. New pools may have fewer points. Older points expire, and historical points can be corrected. Chart changes arrive as ordinary row updates: a patch sets pp to the complete new list, so replace it rather than merging. There is no separate trending_subscribed acknowledgement. Joining alone does not start a view.

Change sorting, filters, or page

Send another subscribe with the same name and all desired settings. To request the next page in the example, resend it with page: 1. With limit: 50, pages 0 through 19 are allowed. Rankings are live, so rows can move between pages. Supply views: [...] to follow up to 16 named lists in this room. Each view can select its own chains, sort, page, filters, and charts. For example, you can follow one volume ranking and one price-change ranking together. The default name is trending; use explicit, different names for multiple views.

Pause and unpause

Hold the current page while its prices, metrics, and chart points keep updating:
Send action: "unpause" with the same name to restore the latest ranking. A migrated pool replaces its previous pool in the held position. The next column update confirms paused and a new view_id.

Stop a view or recover

Use unsubscribe_all to remove every view in the room. Leaving or disconnecting also ends those subscriptions. After a sequence gap or invalid patch, send:
Keep the previous complete result while awaiting the reset, and ignore incremental frames until it arrives. On reconnect, join and resubscribe. Keep state and sequence numbers separate from pulse if using both rooms on one connection.

Complete subscription and reset example

These are complete fictional Trending payloads. Every supported request field and filter has a value. Responses include all common row fields and all six metric windows. Optional fields can be absent in real responses. The example pool has migrated, so its migration fields are populated. Both named views inherit every top-level option. They contain the same example pool, which appears once in rows, with its chart as pp. price_point_limit defaults to 60 and accepts 1–300. When a pool appears in several views in the same room, its row uses the highest requested limit. All filters are combined; choose the filters your application needs instead of requiring every example condition. The chain selectors deliberately agree. Usually chain_ids is enough. Each metric bound shows all four comparison operators; you can supply only the bounds you need. Trending selects trending pools automatically. sort_by and sort_order are accepted parameter aliases for sortBy and sortOrder. Download all example payloads.

Subscribe with every field

Full reset response

The right-hand panel has Response (Long) and Response (Short). WebSocket defaults to short. See long and short field names.

Pool and token timestamps

Pool responses distinguish three timestamps: These fields use Unix milliseconds. Unknown dates are omitted. Token creation is never inferred from a pool creation or migration. The same token can have multiple pools with different creation and migration times. token_created_at replaces the duplicate pool_created_at field. Clients using short fields should read tca for token creation and c for pool creation; the old root pc field is removed. Nested pc fields used for price change or protocol configuration keep their existing meaning.
Last modified on October 10, 2026