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

Fetch real-time MEXC spot market data with GPT-4.1-mini and Telegram

Get real-time MEXC Spot Market data instantly in Telegram! This workflow connects the MEXC REST v3 API with Telegram and optional GPT-4.1-mini formatting, providing users with latest prices, 24h stats, order book dept...

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

Template notes

Get real-time MEXC Spot Market data instantly in Telegram!

This workflow connects the MEXC REST v3 API with Telegram and optional GPT-4.1-mini formatting, providing users with latest prices, 24h stats, order book depth, trades, and candlesticks in structured, Telegram-ready messages.

---

πŸ”Ž How It Works

1. A Telegram Trigger node listens for commands. 2. User Authentication ensures only authorized Telegram IDs can access the bot. 3. A Session ID is generated from chat.id for lightweight memory. 4. The MEXC AI Agent coordinates multiple API calls via HTTP nodes:

Ticker (Latest Price) β†’ /api/v3/ticker/price?symbol=BTCUSDT 24h Stats β†’ /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 Candlesticks (Klines) β†’ /api/v3/klines?symbol=BTCUSDT&interval=15m&limit=200 Recent Trades β†’ /api/v3/trades?symbol=BTCUSDT&limit=100 5. Utility Nodes refine the data:

Calculator β†’ spreads, averages, mid-prices. Think β†’ formats raw JSON into human-readable summaries. Simple Memory β†’ saves symbol, sessionId, and context across turns. 6. Message Splitter prevents Telegram messages from exceeding 4000 characters. 7. Results are sent back to Telegram in structured, readable reports.

---