# DEX Pool Health Score (Any Chain, GeckoTerminal) (`cryptoretirement/dex-pool-health-score`) Actor

Health and rug-risk score 0-100 for any DEX liquidity pool on 100+ networks (Base, Solana, Ethereum, BSC...): liquidity depth, volume consistency, wash-trading check, pool age, participation, buy/sell balance, flags, plus optional OHLCV candles with TWAP/VWAP. No API keys.

- **URL**: https://apify.com/cryptoretirement/dex-pool-health-score.md
- **Developed by:** [Craig Armstrong](https://apify.com/cryptoretirement) (community)
- **Categories:** Developer tools, Agents
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $5.00 / 1,000 pool scoreds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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 Pool Health Score

Give it liquidity pools on any of the 100+ networks GeckoTerminal covers (Base, Solana, Ethereum, BSC, Arbitrum, Sui, TON...) and get a **health score 0-100, a grade, the reasons, and plain-English flags** per pool, with optional OHLCV candles and TWAP/VWAP. Built for agents and bots that need to know whether a pool is safe to trade through before they size a position. No API keys.

### How the score is built (100 points)

| Part | Points | What earns them |
|---|---|---|
| `liquidity` | 30 | depth in USD; $250k+ scores full |
| `volumeConsistency` | 20 | 24h volume spread evenly across hours rather than one spike, scaled by size |
| `turnover` | 10 | 24h volume between 5% and 5× liquidity; far above that looks like wash trading |
| `age` | 15 | a week old earns full marks |
| `participation` | 15 | distinct buyers and sellers in 24h (150+ each scores full) |
| `balance` | 10 | buys and sells both present rather than one-sided flow |

Grade: `healthy` ≥ 70, `caution` ≥ 45, otherwise `high_risk`. `riskScore` is simply 100 − health.

Flags you may see: thin liquidity, last-hour volume spike, possible wash trading, pool only N hours old, one-sided flow, liquidity a tiny fraction of FDV.

### Output (one row per pool)

`network`, `pool`, `name`, `healthScore`, `riskScore`, `grade`, `parts{}`, `flags[]`, `liquidityUsd`, `volume1hUsd`, `volume6hUsd`, `volume24hUsd`, `fdvUsd`, `ageHours`, `tx24h{buys, sells, buyers, sellers}`, `priceChangePct{}`, `baseTokenPriceUsd`,
and with `includeOhlcv`: `timeframe`, `aggregate`, `candleCount`, `twap`, `vwap`, `candles[[ts, open, high, low, close, volumeUsd]...]` (oldest first).

A pool that cannot be read returns `{input, error}` instead and is not charged.

### Input

| Field | Default | Notes |
|---|---|---|
| `pools` | required | `network:address`, `network/address`, or a GeckoTerminal pool URL |
| `includeOhlcv` | `false` | candles + TWAP/VWAP |
| `timeframe` / `aggregate` / `candles` | `hour` / `1` / `100` | minute: 1, 5, 15 · hour: 1, 4, 12 · day: 1 · 10–500 candles |

Pools are fetched two at a time to respect GeckoTerminal's public rate limit; 20 pools take about 15 seconds.

Data and analytics only. Not financial advice.

### Cost

Pay per event, no subscription. You pay only for the pools a run scores.

| Event | Price |
|---|---|
| Run start, once per run | $0.001 |
| Pool scored | $0.005 |

Twenty pools cost about 10 cents. A pool that cannot be read is not charged.

### Run it from code

```bash
curl -X POST "https://api.apify.com/v2/acts/cryptoretirement~dex-pool-health-score/run-sync-get-dataset-items" \
  -H "Authorization: Bearer $APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"pools":["base:0xd0b53D9277642d899DF5C87A3966A349A798F224"]}'
```

The response is the dataset as a JSON array. The API menu on this page has ready-made snippets for JavaScript, Python and MCP clients.

### More Actors for traders and bots

- [Solana Token Rug Check + Coin Score](https://apify.com/cryptoretirement/solana-token-rug-check-and-score): rug gates, a honeypot sell test and a 0-100 score for any Solana token.
- [Crypto Exchange New Listing Announcements](https://apify.com/cryptoretirement/crypto-exchange-new-listings): new coin and perpetual listings from 6 exchanges, with an alert flag.
- [Crypto Perp Funding Rate Scanner](https://apify.com/cryptoretirement/crypto-perp-funding-rate-scanner): funding rates, annualised yield and cross-exchange spreads on 5 exchanges.
- [Crypto Signal Scanner](https://apify.com/cryptoretirement/crypto-perp-technical-signal-scanner): Donchian breakouts, golden and death crosses and Supertrend flips on the top Bybit perpetuals.
- [Crypto Session Box Levels & Liquidity Sweep Detector](https://apify.com/cryptoretirement/crypto-session-box-liquidity-sweep-detector): prior-day and session boxes, wick setups and liquidity sweeps.
- [Forex News Filter & Economic Calendar](https://apify.com/cryptoretirement/forex-news-filter-economic-calendar): this week's economic events and a high-impact news window check for bots.
- [YouTube Most Replayed Clip Finder](https://apify.com/cryptoretirement/youtube-most-replayed-clip-finder): the most replayed moments of any video as ready-to-cut clips.

# Actor input Schema

## `pools` (type: `array`):

One per line, as network:address (e.g. base:0xd0b5…, solana:58oQ…) or a GeckoTerminal pool URL. Network ids are GeckoTerminal's: base, solana, eth, bsc, arbitrum, polygon_pos, avax, optimism, sui-network, ton...

## `includeOhlcv` (type: `boolean`):

Adds OHLCV candles for the pool and the simple TWAP and volume-weighted VWAP over them.

## `timeframe` (type: `string`):

Only with candles on.

## `aggregate` (type: `integer`):

minute: 1, 5 or 15 · hour: 1, 4 or 12 · day: 1

## `candles` (type: `integer`):

10 to 500, newest last.

## Actor input object example

```json
{
  "pools": [
    "base:0xd0b53D9277642d899DF5C87A3966A349A798F224",
    "solana:58oQChx4yWmvKdwLLZzBi4ChoCc2fqCUWBkwMihLYQo2"
  ],
  "includeOhlcv": false,
  "timeframe": "hour",
  "aggregate": 1,
  "candles": 100
}
```

# Actor output Schema

## `results` (type: `string`):

One item per pool: network, pool address, name, healthScore 0-100, grade, score parts, flags, liquidity, volumes, FDV, age, transactions, price change and, when requested, OHLCV candles with TWAP/VWAP.

## `summary` (type: `string`):

Counts of pools requested and scored.

# 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 = {
    "pools": [
        "base:0xd0b53D9277642d899DF5C87A3966A349A798F224",
        "solana:58oQChx4yWmvKdwLLZzBi4ChoCc2fqCUWBkwMihLYQo2"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("cryptoretirement/dex-pool-health-score").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 = { "pools": [
        "base:0xd0b53D9277642d899DF5C87A3966A349A798F224",
        "solana:58oQChx4yWmvKdwLLZzBi4ChoCc2fqCUWBkwMihLYQo2",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("cryptoretirement/dex-pool-health-score").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 '{
  "pools": [
    "base:0xd0b53D9277642d899DF5C87A3966A349A798F224",
    "solana:58oQChx4yWmvKdwLLZzBi4ChoCc2fqCUWBkwMihLYQo2"
  ]
}' |
apify call cryptoretirement/dex-pool-health-score --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,cryptoretirement/dex-pool-health-score"
        }
    }
}
```

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/opVBcIJ4icF2IbbGt/builds/kKB74Lx4mTOM516aL/openapi.json
