ETHUSDT Smart Alert Bot avatar

ETHUSDT Smart Alert Bot

Pricing

Pay per usage

Go to Apify Store
ETHUSDT Smart Alert Bot

ETHUSDT Smart Alert Bot

Monitors Binance ETHUSDT pair for Volume Spikes, Price Drops, and Trailing Stop-loss breaches. Sends real-time Telegram alerts and logs every trigger to the Dataset.

Pricing

Pay per usage

Rating

0.0

(0)

Developer

G Han

G Han

Maintained by Community

Actor stats

1

Bookmarked

2

Total users

1

Monthly active users

2 months ago

Last modified

Categories

Share

๐Ÿ”” ETHUSDT Smart Alert Bot

Real-time crypto market monitoring on Apify. Track Binance trading pairs for Volume Spikes, Price Drops, and Trailing Stop-loss Breaches โ€“ with instant Telegram notifications.


๐ŸŽฏ What does this Actor do?

This Actor connects to the Binance public API (no API key required) and monitors any supported trading pair (default: ETHUSDT) for three configurable market conditions:

Alert TypeDescription
๐Ÿ“Š Volume SpikeFires when the 24-hour trading volume surges above a configurable threshold compared to the previous run's volume.
๐Ÿ”ป Price DropFires when the 24-hour price change percentage drops below a negative threshold (e.g., -5%).
๐Ÿ›‘ Trailing Stop-loss BreachTracks the highest recorded price (high watermark) across runs. Fires when the price retraces from the peak by more than the configured trailing stop distance.

When a condition is met, the bot:

  1. Sends a formatted Telegram message with all relevant details.
  2. Pushes a JSON record to the Apify Dataset for logging and export (CSV/JSON/Excel).

Key Features

  • โœ… Stateful across runs โ€“ Remembers the high watermark and previous volume via Apify Key-Value Store.
  • โœ… Zero API keys โ€“ Uses Binance's public endpoint (no authentication needed).
  • โœ… Lightweight โ€“ Direct API calls via Axios, no browser or headless Chrome required.
  • โœ… Dry Run mode โ€“ Test your configuration without sending Telegram messages.
  • โœ… Schedule-ready โ€“ Designed to run on a cron schedule (e.g., every 5 minutes).

๐Ÿ“ฅ Input Configuration

FieldTypeDefaultRequiredDescription
tradingPairstringETHUSDTNoBinance trading pair symbol
alertTypeenumAllNoVolume Spike, Price Drop, Trailing Stop-loss Breach, or All
thresholdPercentagenumber5No% change to trigger Volume Spike / Price Drop
trailingStopDistancenumber3No% drop from peak to trigger Trailing Stop-loss
telegramBotTokenstringโ€”Yes*Telegram Bot API token
telegramChatIdstringโ€”Yes*Telegram chat/group/channel ID
enableDryRunbooleanfalseNoSkip Telegram delivery (for testing)

*Required when enableDryRun is false.

Example Input (JSON)

{
"tradingPair": "ETHUSDT",
"alertType": "All",
"thresholdPercentage": 5,
"trailingStopDistance": 3,
"telegramBotToken": "123456789:ABCdefGhIJKlmNoPQRsTUVwxyZ",
"telegramChatId": "-1001234567890",
"enableDryRun": false
}

๐Ÿ“ค Output

Dataset Record Schema

Every triggered alert pushes a record to the default Apify Dataset. You can download the full log as JSON, CSV, or Excel from the Actor Run page.

{
"timestamp": "2026-04-30T14:30:00.000Z",
"pair": "ETHUSDT",
"currentPrice": 1842.55,
"triggerReason": "Volume Spike",
"priceChangePct24h": 2.34,
"volume24h": 125430.12,
"volumeChangePct": 8.72,
"highWatermark": 1900.00,
"thresholdPct": 5
}

Telegram Message Example

๐Ÿ“Š ALERT โ€“ VOLUME SPIKE
Pair: ETHUSDT
Price: $1,842.55
24h Change: +2.34%
24h Volume: 125.43K
Threshold: 5%
๐Ÿ•’ 2026-04-30T14:30:00.000Z

๐Ÿค– How to get your Telegram Bot Token

  1. Open Telegram and search for @BotFather.
  2. Send /newbot and follow the instructions.
  3. BotFather will give you a token like 123456789:ABCdefGhIJKlmNoPQRsTUVwxyZ.
  4. Copy this token and paste it in the telegramBotToken input field.

How to find your Chat ID

  1. Start a conversation with your new bot (send any message).
  2. Open this URL in your browser (replace <TOKEN> with your bot token):
    https://api.telegram.org/bot<TOKEN>/getUpdates
  3. Look for "chat":{"id": 123456789, ...} in the JSON response.
  4. Copy the numeric id and paste it in the telegramChatId input field.

Tip: For group chats, add the bot to the group, send a message mentioning the bot, and repeat step 2. Group IDs are negative numbers (e.g., -1001234567890).


For optimal monitoring, schedule this Actor to run on a short interval:

Use CaseCron ExpressionFrequency
Active trading*/5 * * * *Every 5 minutes
Swing trading*/30 * * * *Every 30 minutes
Daily check0 */4 * * *Every 4 hours
Low-cost monitoring0 0 * * *Once a day

Cost note: Each run uses only ~32 MB RAM and completes in < 5 seconds (API call only, no browser). At the 5-minute interval, monthly cost is approximately $1โ€“2 on the Apify platform.


๐Ÿ—๏ธ Architecture

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚ Apify Scheduler โ”‚
โ”‚ (cron: */5 * * * *) โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
โ”‚ triggers
โ–ผ
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚ ETHUSDT Smart Alert Bot โ”‚
โ”‚ โ”‚
โ”‚ 1. Load state (KV Store) โ”‚
โ”‚ 2. GET /api/v3/ticker/24hr โ”‚โ”€โ”€โ–บ Binance API
โ”‚ 3. Evaluate conditions โ”‚
โ”‚ 4. Push alerts โ†’ Dataset โ”‚โ”€โ”€โ–บ Apify Dataset (CSV/JSON)
โ”‚ 5. Send alerts โ†’ Telegram โ”‚โ”€โ”€โ–บ Telegram Bot API
โ”‚ 6. Save state (KV Store) โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

State Persistence

The Actor uses the Apify Key-Value Store to persist state across runs:

KeyDescription
highWatermarkHighest price recorded since last Trailing Stop breach
previousVolume24h24h volume from the previous run (for spike comparison)
lastPriceLast observed price
lastCheckedAtISO timestamp of the last successful check

๐Ÿ”ง Local Development

# Clone the repo
git clone <repo-url>
cd ethusdt-smart-alert-bot
# Install dependencies
npm install
# Create local input
mkdir -p storage/key_value_stores/default
cat > storage/key_value_stores/default/INPUT.json << 'EOF'
{
"tradingPair": "ETHUSDT",
"alertType": "All",
"thresholdPercentage": 2,
"trailingStopDistance": 3,
"enableDryRun": true
}
EOF
# Run locally
npm start

๐Ÿ“œ Changelog

v1.0.0

  • Initial release.
  • Volume Spike, Price Drop, and Trailing Stop-loss Breach detection.
  • Telegram HTML alerts.
  • Apify Dataset logging.
  • Stateful Key-Value Store persistence.

๐Ÿ“„ License

ISC ยฉ CryptoDevLabs