# DeFi, DEX & Crypto Token Market Intelligence (`winsome_forgiveness/defi-dex-token-market-intel`) Actor

Zero-proxy, Pay-Per-Event DeFi, DEX & crypto token intelligence Actor unifying DexScreener pairs & boosts, DeFiLlama protocols & yields, and CoinGecko trending into one validated schema.

- **URL**: https://apify.com/winsome_forgiveness/defi-dex-token-market-intel.md
- **Developed by:** [Winsome Data](https://apify.com/winsome_forgiveness) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.30 / 1,000 crypto market records

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

DeFi, DEX & Crypto Token Market Intelligence unifies live decentralized exchange trading pairs, boosted on-chain tokens, DeFi protocol Total Value Locked (TVL), yield pool APYs, and trending cryptocurrencies across **DexScreener**, **DeFiLlama**, and **CoinGecko** into one strict, schema-validated dataset. Built for quantitative DeFi researchers, on-chain traders, yield analysts, portfolio trackers, and AI agents connecting over **Apify MCP** (`mcp.apify.com`), this Actor operates completely keyless with zero headless browsers, zero residential proxies, and strict **Zero-PII** sanitization.

### What data can this Actor extract?

Every record emitted across all five live market feeds is normalized into a uniform 14-field schema covering identity, chain placement, pricing, volume, liquidity/TVL, and yield metrics:

- **Source & Entity Identity:** `source` (`DEXSCREENER_PAIRS`, `DEXSCREENER_BOOSTS`, `DEFILLAMA_PROTOCOLS`, `DEFILLAMA_YIELDS`, `COINGECKO_TRENDING`), `recordType` (`DEX_PAIR`, `TOKEN_BOOST`, `DEFI_PROTOCOL`, `YIELD_POOL`, `TRENDING_TOKEN`), `assetId`, `symbol`, and sanitized `name`.
- **Network & Venue Context:** `chain` (e.g., `solana`, `ethereum`, `base`, `arbitrum`, `Multi-Chain`) and `dexOrCategory` (DEX venue like `raydium` or `aero`, DeFi category like `Liquid Staking` or `Lending`, yield project identifier, or CoinGecko trending rank).
- **Spot Pricing & Momentum:** `priceUsd`, signed 24-hour price delta `priceChange24hPct`, and 24-hour trading activity `volume24hUsd`.
- **Liquidity, TVL & Yield:** `liquidityOrTvlUsd` (DEX pair liquidity in USD or DeFiLlama protocol/pool TVL in USD), `apyPct` (annual percentage yield on DeFiLlama yield pools), canonical `marketUrl`, and UTC ISO-8601 `fetchedAt` timestamp.

### Key reliability & filtering features

- **Multi-Source Quota Balancing:** Per-source quotas are allocated across selected `sources` and merged round-robin so every active feed contributes representative high-liquidity or high-relevance records up to `maxItems`. If one source returns fewer matches, remaining active feeds fill up to `maxItems` cleanly without injecting irrelevant noise.
- **Strict Keyword & Chain Filtering:** Supplying a `keyword` filters every feed strictly across symbols, token names, protocol slugs, categories, chains, and descriptions—returning `0` records cleanly when no assets match instead of polluting results with unrelated tokens. Optional `chain` filtering normalizes common aliases (`sol`/`solana`, `eth`/`ethereum`, `bsc`/`binance`, `arb`/`arbitrum`, `matic`/`polygon`) across DexScreener and DeFiLlama.
- **Per-Source Fault Isolation & Retry Backoff:** Transient HTTP `429` rate-limit and `5xx` errors trigger automatic exponential/Retry-After backoff, and failures in a single upstream source never abort healthy feeds.
- **Zero-PII Compliance:** Human-readable text fields pass through `redactPii()` to scrub accidental emails, `mailto:` links, and phone numbers before strict Zod `OutputItemSchema` validation.

### How to use DeFi, DEX & Crypto Token Market Intelligence

1. **Select Sources (`sources`):** Choose any combination of `DEXSCREENER_PAIRS`, `DEXSCREENER_BOOSTS`, `DEFILLAMA_PROTOCOLS`, `DEFILLAMA_YIELDS`, and `COINGECKO_TRENDING`.
2. **Filter by Keyword (`keyword`):** Enter a token, ecosystem, DEX, or protocol keyword such as `"solana"`, `"jito"`, `"usdc"`, or `"raydium"`, or leave empty to pull top liquid pairs, protocols, pools, and trending coins.
3. **Restrict by Blockchain (`chain`):** Optionally specify a chain such as `"solana"`, `"ethereum"`, `"base"`, or `"arbitrum"`.
4. **Set Liquidity / TVL Floor (`minLiquidityOrTvlUsd`):** Require a minimum USD liquidity or TVL threshold to exclude thin pools (`0` includes all matches).
5. **Run & Export (`maxItems`):** Request `1` to `500` items and export structured JSON, CSV, Parquet, or Excel datasets via Apify Console, REST API, or Apify MCP.

### Input example

```json
{
  "sources": [
    "DEXSCREENER_PAIRS",
    "DEFILLAMA_PROTOCOLS",
    "DEFILLAMA_YIELDS",
    "COINGECKO_TRENDING"
  ],
  "keyword": "solana",
  "chain": "",
  "minLiquidityOrTvlUsd": 0,
  "maxItems": 12
}
```

### Output example

```json
[
  {
    "source": "DEXSCREENER_PAIRS",
    "recordType": "DEX_PAIR",
    "assetId": "0x868Eed6BAD4bD368cd053b766F84CC727697589A",
    "symbol": "SOL",
    "name": "Solana (SOL/USDC)",
    "chain": "base",
    "dexOrCategory": "aero",
    "priceUsd": 71.16,
    "priceChange24hPct": 2.51,
    "volume24hUsd": 3909590.35,
    "liquidityOrTvlUsd": 249426.68,
    "apyPct": null,
    "marketUrl": "https://dexscreener.com/base/0x868eed6bad4bd368cd053b766f84cc727697589a",
    "fetchedAt": "2026-11-23T04:20:00.000Z"
  },
  {
    "source": "DEFILLAMA_YIELDS",
    "recordType": "YIELD_POOL",
    "assetId": "9e709e57-84eb-496b-82ce-2e8f6a17db1b",
    "symbol": "BNSOL",
    "name": "binance-staked-sol - BNSOL",
    "chain": "Solana",
    "dexOrCategory": "binance-staked-sol",
    "priceUsd": null,
    "priceChange24hPct": null,
    "volume24hUsd": null,
    "liquidityOrTvlUsd": 723737256,
    "apyPct": 4.61,
    "marketUrl": "https://defillama.com/yields/pool/9e709e57-84eb-496b-82ce-2e8f6a17db1b",
    "fetchedAt": "2026-11-23T04:20:00.000Z"
  }
]
```

### Pricing

This Actor uses transparent **Pay-Per-Event (PPE)** billing so you only pay for normalized, schema-validated market intelligence records pushed to your dataset:

| Event | Description | FREE | BRONZE | SILVER | GOLD | PLATINUM | DIAMOND |
|---|---|---|---|---|---|---|---|
| `apify-actor-start` | One-time startup per GB (min 1) | $0.00005 | $0.00005 | $0.00005 | $0.00005 | $0.00005 | $0.00005 |
| `crypto-market-record` | Per normalized DeFi/DEX/token record | $0.0035 | $0.0031 | $0.0027 | $0.0023 | $0.0019 | $0.0016 |

Spend caps configured via `maxTotalChargeUsd` are checked before every `Actor.pushData()` call, and runs whose filters match zero records exit cleanly with `0` dataset charges.

### Related Actors

Explore the companion zero-proxy intelligence Actors in this portfolio:

- **Prediction Markets Odds & Volume (Polymarket + Kalshi)** (`prediction-markets-polymarket-kalshi`) — Unifies live Polymarket Gamma API and Kalshi Public Markets API odds, spreads, volume, and open interest.
- **Shopify Store Catalog, Price & Stock Monitor** (`shopify-store-catalog-monitor`) — Extracts product catalogs, variant pricing, active discounts, and stock availability across public Shopify storefronts.
- **AI & Cloud SaaS Outage & Incident Status Monitor** (`ai-saas-outage-status-monitor`) — Real-time health and incident snapshots across 26+ AI and cloud status APIs.
- **SBOM & Dependency Risk Prioritizer** (`sbom-dependency-risk-prioritizer`) — Prioritizes software supply-chain vulnerabilities using OSV.dev, CISA KEV, and FIRST EPSS.

### FAQ

#### How are boosted DexScreener tokens enriched?

DexScreener's `/token-boosts/top/v1` endpoint lists promoted token addresses and boost totals without price or liquidity fields. This Actor batches matched token addresses against DexScreener's public `/tokens/v1/{chainId}/{addresses}` endpoint to populate live `symbol`, `name`, `dexOrCategory`, `priceUsd`, `priceChange24hPct`, `volume24hUsd`, and `liquidityOrTvlUsd`.

#### Why do some fields return `null` on certain sources?

Each upstream feed specializes in different market dimensions: DeFiLlama protocols and yield pools track TVL and APY rather than spot token USD prices, while CoinGecko trending coins track price, 24h change, and 24h volume rather than DEX pool liquidity or APY. Returning `null` prevents mixing incompatible metrics while keeping one unified schema.

#### What happens if a keyword matches nothing?

Strict relevance scoring verifies that all keyword tokens appear in each candidate's metadata. On an unmatched or gibberish query, the Actor exits cleanly with status `0`, pushes `0` records, and incurs zero `crypto-market-record` charges.

# Actor input Schema

## `sources` (type: `array`):

Select which live DeFi, DEX, and crypto token intelligence sources to query. Results are balanced round-robin across selected sources.

## `keyword` (type: `string`):

Optional keyword filter matched against token symbols, names, protocol categories, chains, or DEX identifiers (e.g., "solana", "ethereum", "jito", "usdc"). Leave empty for top active records.

## `chain` (type: `string`):

Optional blockchain network filter (e.g., "solana", "ethereum", "base", "arbitrum", "bsc"). Leave empty to include all chains.

## `minLiquidityOrTvlUsd` (type: `number`):

Minimum pair liquidity or protocol/pool TVL in USD required to include a record (0 includes all records).

## `maxItems` (type: `integer`):

Maximum total normalized DeFi, DEX, and token market intelligence records to return across selected sources (1 to 500).

## Actor input object example

```json
{
  "sources": [
    "DEXSCREENER_PAIRS",
    "DEFILLAMA_PROTOCOLS",
    "DEFILLAMA_YIELDS",
    "COINGECKO_TRENDING"
  ],
  "keyword": "solana",
  "chain": "",
  "minLiquidityOrTvlUsd": 0,
  "maxItems": 12
}
```

# Actor output Schema

## `items` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "sources": [
        "DEXSCREENER_PAIRS",
        "DEFILLAMA_PROTOCOLS",
        "DEFILLAMA_YIELDS",
        "COINGECKO_TRENDING"
    ],
    "keyword": "solana",
    "chain": "",
    "minLiquidityOrTvlUsd": 0,
    "maxItems": 12
};

// Run the Actor and wait for it to finish
const run = await client.actor("winsome_forgiveness/defi-dex-token-market-intel").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "sources": [
        "DEXSCREENER_PAIRS",
        "DEFILLAMA_PROTOCOLS",
        "DEFILLAMA_YIELDS",
        "COINGECKO_TRENDING",
    ],
    "keyword": "solana",
    "chain": "",
    "minLiquidityOrTvlUsd": 0,
    "maxItems": 12,
}

# Run the Actor and wait for it to finish
run = client.actor("winsome_forgiveness/defi-dex-token-market-intel").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "sources": [
    "DEXSCREENER_PAIRS",
    "DEFILLAMA_PROTOCOLS",
    "DEFILLAMA_YIELDS",
    "COINGECKO_TRENDING"
  ],
  "keyword": "solana",
  "chain": "",
  "minLiquidityOrTvlUsd": 0,
  "maxItems": 12
}' |
apify call winsome_forgiveness/defi-dex-token-market-intel --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,winsome_forgiveness/defi-dex-token-market-intel"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/0dRPfbuLWMbxXW5DN/builds/PlGgDDGTT1VAtfDYd/openapi.json
