> ## 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.

# Typed enums

> Complete enum values for Pulse and Trending request options.

Use these enums directly when creating requests. Every accepted Trending sort key appears below; unsupported keys are excluded.

[Download the TypeScript enums](https://docs.struct.to/assets/examples/discovery-enums.ts). Each readonly array provides values for menus, and its type restricts requests to those values.

| Field | Enum |
| - | - |
| Pulse mode | PulseMode |
| Trending sortBy and sort\_by alias | TrendingSortBy |
| Trending sortOrder and sort\_order alias | DiscoverySortOrder |
| Pulse filters.timeframe and returned metric windows | DiscoveryTimeframe |
| blacklist\[].type | DiscoveryBlacklistType |

Pulse ordering is fixed by mode. Trending supports custom sort keys and directions. The latest\_market\_cap sort value is an alias for market\_cap. For include\_timeframes, pass a list of DiscoveryTimeframe values or the literal "all".

## Complete enum definitions

```typescript theme={null}
// Generated from the Pulse and Trending API schemas.

export const PULSE_MODES = [
  "new",
  "migration",
  "migrated",
] as const;
export type PulseMode = (typeof PULSE_MODES)[number];

export const TRENDING_SORT_BY = [
  "created_at",
  "latest_trade_date",
  "migrated_at",
  "ath",
  "market_cap",
  "latest_market_cap",
  "liquidity",
  "holders_count",
  "bonding_percentage",
  "dev_holdings_percentage",
  "bundlers_holdings_percentage",
  "insiders_holdings_percentage",
  "snipers_holdings_percentage",
  "pro_traders_holdings_percentage",
  "fresh_traders_holdings_percentage",
  "top_10_holdings_percentage",
  "top_50_holdings_percentage",
  "insiders_count",
  "bundlers_count",
  "snipers_count",
  "fresh_traders_count",
  "pro_traders_count",
  "deployer_migrations_count",
  "twitter_reuses_count",
  "deployer_tokens_count",
  "volume_1min",
  "volume_5min",
  "volume_30min",
  "volume_1h",
  "volume_6h",
  "volume_24h",
  "volume_buy_1min",
  "volume_buy_5min",
  "volume_buy_30min",
  "volume_buy_1h",
  "volume_buy_6h",
  "volume_buy_24h",
  "volume_sell_1min",
  "volume_sell_5min",
  "volume_sell_30min",
  "volume_sell_1h",
  "volume_sell_6h",
  "volume_sell_24h",
  "trades_1min",
  "trades_5min",
  "trades_30min",
  "trades_1h",
  "trades_6h",
  "trades_24h",
  "buys_1min",
  "buys_5min",
  "buys_30min",
  "buys_1h",
  "buys_6h",
  "buys_24h",
  "sells_1min",
  "sells_5min",
  "sells_30min",
  "sells_1h",
  "sells_6h",
  "sells_24h",
  "fees_paid_1min",
  "fees_paid_5min",
  "fees_paid_30min",
  "fees_paid_1h",
  "fees_paid_6h",
  "fees_paid_24h",
  "price_change_1min",
  "price_change_5min",
  "price_change_30min",
  "price_change_1h",
  "price_change_6h",
  "price_change_24h",
] as const;
export type TrendingSortBy = (typeof TRENDING_SORT_BY)[number];

export const DISCOVERY_SORT_ORDERS = [
  "asc",
  "desc",
] as const;
export type DiscoverySortOrder = (typeof DISCOVERY_SORT_ORDERS)[number];

export const DISCOVERY_TIMEFRAMES = [
  "1m",
  "5m",
  "30m",
  "1h",
  "6h",
  "24h",
] as const;
export type DiscoveryTimeframe = (typeof DISCOVERY_TIMEFRAMES)[number];

export const DISCOVERY_INTERVALS = [
  100,
  500,
  1000,
  2500,
  5000,
  10000,
] as const;
export type DiscoveryIntervalMs = (typeof DISCOVERY_INTERVALS)[number];

export const DISCOVERY_BLACKLIST_TYPES = [
  "website",
  "handle",
  "keyword",
] as const;
export type DiscoveryBlacklistType = (typeof DISCOVERY_BLACKLIST_TYPES)[number];
```

## Typed request example

```typescript theme={null}
import type { TrendingSortBy, DiscoverySortOrder, DiscoveryTimeframe } from "./discovery-enums";

const request = {
  chain_ids: [-1, 8453],
  sortBy: "volume_1h" satisfies TrendingSortBy,
  sortOrder: "desc" satisfies DiscoverySortOrder,
  limit: 30,
  page: 0,
  include_price_points: true,
  filters: { include_timeframes: ["1h", "24h"] satisfies DiscoveryTimeframe[] },
};
```

Limits are documented with the request fields: 1–100 rows per request, a maximum page end of 1,000 rows, and one list and page per request. See [request options](https://docs.struct.to/api-reference/discovery/view-options.md) and [sort field meanings](https://docs.struct.to/api-reference/discovery/sorting.md).


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