> ## Documentation Index
> Fetch the complete documentation index at: https://docs.struct.to/llms.txt
> Use this file to discover all available pages before exploring further.

# Pulse and Trending

> Build live pool lists with your own filters, sorting, pages, and charts.

Pulse provides New, Migration and Migrated lists with fixed ordering and a timeframe filter. Trending returns trending pools with custom sorting. Both support filters, multiple chains, pages and charts. HTTP returns pool records directly; live subscriptions support named views. Use HTTP for a snapshot or WebSocket for live updates.

> [card] [Pulse](https://docs.struct.to/websockets/rooms/pulse.md)
>
> Follow New, Migration and Migrated pools with fixed ordering and independent filters.

> [card] [Trending](https://docs.struct.to/websockets/rooms/trending.md)
>
> Rank active pools by volume, price change, market cap, and other supported metrics.

## Choose HTTP or WebSocket

| Access | URL or room | Default list |
| - | - | - |
| Pulse snapshot | `POST https://staging-api.struct.to/v1/pulse` | `new` |
| Trending snapshot | `POST https://staging-api.struct.to/v1/trending` | `trending` |
| Pulse updates | `pulse` on `wss://staging-api.struct.to/ws` | `new` |
| Trending updates | `trending` on `wss://staging-api.struct.to/ws` | `trending` |

Pulse uses `mode`: `new`, `migration`, or `migrated`. New lists newest creations first, Migration lists highest bonding progress first, and Migrated lists pools with `is_migration_pool: true` by newest `migrated_at`. Pool creation and token creation remain separate. Trending returns trending pools with custom sorting and no list selector. Both support `chain_ids: [-1, 8453]` to combine Solana and Base results.

Use the usual [API key or JWT authentication](https://docs.struct.to/introduction/authentication.md). The HTTP paths use the `/v1` API prefix. HTTP snapshots default to long field names; Pulse and Trending rooms default to short. See [long and short field names](https://docs.struct.to/api-reference/response-format.md#long-and-short-field-names).

For migrated pools, use `migrated_from_protocol` for the displayed name and icon when available, falling back to `protocol`. Keep the current `protocol` and `pool_id` for pool operations. See [displaying migrated pools](https://docs.struct.to/guides/migrated-pools.md) for the exact rule and WebSocket field names.

## Fetch your first list

This request returns up to 30 active Solana pools, ordered by one-hour volume, with at least \$10,000 of liquidity:

```bash theme={null}
curl -X POST 'https://staging-api.struct.to/v1/trending' \
  -H 'X-API-Key: YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
    "chain": "solana",
    "sortBy": "volume_1h",
    "sortOrder": "desc",
    "limit": 30,
    "page": 0,
    "filters": {
      "liquidity_fdv_usd": {"gte": 10000},
      "include_timeframes": ["1h", "24h"]
    }
  }'
```

The response is `{ "success": true, "data": [pool], "info": { "version": "1.0.0" } }`. Read pool records directly from `data`, in the requested order. Pool fields include `pool_id`, `chain_id`, `token_a`, `token_b`, `holders`, and `metrics`. With `include_price_points: true`, each pool includes `price_points` with `time` in Unix milliseconds and `value` in USD market cap. Empty results return `data: []`. Recent price points are sampled to at most 300 real trade points. New pools can have shorter histories; no artificial points fill gaps.

Each HTTP request selects one page. Send separate requests for different lists. See the complete [Pulse snapshot example](https://docs.struct.to/api-reference/pulse/pulse-snapshot.md) or [Trending snapshot example](https://docs.struct.to/api-reference/trending/trending-snapshot.md) for every request and response field.

## Subscribe to several live views

A WebSocket subscription can supply `views` to request up to 16 named lists together. Each view inherits fields from the top level and overrides the fields it supplies. A view's `filters` object replaces the entire top-level `filters` object.

```json theme={null}
{
  "chain_ids": [-1, 8453],
  "interval_ms": 500,
  "limit": 30,
  "filters": {"timeframe": "5m"},
  "views": [
    {"name": "new", "mode": "new"},
    {"name": "migration", "mode": "migration"},
    {"name": "migrated", "mode": "migrated"}
  ]
}
```

To receive live updates, join `pulse`, wait for `room_joined`, then send it as `payload.message` in a `room_message`, adding `"action": "subscribe"`. The timeframe selects metrics without changing the columns' fixed order.

## Keep a view live

1. Connect to `/ws` with your credentials and join `pulse` or `trending`.
2. Wait for `room_joined`, then subscribe to your views.
3. Apply the first reset frame as the complete result for that room.
4. Apply each subsequent frame as one update, using its ordered IDs and row changes (charts are part of rows).
5. If a sequence check fails or a patch cannot be applied, request `resync` and wait for a reset.

Each room uses one consecutive `sequence` for the entire frame. Require the previous sequence plus one unless `reset` is true, and save it only after applying all changes successfully. Pool `updated_at` values describe the data and are not message cursors.

A subscription is acknowledged by its column in a frame. There is no separate `pulse_subscribed` or `trending_subscribed` message. Joining by itself does not start a view.

If you use HTTP for the initial display, replace that list with the WebSocket's initial reset after subscribing. Frame sequences and view IDs apply only to the live subscription.

## Choose your settings

* [Snapshot options and filters](https://docs.struct.to/api-reference/discovery/view-options.md): Pulse modes, chains, exclusions, ranges, pages, and charts.
* [Sorting](https://docs.struct.to/api-reference/discovery/sorting.md): every available sort key, units, and time windows.
* [Pulse HTTP](https://docs.struct.to/api-reference/pulse/pulse-snapshot.md) and [Trending HTTP](https://docs.struct.to/api-reference/trending/trending-snapshot.md): request and response explorers.
* [Pulse WebSocket](https://docs.struct.to/websockets/rooms/pulse.md) and [Trending WebSocket](https://docs.struct.to/websockets/rooms/trending.md): named views, frames, pause, and resync.

## Common actions

| Task | Request or response |
| - | - |
| Select pools | Send a named view with filters and a Pulse mode when applicable. Membership follows its ordered `ids`. |
| Order a list | Pulse uses fixed ordering per mode. Trending accepts `sortBy` and `sortOrder`, such as `volume_1h`. |
| Change filters or page | Subscribe again with the same `name` and the complete desired settings. Other named views stay active. |
| Read updates | Handle `pulse_frame` or `trending_frame`, with complete rows or field changes. |
| Display charts | Set `include_price_points: true` and read each row's `pp` chart points. |
| Stop one view | Send `action: "unsubscribe"` with its `name`. |
| Pause or unpause | Send `action: "pause"` or `"unpause"` with `name`, or `names` for a batch. Read the confirmed `paused` flag in the column. |

Each subscription returns your selected pages. Keep a separate state object for each room, even when both rooms share a connection.

`audit_data` describes the displayed token’s security properties and transfer fees. `protocol_data` describes pool trading fees and protocol-specific details. Both are optional. See [token audit and pool fees](https://docs.struct.to/guides/token-audit-and-pool-fees.md) for every field, unknown values and temporary snipe schedules.

## Pool and token timestamps

Pool responses distinguish three timestamps:

| Long field | Short field | Meaning |
| - | - | - |
| `created_at` | `c` | Creation of the pool identified by `pool_id`. |
| `token_created_at` | `tca` | Creation of the token identified by `address`. |
| `migrated_at` | `ma` | Earliest known migration time for the pool. |

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.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.