Building a Crypto Price Alert Automation with n8n + Binance API

Why Crypto Traders Need Automated Price Alerts

If you have ever woken up to find Bitcoin down 15% overnight, or missed a breakout while away from your screen, you already know the pain. Manual price monitoring does not scale. Whether you are tracking BTC, ETH, or a basket of 20 altcoins, watching charts 24/7 is unsustainable in 2026.

In this tutorial, you will build a fully automated crypto price alert automation using n8n and the Binance API. When BTC drops below $60,000 or ETH spikes above your target, your workflow fires instantly, sending a Telegram message before you even check your phone. This is n8n crypto automation at its most practical: a production-grade workflow that runs 24/7 with zero manual intervention.

What You Will Need

  • n8n self-hosted on Railway.app or a VPS
  • A free Binance account with API key and secret (read-only permissions only)
  • A Telegram Bot created via @BotFather in 2 minutes
  • Basic familiarity with n8n nodes

Step 1: Get Your Binance API Credentials

The Binance API is one of the best-documented crypto API integration options available, and it is completely free. Set it up securely with these steps:

  1. Log in to Binance, go to Account, then API Management
  2. Click Create API and choose System Generated
  3. Label it something like n8n-price-alerts
  4. Enable Read Only permissions only, never grant trading access for alert workflows
  5. Restrict the key to your server IP address for maximum security
  6. Copy your API Key and Secret, then store them in n8n encrypted Credentials

Step 2: Build the n8n Workflow Architecture

Here is the core five-node architecture for your crypto price alert system:

Schedule Trigger (every 5 min)
  HTTP Request: Binance GET /api/v3/ticker/price?symbol=BTCUSDT
  Function Node: parse price as float
  IF Node: price below threshold OR above threshold
  Telegram Node: send formatted alert
  Variables Node: update cooldown timestamp

Node 1: Schedule Trigger

Add a Schedule Trigger node and set the interval to every 5 minutes. This is your workflow heartbeat. For swing trading, every 15 to 30 minutes is sufficient. For active day trading signals, you can push it to every 60 seconds.

Node 2: HTTP Request — Binance Price Feed

Add an HTTP Request node with these settings: Method GET, URL https://api.binance.com/api/v3/ticker/price?symbol=BTCUSDT, Authentication None since this is a public endpoint, Response Format JSON.

The Binance public API returns clean JSON: symbol BTCUSDT, price 67432.15. No authentication is needed for price ticker data, which is a major advantage for crypto trading automation workflows.

To monitor multiple coins simultaneously, use a Split In Batches node and pass an array of symbols: BTCUSDT, ETHUSDT, SOLUSDT, BNBUSDT, AVAXUSDT.

Node 3: IF Condition — Price Threshold Logic

Add an IF node with two conditions. Condition A: when price is less than 60000, the TRUE branch triggers an alert for a price drop below your buy zone. Condition B: when price is greater than 75000, the TRUE branch triggers an alert for a breakout above resistance. You can combine these with AND/OR logic for sophisticated setups, such as alerting only when price drops below $60k AND 24h volume exceeds $10 billion to filter out low-liquidity fake-outs.

Node 4: Telegram Alert Node

Connect the TRUE branch to a Telegram node. Set Operation to Send Message, add your Chat ID, and craft a message template that includes the asset symbol, current price rounded to two decimals, alert type, and timestamp in UTC. Alerts arrive within seconds of the trigger firing, with no subscription fees and no third-party apps required.

Step 3: Add Anti-Spam Cooldown Logic

Without rate limiting, your workflow will send a message every 5 minutes while price stays below threshold. Solve this with a cooldown system: store the last alert timestamp per symbol in a n8n Variables node, add a secondary IF node that checks whether the last alert was more than 120 minutes ago, and after sending the notification update the timestamp. This is what separates a production-grade crypto automation workflow from a noisy prototype.

Step 4: Monitor Multiple Coins at Scale

The Binance API can return prices for all 2,000 plus trading pairs in a single call by calling GET https://api.binance.com/api/v3/ticker/price with no symbol parameter. Use a Filter node to extract your watchlist, then route each coin through the threshold logic in parallel. You now have a comprehensive multi-asset monitoring system running on a single n8n workflow.

Step 5: 24-Hour Percentage Change Alerts

Absolute price alerts are useful, but percentage change alerts are more powerful for catching major market events. Use the 24h ticker endpoint GET https://api.binance.com/api/v3/ticker/24hr?symbol=BTCUSDT to get priceChangePercent, volume, highPrice, and lowPrice. Set an alert for any coin moving more than plus or minus 5% in 24 hours. This catches exchange hacks, regulatory announcements, and whale movements before they dominate social media, giving you hours of lead time.

Deploying on Railway.app for 24/7 Uptime

For this workflow to run continuously, you need a hosted n8n instance. Railway.app is the ideal platform: affordable, zero-DevOps overhead, and with a one-click n8n deployment template. Our complete Railway.app and n8n deployment guide covers persistent volumes for workflow storage, environment variable security for your Binance API keys, and custom domain setup. Once deployed, your price alert system runs around the clock.

Workflow Summary

The five-node workflow consists of a Schedule Trigger for the heartbeat running every 5 minutes, an HTTP Request to the Binance ticker price endpoint, an IF Node for threshold comparison checking price below 60000 or above 75000, a Telegram Node for instant notification via your bot, and a Variables Node for spam prevention using a two-hour cooldown per symbol. Total build time is under 30 minutes.

Ready for Part 2? See how to build a full Crypto Portfolio Tracker with n8n and CoinGecko, a daily automated dashboard that emails you profit and loss figures, allocation drift, and AI-generated market commentary every morning.

Scroll to Top