Skip to main content
Thirdwatchthirdwatch
guides

Track DeFi Token Markets by Category

Use a CoinGecko category filter to collect ranked DeFi token prices, market caps, volume, and supply.

Jul 21, 2026 · 2 min read · 252 words
See the scraper →

Tracking a sector such as decentralized finance requires a consistent category definition and a record of which assets belonged to it at each observation. The CoinGecko Markets Scraper can apply a CoinGecko category while preserving every returned asset ID.

Use the category slug

Start with the published DeFi slug, one quote currency, market-cap ordering, and a bounded cap.

{
  "coinIds": [],
  "vsCurrency": "usd",
  "category": "decentralized-finance-defi",
  "order": "market_cap_desc",
  "maxResults": 100
}

Inspect the first run for plausible assets, unique IDs, recent source timestamps, and non-null headline values. A category is a source-maintained classification, not an immutable industry standard.

Track membership and metrics

Store the complete returned ID list for every snapshot. When a token appears or disappears, distinguish a classification change from a rank-cap effect: an asset below the top 100 can leave your dataset without leaving the category.

Aggregate market cap and volume only across the observed population and label that coverage. Avoid replacing missing metrics with zero. Use ID, currency, category, and snapshot time as identifying dimensions in your warehouse.

Scheduled Tasks make sector monitoring repeatable. Before loading a new snapshot, require a successful run and a plausible count. Compare both membership and values with the previous valid run. Large aggregate changes should be decomposed into price movement, supply changes, and composition changes.

The same workflow works for other CoinGecko categories, including stablecoins or artificial-intelligence tokens. Create a separate Task and historical series for each slug so category definitions and result caps never mix silently.

Frequently asked questions

Where do category names come from?

Use CoinGecko category slugs; an invalid or empty category can return no category-specific rows.

Will membership stay constant?

No. CoinGecko can change category classification, so retain each snapshot's returned IDs.

Related

Try it yourself

100 free credits, no credit card.

About 30 real searches. Add the MCP to Claude or Cursor in two minutes.