> ## Documentation Index
> Fetch the complete documentation index at: https://sonar-cf3aeac7.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Filters and sortable fields

> The 94 Pulse fields you can filter and sort on, the operators, special filters such as keyword, source and socials, and the validation messages you can get back.

Filters go in the `filters` object of a view, keyed by **snake\_case** field name. Each value is an operator object such as `{ "gte": 1000 }`. This page covers the format used by [`POST /pulse/views`](https://sonar-cf3aeac7.mintlify.site/pulse/rest-views), [`POST /pulse/views/pagination`](https://sonar-cf3aeac7.mintlify.site/pulse/rest-views-pagination) and the [live stream](https://sonar-cf3aeac7.mintlify.site/pulse/stream.md). For the camelCase format of `POST /pulse`, see [Query views (native format)](https://sonar-cf3aeac7.mintlify.site/pulse/native-views.md).

```json theme={null}
{
  "views": [
    {
      "name": "liquid-new-base",
      "model": "new",
      "chainId": ["evm:8453"],
      "sortBy": "volume_5min",
      "filters": {
        "liquidity": { "gte": 10000 },
        "market_cap": { "gte": 50000, "lte": 2000000 },
        "has_social": { "equals": true },
        "keyword": { "in": ["cat", "dog"] }
      }
    }
  ]
}
```

## Fields

There are 94 fields you can both filter and sort on. The snake\_case name is what you use in `filters` and `sortBy`. The camelCase name is the matching field on the [Pulse token object](https://sonar-cf3aeac7.mintlify.site/pulse/token-object.md), and the name used by `POST /pulse`.

### Fixed fields

| snake\_case | camelCase | Type | Meaning |
| - | - | - | - |
| `created_at` | `createdAt` | date | Token creation time |
| `latest_trade_date` | `latestTradeDate` | date | Time of the latest trade |
| `bonded_at` | `bondedAt` | date | Time the token finished its bonding curve and migrated |
| `bonding_percentage` | `bondingPercentage` | percent, 0 to 100 | Bonding curve progress |
| `liquidity` | `liquidityUSD` | USD | Liquidity |
| `market_cap` (alias `latest_market_cap`) | `marketCapUSD` | USD | Market cap, from circulating supply |
| `market_cap_diluted` | `marketCapDilutedUSD` | USD | Fully diluted market cap |

### Windowed fields

Replace `{W}` with a time window.

| snake\_case | camelCase | Type | Windows |
| - | - | - | - |
| `price_change_{W}` | `priceChange{W}Percentage` | percent | `1min`, `5min`, `1h`, `4h`, `6h`, `12h`, `24h` (no `15min`) |
| `volume_{W}` | `volume{W}USD` | USD | all 8 |
| `volume_buy_{W}` | `volumeBuy{W}USD` | USD | all 8 |
| `volume_sell_{W}` | `volumeSell{W}USD` | USD | all 8 |
| `trades_{W}` | `trades{W}` | count | all 8 |
| `buys_{W}` | `buys{W}` | count | all 8 |
| `sells_{W}` | `sells{W}` | count | all 8 |
| `buyers_{W}` | `buyers{W}` | count of distinct wallets | all 8 |
| `sellers_{W}` | `sellers{W}` | count of distinct wallets | all 8 |
| `traders_{W}` | `traders{W}` | count of distinct wallets | all 8 |
| `fees_paid_{W}` | `feesPaid{W}USD` | USD | all 8 |

The 8 windows are `1min`, `5min`, `15min`, `1h`, `4h`, `6h`, `12h` and `24h`. For example, `volume_1h` maps to `volume1hUSD`, `price_change_24h` to `priceChange24hPercentage`, and `fees_paid_15min` to `feesPaid15minUSD`.

That makes 7 fixed fields, 7 price change fields and 10 metrics × 8 windows = 94 fields.

### Time windows

Windowed stats are rolling windows that end at the time of the last stats update. They do not align to calendar boundaries.

| Window | Suffix in field names | Volume, trade and wallet counts, fees (`STATS_WINDOWS`) | Price change (`PRICE_CHANGE_WINDOWS`) |
| - | - | - | - |
| 1 minute | `1min` | Yes | Yes |
| 5 minutes | `5min` | Yes | Yes |
| 15 minutes | `15min` | Yes | **No** |
| 1 hour | `1h` | Yes | Yes |
| 4 hours | `4h` | Yes | Yes |
| 6 hours | `6h` | Yes | Yes |
| 12 hours | `12h` | Yes | Yes |
| 24 hours | `24h` | Yes | Yes |

No `priceChange15minPercentage` field exists. Every other combination of metric and window does.

Field names are built as `<metric><window><suffix>`:

| Pattern | Type | Meaning |
| - | - | - |
| `priceChange{window}Percentage` | number | Price change over the window, in percent (`6.42` means +6.42%). `0` when there is no earlier price to compare. |
| `volume{window}USD` | number | Traded volume in USD |
| `volumeBuy{window}USD` | number | Buy-side volume in USD |
| `volumeSell{window}USD` | number | Sell-side volume in USD |
| `trades{window}` | number | Number of trades |
| `buys{window}` | number | Number of buys |
| `sells{window}` | number | Number of sells |
| `buyers{window}` | number | Distinct buying wallets |
| `sellers{window}` | number | Distinct selling wallets |
| `traders{window}` | number | Distinct trading wallets |
| `feesPaid{window}USD` | number | Transaction (gas) fees paid by traders for these trades, in USD |

> [!NOTE]
>
> `liquidityMaxUSD` appears on the token object but cannot be used to filter or sort. There is no `price_change_15min`.

> [accordion] All 94 field names
>
> | snake\_case | camelCase |
> | - | - |
> | `created_at` | `createdAt` |
> | `latest_trade_date` | `latestTradeDate` |
> | `bonded_at` | `bondedAt` |
> | `bonding_percentage` | `bondingPercentage` |
> | `liquidity` | `liquidityUSD` |
> | `market_cap` | `marketCapUSD` |
> | `market_cap_diluted` | `marketCapDilutedUSD` |
> | `price_change_1min` | `priceChange1minPercentage` |
> | `price_change_5min` | `priceChange5minPercentage` |
> | `price_change_1h` | `priceChange1hPercentage` |
> | `price_change_4h` | `priceChange4hPercentage` |
> | `price_change_6h` | `priceChange6hPercentage` |
> | `price_change_12h` | `priceChange12hPercentage` |
> | `price_change_24h` | `priceChange24hPercentage` |
> | `volume_1min` | `volume1minUSD` |
> | `volume_5min` | `volume5minUSD` |
> | `volume_15min` | `volume15minUSD` |
> | `volume_1h` | `volume1hUSD` |
> | `volume_4h` | `volume4hUSD` |
> | `volume_6h` | `volume6hUSD` |
> | `volume_12h` | `volume12hUSD` |
> | `volume_24h` | `volume24hUSD` |
> | `volume_buy_1min` | `volumeBuy1minUSD` |
> | `volume_buy_5min` | `volumeBuy5minUSD` |
> | `volume_buy_15min` | `volumeBuy15minUSD` |
> | `volume_buy_1h` | `volumeBuy1hUSD` |
> | `volume_buy_4h` | `volumeBuy4hUSD` |
> | `volume_buy_6h` | `volumeBuy6hUSD` |
> | `volume_buy_12h` | `volumeBuy12hUSD` |
> | `volume_buy_24h` | `volumeBuy24hUSD` |
> | `volume_sell_1min` | `volumeSell1minUSD` |
> | `volume_sell_5min` | `volumeSell5minUSD` |
> | `volume_sell_15min` | `volumeSell15minUSD` |
> | `volume_sell_1h` | `volumeSell1hUSD` |
> | `volume_sell_4h` | `volumeSell4hUSD` |
> | `volume_sell_6h` | `volumeSell6hUSD` |
> | `volume_sell_12h` | `volumeSell12hUSD` |
> | `volume_sell_24h` | `volumeSell24hUSD` |
> | `trades_1min` | `trades1min` |
> | `trades_5min` | `trades5min` |
> | `trades_15min` | `trades15min` |
> | `trades_1h` | `trades1h` |
> | `trades_4h` | `trades4h` |
> | `trades_6h` | `trades6h` |
> | `trades_12h` | `trades12h` |
> | `trades_24h` | `trades24h` |
> | `buys_1min` | `buys1min` |
> | `buys_5min` | `buys5min` |
> | `buys_15min` | `buys15min` |
> | `buys_1h` | `buys1h` |
> | `buys_4h` | `buys4h` |
> | `buys_6h` | `buys6h` |
> | `buys_12h` | `buys12h` |
> | `buys_24h` | `buys24h` |
> | `sells_1min` | `sells1min` |
> | `sells_5min` | `sells5min` |
> | `sells_15min` | `sells15min` |
> | `sells_1h` | `sells1h` |
> | `sells_4h` | `sells4h` |
> | `sells_6h` | `sells6h` |
> | `sells_12h` | `sells12h` |
> | `sells_24h` | `sells24h` |
> | `buyers_1min` | `buyers1min` |
> | `buyers_5min` | `buyers5min` |
> | `buyers_15min` | `buyers15min` |
> | `buyers_1h` | `buyers1h` |
> | `buyers_4h` | `buyers4h` |
> | `buyers_6h` | `buyers6h` |
> | `buyers_12h` | `buyers12h` |
> | `buyers_24h` | `buyers24h` |
> | `sellers_1min` | `sellers1min` |
> | `sellers_5min` | `sellers5min` |
> | `sellers_15min` | `sellers15min` |
> | `sellers_1h` | `sellers1h` |
> | `sellers_4h` | `sellers4h` |
> | `sellers_6h` | `sellers6h` |
> | `sellers_12h` | `sellers12h` |
> | `sellers_24h` | `sellers24h` |
> | `traders_1min` | `traders1min` |
> | `traders_5min` | `traders5min` |
> | `traders_15min` | `traders15min` |
> | `traders_1h` | `traders1h` |
> | `traders_4h` | `traders4h` |
> | `traders_6h` | `traders6h` |
> | `traders_12h` | `traders12h` |
> | `traders_24h` | `traders24h` |
> | `fees_paid_1min` | `feesPaid1minUSD` |
> | `fees_paid_5min` | `feesPaid5minUSD` |
> | `fees_paid_15min` | `feesPaid15minUSD` |
> | `fees_paid_1h` | `feesPaid1hUSD` |
> | `fees_paid_4h` | `feesPaid4hUSD` |
> | `fees_paid_6h` | `feesPaid6hUSD` |
> | `fees_paid_12h` | `feesPaid12hUSD` |
> | `fees_paid_24h` | `feesPaid24hUSD` |

### Naming rules

* **Filters accept only snake\_case names.** A camelCase key such as `volume1hUSD` in `filters` returns `not supported yet`.
* **`sortBy` accepts both.** `"sortBy": "volume_1h"`, `"sortBy": "volume1hUSD"` and `"sortBy": "latest_market_cap"` all work.
* Any other name, such as `holders_count` or `organic_volume_1h`, returns `not supported yet`.

## Range operators

Use these operators on any of the 94 fields:

| Operator | Meaning |
| - | - |
| `gte` | Value is at least this |
| `lte` | Value is at most this |
| `gt` | Same as `gte` (inclusive, see warning) |
| `lt` | Same as `lte` (inclusive, see warning) |
| `equals` | Value is exactly this (sets both the lower and upper bound) |
| `not: null` | Value is present. Only meaningful when no lower bound is set. |

```json theme={null}
"filters": {
  "market_cap": { "gte": 100000, "lte": 5000000 },
  "bonding_percentage": { "equals": 100 },
  "liquidity": { "not": null }
}
```

> [!WARNING]
>
> On range fields, `gt` and `lt` are **inclusive**. They behave exactly like `gte` and `lte`, so `{ "gt": 10 }` also matches 10. Only `socials_count` treats `gt` and `lt` as strict.

* If both `gte` and `gt` are set, `gte` wins. The same goes for `lte` over `lt`. `equals` is only used for a bound that `gte`/`gt` or `lte`/`lt` did not set.
* `in`, and `not` with any value other than `null`, are ignored on range fields. If nothing usable remains, you get `use gte, lte, gt, lt, equals or { "not": null }`.
* A plain value instead of an operator object means `equals`. `"bonded": true` is the same as `"bonded": { "equals": true }`.
* Unknown operator keys are ignored.

### Values

* Numbers can be JSON numbers or numeric strings: `1000` and `"1000"` both work.
* **Date fields** (`created_at`, `bonded_at`, `latest_trade_date`) take either a number of **milliseconds since the Unix epoch** or a date string such as `"2026-11-30T00:00:00.000Z"`.
* A numeric **string** does not work on date fields: `"1764460800000"` is not a valid date and that bound is dropped. Send the number `1764460800000` instead.
* Percent fields are in percent units: `{ "gte": 50 }` on `price_change_1h` means at least +50%.

### Missing values

* A token with no value (`null`) for a field never matches a range filter on that field. This includes `{ "not": null }`.
* When sorting, tokens with no value for the sort field always come **last**, whether the order is `asc` or `desc`.

## Special filters

These filters are not ranges. They use their own operators.

| Filter | Operators | Meaning |
| - | - | - |
| `bonded` | `equals`: `true` or `false` | Whether the token has finished its bonding curve |
| `has_social` | `equals`: `true` or `false` | `true`: at least one of Twitter, website or Telegram is set. `false`: none is set. |
| `has_twitter` | `equals`: `true` or `false` | Twitter link present or absent |
| `has_website` | `equals`: `true` or `false` | Website link present or absent |
| `has_telegram` | `equals`: `true` or `false` | Telegram link present or absent |
| `keyword` | `in`: 1 to 5 strings, or `equals`: one string | Case-insensitive substring match on token name or symbol. Matching any one word is enough. |
| `deployer` | `equals`: an address | Exact match on the deployer address |
| `source` | `in`: launchpad ids, or `equals`: one id | Only tokens launched on one of these launchpads |
| `type` | `in`: pool type ids, or `equals`: one id | Only tokens whose top pool is one of these pool types. Overrides the view's `poolTypes`. |
| `socials_count` | `gte`, `lte`, `gt`, `lt`, `equals`: whole number 0 to 3 | Number of links set among Twitter, website and Telegram |

A link counts as set when it is not blank.

### keyword

```json theme={null}
"keyword": { "in": ["pepe", "frog"] }
```

* Each word is trimmed and empty words are dropped. You need 1 to 5 words after that, each at most 64 characters.
* Matching is a case-insensitive substring match: `"pep"` matches a token named `Pepe Classic` and a token with symbol `PEPE2`.
* `"keyword": "pepe"` is shorthand for `{ "equals": "pepe" }`.

### deployer

```json theme={null}
"deployer": { "equals": "0x9e975d3024b9551e28245b4cec92e4deb1a5fb64" }
```

The address must be a 40-hex-character EVM address (`0x` followed by 40 hex characters). It is lowercased before matching, so any letter case works.

### source

```json theme={null}
"source": { "in": ["zora", "clanker"] }
```

* Values are launchpad ids. Get the current list per chain from the `launchpads[].id` field of [`GET /protocols`](https://sonar-cf3aeac7.mintlify.site/api-reference/protocols/get-protocols). See also [Protocols and launchpads](https://sonar-cf3aeac7.mintlify.site/concepts/protocols-and-launchpads.md).
* Each id must be a launchpad on at least one of the view's chains, or on any supported chain if the view has no chains. Otherwise you get `views.<i>.sources.<j>: unknown launchpad <id>`.
* Once `source` is set, tokens that did not launch on a launchpad (for example tokens first deployed into a plain DEX pool) are excluded.
* The matching token object field is `source`.

### type

```json theme={null}
"type": { "in": ["uniswap-v4", "clanker-v4"] }
```

* Values are pool type ids, the same ids as `poolTypes[].id` in [`GET /protocols`](https://sonar-cf3aeac7.mintlify.site/api-reference/protocols/get-protocols) and `pool.type` on the token object.
* The filter applies to the token's **top pool**. Tokens without a top pool are excluded.
* An unknown id returns `views.<i>.poolTypes.<j>: unknown pool type <id>`.
* `type` replaces the view's `poolTypes` and the top-level `poolTypes`.

### socials\_count

```json theme={null}
"socials_count": { "gte": 2 }
```

* Values must be whole numbers from 0 to 3.
* Unlike range fields, `gt` and `lt` here are **strict**: `{ "gt": 1 }` means 2 or more, and `{ "lt": 3 }` means 2 or fewer.
* `{ "gt": 3 }` or `{ "lt": 0 }` cannot match anything and are rejected.

## Validation messages

Problems with a view are reported as `"<path>: <message>"` strings. On REST they come back in a `400` error, both in `message` (joined with `; `) and in `details` as an array of strings. On the stream they arrive in the `issues` array of an `error` message. All problems in a request are reported together.

| Message | Cause |
| - | - |
| `views.<i>.filters.<name>: not supported yet` | Unknown filter name, including camelCase names |
| `views.<i>.sortBy: <name> is not supported yet` | Unknown sort field |
| `views.<i>.includeTokens: not supported yet` | `includeTokens` is set |
| `views.<i>.filters.<name>: use gte, lte, gt, lt, equals or { "not": null }` | Range filter with no usable bound |
| `views.<i>.filters.bonded: use { "equals": true \| false }` | `bonded` without a boolean `equals`. The same message appears for `has_social`, `has_twitter`, `has_website` and `has_telegram`. |
| `views.<i>.filters.keyword: use { "in": ["word", ...] } with 1 to 5 words` | No words, or more than 5 |
| `views.<i>.filters.keywords.<k>: Too big: expected string to have <=64 characters` | A keyword longer than 64 characters |
| `views.<i>.filters.deployer: use { "equals": "<address>" }` | `deployer` without a string `equals` |
| `views.<i>.filters.deployer: must be a valid token or wallet address` | `deployer` is not a valid address |
| `views.<i>.filters.source: use { "in": [...] }` | Empty `source` (the same message for `type`) |
| `views.<i>.filters.socials_count: use gte, lte, gt, lt or equals with a whole number from 0 to 3` | Out of range, not a whole number, or min above max |
| `views.<i>.sources.<j>: unknown launchpad <id>` | `source` value is not a launchpad on the view's chains |
| `views.<i>.poolTypes.<j>: unknown pool type <id>` | Unknown value in `poolTypes` or `type` |
| `views.<i>.chainId: unsupported chain <value>` | Chain not in `"evm:<id>"` form, such as `"8453"` or `"solana:solana"` |
| `views.<i>.chains.<j>: unsupported chain <id>` | Well-formed chain that Pulse does not support, such as `evm:5042` |
| `views.<i>.name: <name> is used twice` | Duplicate view name |
| `views.<i>.addressToExclude: use at most 100 addresses` | More than 100 excluded addresses |
| `views.<i>.addressToExclude.<j>: <address> is not a valid token address` | Invalid excluded address |
| `views.<i>.filters.<camelCaseField>.min: min must be lower than or equal to max` | Lower bound above upper bound, for example `views.0.filters.marketCapUSD.min` |
| `views.<i>.offset: not available on the stream` | `offset` above 0 in a stream subscription |
| `at most 10 views per connection` | Stream connection would exceed 10 views |

> [!NOTE]
>
> Paths mix the two formats. Problems found while reading your filters use the names you sent (`filters.market_cap`, `filters.source`). Problems found afterwards use the internal camelCase names (`filters.marketCapUSD.min`, `sources.0`, `chains.0`).

Request-shape errors, such as a `limit` above 100 or a `sortOrder` that is not `asc` or `desc`, are reported differently: see [Query views](https://sonar-cf3aeac7.mintlify.site/pulse/rest-views.md#errors) and [Pulse live stream](https://sonar-cf3aeac7.mintlify.site/pulse/stream.md#errors).


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