workflows.fit
Back to n8n workflows
n8n templateFreeBy Don Jayamaha Jr

Access real-time Binance market data with GPT-4o formatting in Telegram

Instantly access real-time Binance Spot Market data in Telegram! This workflow connects the Binance REST API with Telegram and optional GPT-4.1-mini formatting, delivering structured insights such as latest prices, 24...

CommunicationHITLDevelopmentCore NodesAILangchainLm Chat Open AiTelegram Trigger
Loading interactive preview...

Template notes

Instantly access real-time Binance Spot Market data in Telegram!

This workflow connects the Binance REST API with Telegram and optional GPT-4.1-mini formatting, delivering structured insights such as latest prices, 24h stats, order book depth, trades, and candlesticks directly into chat.

---

πŸ”Ž How It Works

1. A Telegram Trigger listens for incoming user requests. 2. User Authentication validates the Telegram ID to restrict access. 3. A Session ID is generated from chat.id to manage session memory. 4. The Binance AI Agent executes HTTP calls to the Binance public API:

Latest Price (Ticker) β†’ /api/v3/ticker/price?symbol=BTCUSDT 24h Statistics β†’ /api/v3/ticker/24hr?symbol=BTCUSDT Order Book Depth β†’ /api/v3/depth?symbol=BTCUSDT&limit=50 Best Bid/Ask Snapshot β†’ /api/v3/ticker/bookTicker?symbol=BTCUSDT Candlestick Data (Klines) β†’ /api/v3/klines?symbol=BTCUSDT&interval=15m&limit=200 Recent Trades β†’ /api/v3/trades?symbol=BTCUSDT&limit=100 5. Utility Tools refine outputs:

Calculator β†’ computes spreads, midpoints, averages, % changes. Think β†’ extracts and reformats JSON into human-readable fields. Simple Memory β†’ saves symbol, sessionId, and user context. 6. Message Splitter ensures outputs >4000 characters are chunked for Telegram. 7. Final structured reports are sent back to Telegram.

---