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 depth, trades, and candlesticks in structured, Telegram-ready messages.
π How It Works
A Telegram Trigger node listens for commands. User Authentication ensures only authorized Telegram IDs can access the bot. A Session ID is generated from chat.id for lightweight memory. 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 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. Message Splitter prevents Telegram messages from exceeding 4000 characters. Results are sent back to Telegram in structured, readable reports.
β What You Can Do with This Agent
Get latest prices & 24h stats for any spot pair. Retrieve order book depth (customizable levels). Monitor best bid/ask quotes for spreads. View candlestick OHLCV data for multiple timeframes. Check recent trades (up to 100). Receive clean Telegram reports β no raw JSON.
π οΈ Setup Steps
Create a Telegram Bot
Use @BotFather to create a bot and copy its API token.
Configure in n8n
Import MEXC AI Agent v1.02.json. Update the User Authentication node with your Telegram ID. Add Telegram API credentials (bot token). Add OpenAI API key (Optional) Add MEXC API key
Deploy & Test
Activate the workflow in n8n. Send a query like BTCUSDT to your bot. Instantly receive structured MEXC Spot Market data in Telegram.
π€ Output Rules
Output grouped into Price, 24h Stats, Order Book, Candlesticks, Trades. No raw JSON β formatted summaries only. Complies with Telegramβs 4000-character message limit (auto-split).
πΊ Setup Video Tutorial
Watch the full setup guide on YouTube:
β‘ Unlock real-time MEXC Spot Market insights in Telegram β clean, fast, and API-key free.
π§Ύ Licensing & Attribution
Β© 2025 Treasurium Capital Limited Company Architecture, prompts, and trade report structure are IP-protected.
No unauthorized rebranding permitted.
π For support: Don Jayamaha β LinkedIn
Related Templates
Use OpenRouter in n8n versions <1.78
What it is: In version 1.78, n8n introduced a dedicated node to use the OpenRouter service, which lets you to use a lot...
Task Deadline Reminders with Google Sheets, ChatGPT, and Gmail
Intro This template is for project managers, team leads, or anyone who wants to automatically remind teammates of tasks ...
π€ Build Resilient AI Workflows with Automatic GPT and Gemini Failover Chain
This workflow contains community nodes that are only compatible with the self-hosted version of n8n. How it works This...
π Please log in to import templates to n8n and favorite templates
Workflow Visualization
Loading...
Preparing workflow renderer
Comments (0)
Login to post comments