To view the n8n flow demo and copy the JSON you need to purchase our Bundle... don't worry, it's FREE

Go to the BUNDLE

Send Hourly Crypto Market Analysis from Binance to Telegram

๐Ÿ“ˆ Daily Crypto Market Summary Bot (Binance to Telegram)

This workflow fetches 24h price change data from Binance for selected crypto pairs (BTC/USDC, ETH/USDC, SOL/USDC) every hour using a cron schedule.
It performs in-depth analysisโ€”including volatility, volume, bid-ask spread, momentum, and market comparisonโ€”then formats a detailed market summary.
The final report is sent to a Telegram chat using HTML formatting, highlighting top gainers, losers, and key metrics in a clean, readable layout.


๐Ÿ”‘ Key Features

  • โฑ Runs every hour ( cron: 5 * * * * )
  • ๐Ÿ” Filters and analyzes major coins: BTC, ETH, SOL
  • ๐Ÿ“Š Calculate market metrics:
    • Volatility
    • Bid-ask spread
    • Momentum
    • Estimated market cap
    • Market average comparison
  • ๐Ÿ“ˆ Highlights gainers, losers, and top coins by volume
  • โœ‚๏ธ Splits messages to fit Telegram's 4096 character limit
  • ๐Ÿ’ฌ Sends output in rich HTML format to a Telegram group or chat

๐ŸŽฏ Use Cases

  • โœ… Crypto traders wanting hourly performance insights
  • โœ… Telegram groups needing automated market updates
  • โœ… Analysts monitoring key coin metrics in real-time
  • โœ… Bot developers creating crypto dashboards or alerts

๐Ÿ›  Technical Details

  • Data Source: Binance 24hr ticker API ( /api/v3/ticker/24hr )
  • Coins Monitored: BTCUSDC , ETHUSDC , SOLUSDC (can be expanded)
  • Metrics Calculated:
    • Price change percentage
    • Volatility (high vs low price)
    • Bid-ask spread %
    • Momentum (vs weighted average)
    • Estimated market cap
    • Number of trades
    • Market average movement
  • Message Format:
    • HTML with emojis, bold styling, and section headings
    • Auto-split messages when exceeding Telegram's 4096-char limit
  • Error Handling:
    • Retry on HTTP failure (up to 5 times with 5s delay)
    • Message length checked and split for Telegram compatibility

โš™๏ธ Setup Requirements

  1. Telegram Bot Token โ€” Create a bot via @BotFather on Telegram
  2. Chat ID โ€” Use a personal ID or group chat ID (add the bot to the group)
  3. n8n Instance โ€” Either cloud or self-hosted
  4. (Optional) Modify relevantSymbols in the Function node to track different coins

๐Ÿง  Notes

  • This workflow is highly customizableโ€”feel free to modify the analytics, tracked pairs, or formatting.
  • Great base for alerting systems or crypto dashboards.

๐Ÿ“ท Example Output (Telegram)

 ๐Ÿ“Š Crypto Market Summary โ€” 2025-04-20 14:05:05 UTC

 ๐ŸŒ Market Overview (BTC, ETH, SOL)
 Average Change: -1.54%
 24h Volume: $850,358,765.46
 Most Volatile: SOLUSDC (4.53%)
 Most Liquid: BTCUSDC (0.0000% spread)

 ๐Ÿ’น Top by Volume
 ETHUSDC: $403,860,356.75 | -1.640%
 SOLUSDC: $279,241,338.60 | -1.706%
 BTCUSDC: $167,257,070.12 | -1.261%

 ๐Ÿ“‰ Losers

 SOLUSDC
 ๐Ÿ”ป Change: -1.71% (24h)
 ๐Ÿ’ฐ Current: $137.10
 ๐Ÿ“Š Range: $135.82 - $141.97
 ๐Ÿ“ˆ Volatility: 4.53%
 ๐Ÿ”„ Volume: 2.01M | $279,241,338.60
 โš–๏ธ Bid-Ask Spread: 0.0073%
 โฌ‡๏ธ vs Market Avg: -0.17%
 ๐Ÿ”ฝ Momentum: -1.42% 
๐Ÿ”ข Trades: 366,119

 ETHUSDC
 ๐Ÿ”ป Change: -1.64% (24h)
 ๐Ÿ’ฐ Current: $1,577.42
 ๐Ÿ“Š Range: $1,565.60 - $1,631.98
 ๐Ÿ“ˆ Volatility: 4.24%
 ๐Ÿ”„ Volume: 252.11K | $403,860,356.75
 โš–๏ธ Bid-Ask Spread: 0.0044%
 โฌ‡๏ธ vs Market Avg: -0.10%
 ๐Ÿ”ฝ Momentum: -1.53%
 ๐Ÿ”ข Trades: 596,801

 BTCUSDC
 ๐Ÿ”ป Change: -1.26% (24h)
 ๐Ÿ’ฐ Current: $84,336.65
 ๐Ÿ“Š Range: $83,963.35 - $85,634.50
 ๐Ÿ“ˆ Volatility: 1.99%
 ๐Ÿ”„ Volume: 1.97K | $167,257,070.12
 โš–๏ธ Bid-Ask Spread: 0.0000%
 โญ vs Market Avg: 0.27%
 ๐Ÿ”ฝ Momentum: -0.68%
 ๐Ÿ”ข Trades: 124,202
Do you want to automate your business?

Let's talk about your project