# DEX Token Market Snapshot - Price, Liquidity & Volume (`centorprat/dex-token-market-snapshot`) Actor

Give token contract addresses or symbols. Returns one keyless market snapshot per token across every DEX/chain it trades on: primary pair price/liquidity/FDV, total liquidity, 24h volume, multi-timeframe price change, buy/sell pressure and top venues. Read-only, agent-callable.

- **URL**: https://apify.com/centorprat/dex-token-market-snapshot.md
- **Developed by:** [Centor Prat](https://apify.com/centorprat) (community)
- **Categories:** Developer tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $17.00 / 1,000 token snapshots

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

## DEX Token Market Snapshot — Price, Liquidity & Volume

The full market picture for any token in one call. Give a **contract address or a symbol** and get a snapshot across **every DEX and chain** it trades on: the primary (deepest-liquidity) pair's price, liquidity and FDV/market cap, **aggregate liquidity**, 24h volume, multi-timeframe **price change**, **buy/sell pressure**, and the top venues by liquidity. Keyless, read-only, agent-callable.

For traders, dashboards, research, and AI agents that need live token market data without juggling API keys.

### What it does

- Finds all of a token's DEX pairs (keyless DexScreener) and picks the **primary** pair by liquidity.
- Reports price, **total liquidity** across pairs, 24h volume, and price change over m5/h1/h6/h24.
- Computes **buy/sell pressure** (24h) and where the liquidity lives (**primary venue share**, pairs/chains/DEXes).
- Lists the **top venues** with their own price/liquidity/volume.

| Field | Meaning |
|---|---|
| `priceUsd`, `fdvUsd`, `marketCapUsd` | primary-pair pricing |
| `totalLiquidityUsd`, `primaryPairLiquidityUsd`, `primaryVenueLiquidityShare` | liquidity + where it sits |
| `volume24hUsd`, `priceChange{m5,h1,h6,h24}` | activity + trend |
| `buys24h` / `sells24h` / `buyPressure24h` | flow |
| `pairsCount`, `chains[]`, `dexes[]`, `topPairs[]` | market footprint |
| `signal` | up-24h / down-24h / flat-24h |

### Why not just ask an AI agent?

An agent can't aggregate a token's dozens of pairs across chains, pick the real primary venue by liquidity, sum liquidity and compute buy/sell pressure — in one deterministic call. This does, and returns it structured.

### Input

| Field | Type | Required | Description |
|---|---|---|---|
| `tokens` | array of strings | ✅ | Contract addresses (0x…/Solana) or symbols. |
| `chain` | string | | Restrict to one chain (e.g. `ethereum`, `solana`). |
| `webhookUrl` | string | | POST the snapshots here as JSON. |

**Example input**

```json
{ "tokens": ["0x6982508145454Ce325dDbE47a25d4ec3d2311933"] }
```

### Output

One record per token. **Example** (PEPE, real run, trimmed):

```json
{
  "tokenSymbol": "PEPE",
  "signal": "flat-24h",
  "priceUsd": 4.01e-06,
  "primaryChain": "ethereum",
  "primaryDex": "uniswap",
  "totalLiquidityUsd": 31786985.97,
  "volume24hUsd": 715879.19,
  "priceChange": {"h1": 0.1, "h24": -2.84},
  "buys24h": 300, "sells24h": 406, "buyPressure24h": 0.425,
  "pairsCount": 30, "chains": ["ethereum", "pulsechain"],
  "primaryVenueLiquidityShare": 91.7,
  "topPairs": [{"chain": "ethereum", "dex": "uniswap", "liquidityUsd": 29133201.7}]
}
```

### Use cases

- **Live token lookup** — price, liquidity and volume for any token without an API key.
- **Liquidity check** — is the liquidity deep and concentrated on one venue, or scattered/thin?
- **Trend read** — multi-timeframe price change + buy/sell pressure at a glance.
- **AI agents** — one call for a token's whole market picture.

### Ready-made tasks

- [DEX Token Price & Liquidity Across All Pairs](https://apify.com/centorprat/dex-token-market-snapshot/examples/dex-token-price-liquidity)

### For AI agents / MCP

```
https://mcp.apify.com/?tools=actors,docs,centorprat/dex-token-market-snapshot
```

Loads as `centorprat--dex-token-market-snapshot`. Claude Code:

```
claude mcp add apify -- npx -y @apify/actors-mcp-server --actors centorprat/dex-token-market-snapshot
```

### FAQ

**Address or symbol?** Either. A **contract address** is precise; a **symbol** returns the deepest-liquidity token with that symbol (many tokens reuse symbols, so prefer addresses when you can).

**Which chains?** All chains DexScreener indexes (Ethereum, BSC, Base, Solana, Polygon, Arbitrum, and more). Filter with `chain`.

**Does it need a key?** No — keyless public DEX data.

**Is this financial advice?** No. It's a snapshot of public market data to review.

**How fast / how much?** ~1–2 s per token. Pay-per-event, one charge per token snapshot.

### Data & attribution

Public DEX market data via the keyless DexScreener API. No keys, no personal data. Signals, not advice.

### Related actors

- [New Token Momentum Scanner](https://apify.com/centorprat/new-token-momentum-scanner)
- [Token Honeypot & Rug Pull Safety Check](https://apify.com/centorprat/token-honeypot-rugpull-check)
- [ERC-20 Token Intelligence & Holder Concentration](https://apify.com/centorprat/erc20-token-intelligence)

# Actor input Schema

## `tokens` (type: `array`):

Token contract addresses (0x... / Solana) OR symbols (e.g. PEPE, WIF). Addresses are more precise; symbols pick the deepest-liquidity match.

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

Only consider pairs on this chain (e.g. ethereum, bsc, base, solana, polygon, arbitrum). Leave empty for all chains.

## `webhookUrl` (type: `string`):

If set, the finished snapshots are POSTed here as JSON when the run completes.

## Actor input object example

```json
{
  "tokens": [
    "0x6982508145454Ce325dDbE47a25d4ec3d2311933"
  ]
}
```

# Actor output Schema

## `snapshots` (type: `string`):

One snapshot per token: primary (deepest-liquidity) pair price/liquidity/FDV/market cap, total liquidity, 24h volume, multi-timeframe price change, buy/sell pressure, number of pairs/chains/dexes, the top venues, and a 24h signal. Public DEX data.

# 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 = {
    "tokens": [
        "0x6982508145454Ce325dDbE47a25d4ec3d2311933"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("centorprat/dex-token-market-snapshot").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 = { "tokens": ["0x6982508145454Ce325dDbE47a25d4ec3d2311933"] }

# Run the Actor and wait for it to finish
run = client.actor("centorprat/dex-token-market-snapshot").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 '{
  "tokens": [
    "0x6982508145454Ce325dDbE47a25d4ec3d2311933"
  ]
}' |
apify call centorprat/dex-token-market-snapshot --silent --output-dataset

```

## MCP server setup

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

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/pjKbf5Y8jMtnOF2yE/builds/KMQlmRPmFId52YaR7/openapi.json
