ETHUSDT Smart Alert Bot
Pricing
Pay per usage
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
Maintained by CommunityActor 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 Type | Description |
|---|---|
| ๐ Volume Spike | Fires when the 24-hour trading volume surges above a configurable threshold compared to the previous run's volume. |
| ๐ป Price Drop | Fires when the 24-hour price change percentage drops below a negative threshold (e.g., -5%). |
| ๐ Trailing Stop-loss Breach | Tracks 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:
- Sends a formatted Telegram message with all relevant details.
- 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
| Field | Type | Default | Required | Description |
|---|---|---|---|---|
tradingPair | string | ETHUSDT | No | Binance trading pair symbol |
alertType | enum | All | No | Volume Spike, Price Drop, Trailing Stop-loss Breach, or All |
thresholdPercentage | number | 5 | No | % change to trigger Volume Spike / Price Drop |
trailingStopDistance | number | 3 | No | % drop from peak to trigger Trailing Stop-loss |
telegramBotToken | string | โ | Yes* | Telegram Bot API token |
telegramChatId | string | โ | Yes* | Telegram chat/group/channel ID |
enableDryRun | boolean | false | No | Skip Telegram delivery (for testing) |
*Required when
enableDryRunisfalse.
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 SPIKEPair: ETHUSDTPrice: $1,842.5524h Change: +2.34%24h Volume: 125.43KThreshold: 5%๐ 2026-04-30T14:30:00.000Z
๐ค How to get your Telegram Bot Token
- Open Telegram and search for @BotFather.
- Send
/newbotand follow the instructions. - BotFather will give you a token like
123456789:ABCdefGhIJKlmNoPQRsTUVwxyZ. - Copy this token and paste it in the
telegramBotTokeninput field.
How to find your Chat ID
- Start a conversation with your new bot (send any message).
- Open this URL in your browser (replace
<TOKEN>with your bot token):https://api.telegram.org/bot<TOKEN>/getUpdates - Look for
"chat":{"id": 123456789, ...}in the JSON response. - Copy the numeric
idand paste it in thetelegramChatIdinput 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).
โฐ Recommended Schedule
For optimal monitoring, schedule this Actor to run on a short interval:
| Use Case | Cron Expression | Frequency |
|---|---|---|
| Active trading | */5 * * * * | Every 5 minutes |
| Swing trading | */30 * * * * | Every 30 minutes |
| Daily check | 0 */4 * * * | Every 4 hours |
| Low-cost monitoring | 0 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:
| Key | Description |
|---|---|
highWatermark | Highest price recorded since last Trailing Stop breach |
previousVolume24h | 24h volume from the previous run (for spike comparison) |
lastPrice | Last observed price |
lastCheckedAt | ISO timestamp of the last successful check |
๐ง Local Development
# Clone the repogit clone <repo-url>cd ethusdt-smart-alert-bot# Install dependenciesnpm install# Create local inputmkdir -p storage/key_value_stores/defaultcat > storage/key_value_stores/default/INPUT.json << 'EOF'{"tradingPair": "ETHUSDT","alertType": "All","thresholdPercentage": 2,"trailingStopDistance": 3,"enableDryRun": true}EOF# Run locallynpm 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
