π Send hourly crypto market analysis from Binance to Telegram
β‘ 3,699 views Β· π Crypto Trading & Stock Market
Description
π 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
- π Calculates 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
- Telegram Bot Token β Create a bot via @BotFather on Telegram
- Chat ID β Use a personal ID or group chat ID (add the bot to the group)
- n8n Instance β Either cloud or self-hosted
- (Optional) Modify
relevantSymbolsin 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
## π Nodes Used
Function, HTTP Request, Telegram, Schedule Trigger
## π₯ Import
Download [`workflow.json`](workflow.json) and import into n8n:
**Workflow menu β Import from File**
[π Importing guide](../../../docs/importing-templates.md) Β· [π Credential setup](../../../docs/credential-setup.md)