# Token Price & Liquidity Alert Monitor - Rug Warning (`centorprat/token-price-liquidity-alert-monitor`) Actor

Watch tokens (address or symbol). Each run reads public DEX data (keyless) and alerts on price moves, volume spikes, LIQUIDITY DROPS (early rug/pull warning) and price targets since the last run. Schedule + webhook for a standing price/rug alarm. Read-only, agent-callable.

- **URL**: https://apify.com/centorprat/token-price-liquidity-alert-monitor.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 $8.50 / 1,000 watch runs

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

## Token Price & Liquidity Alert Monitor — Rug Warning

Watch any set of tokens and get pinged when something actually happens. Each run reads public DEX market data (keyless) and, because it remembers the last run, alerts on **price moves**, **volume spikes**, **hard price targets**, and — the one most tools miss — a **liquidity drop**, an early warning that liquidity is being pulled (a rug in progress). Schedule it + set a webhook and it's a standing price/rug alarm. Read-only, keyless, agent-callable.

For traders, token holders watching their bags, and AI agents that need a change-trigger on a token's price or liquidity.

> Alerts are factual observations of public market data, **not financial advice**. A liquidity drop can mean a rug — or just normal LP movement; verify before acting.

### What it does

- Tracks each token's **primary-pair price, liquidity and 24h volume** (keyless DexScreener), by address or symbol.
- **Diffs vs the previous run** (state in a named KV store) and fires alerts:
  - **price-move** — moved ≥ your % (up or down)
  - **liquidity-drop** — liquidity fell ≥ your % → **possible rug/liquidity pull**
  - **volume-spike** — 24h volume jumped ≥ your %
  - **price-above / price-below** — crossed a hard target
- First run = **silent baseline**; later runs alert only on change, and (with a webhook) push them out.

| Field | Meaning |
|---|---|
| `priceUsd`, `liquidityUsd`, `volume24hUsd` | current market |
| `priceMovePct`, `liquidityChangePct`, `volumeChangePct` | change since last run |
| `alerts[]` | each fired alert with type + detail |
| `signal` | baseline-established / no-alert / alert / liquidity-drop-alert |

### Why not just ask an AI agent?

An agent has no memory between runs and no scheduler — it can't tell you liquidity just fell 60% since an hour ago. This keeps durable per-watch state and fires the moment price or **liquidity** changes, including the rug-in-progress signal an agent would never catch on its own.

### Input

| Field | Type | Default | Description |
|---|---|---|---|
| `tokens` | array | — | Addresses or symbols to watch. |
| `chain` | string | any | Restrict to a chain. |
| `priceMovePct` | integer | 15 | Alert on ≥ this % price move. |
| `liquidityDropPct` | integer | 30 | Alert on ≥ this % liquidity drop (rug warning). |
| `volumeSpikePct` | integer | 0 (off) | Alert on ≥ this % volume jump. |
| `priceAbove` / `priceBelow` | number | — | Hard price targets. |
| `webhookUrl` | string | — | POST alerts here when fired. |

**Example input**

```json
{
  "tokens": ["0x6982508145454Ce325dDbE47a25d4ec3d2311933"],
  "priceMovePct": 15,
  "liquidityDropPct": 30
}
```

### Output

One record per watched token. **Example** (a run that fired, real-shaped):

```json
{
  "tokenSymbol": "PEPE",
  "signal": "liquidity-drop-alert",
  "priceUsd": 4.0e-06,
  "priceMovePct": -50.0,
  "liquidityChangePct": -66.67,
  "alerts": [
    {"type": "price-move", "detail": "Price moved -50.00% since last run."},
    {"type": "liquidity-drop", "severity": "high", "detail": "Liquidity DROPPED -66.67% ($87M -> $29M) - possible liquidity pull / rug."}
  ]
}
```

The **first** run returns `signal: "baseline-established"` and fires nothing.

### Alerts / scheduling

1. Set `tokens`, your thresholds and `webhookUrl`.
2. Schedule the actor (e.g. every 5–15 min).
3. First run is a silent baseline; after that, every run that detects a change POSTs the alerts to Slack/Discord/email via Make/Zapier.

### Ready-made tasks

- [Token Price Alert - Move % and Price Targets](https://apify.com/centorprat/token-price-liquidity-alert-monitor/examples/token-price-alert)

### For AI agents / MCP

```
https://mcp.apify.com/?tools=actors,docs,centorprat/token-price-liquidity-alert-monitor
```

Loads as `centorprat--token-price-liquidity-alert-monitor`. Claude Code:

```
claude mcp add apify -- npx -y @apify/actors-mcp-server --actors centorprat/token-price-liquidity-alert-monitor
```

### FAQ

**Address or symbol?** Either; an address is precise, a symbol tracks the deepest-liquidity match.

**What's the liquidity-drop alert for?** A sudden liquidity fall is often the first visible sign of a rug/liquidity pull — this flags it so you can react.

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

**Does first run spam me?** No — it's a silent baseline.

**Cost?** Pay-per-event: a base per run + a small premium per alert fired. Quiet runs cost only the base.

**Is this advice?** No — factual market-change observations only.

### 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)
- [DEX Token Market Snapshot](https://apify.com/centorprat/dex-token-market-snapshot)

# Actor input Schema

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

Token contract addresses (0x.../Solana) or symbols to monitor.

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

Only watch pairs on this chain (e.g. ethereum, bsc, base, solana). Leave empty for the deepest-liquidity pair on any chain.

## `priceMovePct` (type: `integer`):

Alert if price moves at least this % (up or down) since the last run. 0 = off.

## `liquidityDropPct` (type: `integer`):

Alert if liquidity DROPS at least this % since the last run - an early rug/liquidity-pull warning. 0 = off.

## `volumeSpikePct` (type: `integer`):

Alert if 24h volume jumps at least this % since the last run. 0 = off.

## `priceAbove` (type: `number`):

Optional hard target: alert when price crosses above this USD value.

## `priceBelow` (type: `number`):

Optional hard target: alert when price crosses below this USD value.

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

If set, alerts are POSTed here as JSON when a run fires them (Slack/Discord/email via Make/Zapier).

## Actor input object example

```json
{
  "tokens": [
    "0x6982508145454Ce325dDbE47a25d4ec3d2311933"
  ],
  "priceMovePct": 15,
  "liquidityDropPct": 30,
  "volumeSpikePct": 0
}
```

# Actor output Schema

## `monitor` (type: `string`):

Per watched token: current price/liquidity/24h-volume, the % change since the previous run, and any alerts fired (price-move, liquidity-drop/rug-warning, volume-spike, price target). First run records a silent baseline.

# 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"
    ],
    "priceMovePct": 15,
    "liquidityDropPct": 30
};

// Run the Actor and wait for it to finish
const run = await client.actor("centorprat/token-price-liquidity-alert-monitor").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"],
    "priceMovePct": 15,
    "liquidityDropPct": 30,
}

# Run the Actor and wait for it to finish
run = client.actor("centorprat/token-price-liquidity-alert-monitor").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"
  ],
  "priceMovePct": 15,
  "liquidityDropPct": 30
}' |
apify call centorprat/token-price-liquidity-alert-monitor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,centorprat/token-price-liquidity-alert-monitor"
        }
    }
}
```

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/G4y5ludpNUAFhtboK/builds/FU1TadfXUAruxDg4D/openapi.json
