I’ve been working on automating the operational side of a cryptocurrency exchange platform and built a workflow that I think will be super useful for anyone dealing with high-frequency trade events, fintech apps, or crypto projects.
What This Workflow Does
This template handles two automation flows in one:
Flow 1 — Real-Time Trade Alert System
AWebhookreceives trade events from your crypto exchange backendDetects whether it's a BUY or SELL orderFormats a clean Telegram alert message with trade pair, amount, price, user ID, and timestampLogs every trade toGoogle Sheetsfor audit trailSends asuccess responseback to the calling system
Flow 2 — Weekly Summary Report (Auto, Every Monday 9AM)
Reads the entire week's trade log from Google SheetsCalculates: Total Trades, BUY vs SELL count, Total Volume (USD), Top traded pairSends a formatted **summary report to Telegram** automatically
Nodes Used
Webhook— receives POST requests from exchange backendIF— routes BUY vs SELL tradesSet— formats alert messagesTelegram— sends real-time alerts + weekly reportsGoogle Sheets— logs trade data + reads for reportsCode— calculates weekly statsSchedule Trigger— fires every Monday 9AMRespond to Webhook— sends JSON response back
Sample Webhook Payload
Send this to your webhook URL to test:
json
{
"trade_type": "BUY",
"pair": "BTC/USDT",
"amount": "0.5",
"base_currency": "BTC",
"price": "68500",
"user_id": "USR_10234",
"status": "COMPLETED"
}
Setup Instructions
Importthe workflow JSON into your n8n instanceTelegram Bot— create a bot via @BotFather, get token + chat ID, add credentialsGoogle Sheets— connect your Google account, create a sheet with columns:
`Timestamp | Trade Type | Pair | Amount | Price (USD) | User ID | Status`
Replace `YOUR_TELEGRAM_CHAT_ID` and `YOUR_GOOGLE_SHEET_ID` in the nodesActivatethe workflow — webhook URL will be generated automaticallyPoint your exchange backend to fire POST requests to that webhook URL
Use Cases
Crypto exchange platforms needing real-time admin monitoringDeFi platforms that want trade logging without complex infrastructureFintech teams who want lightweight alerting without building custom dashboardsAnyone building a **custom crypto exchange** and wants operational automation from Day 1
What You Can Extend This With
Addemail alertsalongside Telegram (just add Gmail or SMTP node)Connect toSlackinstead of Telegram for team channelsAdd athreshold alert— e.g., alert only if trade volume > $10,000Plug inCoinGecko APIto attach real-time price data to each alertRoute large trades to aseparate high-value alert channel
We've been building crypto exchange platforms for a while and this kind of lightweight n8n automation has genuinely saved hours of manual monitoring every week. Happy to answer questions if anyone wants to adapt this for their stack!